neuron-arithmetic: Arithmetic for neuron coordinates

Description Usage Arguments Value See Also Examples

Description

If x is a 1-vector or a 3-vector, operate on xyz only If x is a 4-vector, apply operation to xyz and diameter

Usage

1
2
## S3 method for class 'neuron'
Ops(e1, e2 = NULL)

Arguments

e1

a neuron

e2

(a numeric vector to multiply neuron coords in neuron)

Value

modified neuron

See Also

neuron

Examples

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

jefferis/nat documentation built on Oct. 25, 2018, 6:29 p.m.