nat (version 1.8.16)

*.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)

Arguments

n

a neuron

x

(a numeric vector to multiply neuron coords in neuron)

Value

modified neuron

See Also

neuron

Examples

Run this code
# NOT RUN {
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