Learn R Programming

nat (version 1.8.24)

*.neuron: Arithmetic for neuron coordinates

Description

If x is a 1-vector or a 3-vector, multiply xyz only If x is a 4-vector, multiply xyz and diameter by that TODO Figure out how to document arithemtic functions in one go

Usage

# S3 method for neuron
*(n, x)

# S3 method for neuron +(n, x)

# S3 method for neuron -(n, x)

# S3 method for neuron /(n, x)

Value

modified neuron

Arguments

n

a neuron

x

(a numeric vector to multiply neuron coords in neuron)

See Also

neuron

Examples

Run this code
n1<-Cell07PNs[[1]]*2
n2<-Cell07PNs[[1]]*c(2,2,2,1)
stopifnot(all.equal(n1,n2))
n3<-Cell07PNs[[1]]*c(2,2,4)

Run the code above in your browser using DataLab