neuronlist-arithmetic: Arithmetic for neuron coordinates applied to neuronlists

*.neuronlistR Documentation

Arithmetic for neuron coordinates applied to neuronlists

Description

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

Usage

## S3 method for class 'neuronlist'
x * y

## S3 method for class 'neuronlist'
x + y

## S3 method for class 'neuronlist'
x - y

## S3 method for class 'neuronlist'
x / y

Arguments

x

a neuronlist

y

(a numeric vector to multiply coords in neuronlist members)

Value

modified neuronlist

See Also

Other neuronlist: is.neuronlist(), neuronlist-dataframe-methods, neuronlistfh(), neuronlist(), nlapply(), read.neurons(), write.neurons()

Examples

mn2<-Cell07PNs[1:10]*2

nat documentation built on Aug. 25, 2023, 5:16 p.m.