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 arithmetic 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(), neuronlistz(), neuronlist(), nlapply(), read.neurons(), write.neurons()

Examples

mn2<-Cell07PNs[1:10]*2

jefferis/nat documentation built on Feb. 22, 2024, 12:45 p.m.