add_field: Add a field to neuron objects (inc. in a neuronlist)

View source: R/hemibrain_tags.R

add_fieldR Documentation

Add a field to neuron objects (inc. in a neuronlist)

Description

Add an item to the the list object that comprises a neuron

Usage

add_field(x, entry, field = "bodyid", ...)

add_field_seq(x, entries, field = "bodyid", ...)

Arguments

x

a nat::neuronlist or nat::neuron object. It is assumed that this neuron has been read in by neuprintr::neuprint_read_neurons or possibly catmaid::read.neurons.catmaid.

entry

item to add.

field

name of new field, or field to overwrite.

...

Additional arguments passed to methods or eventually to nat::nlapply

entries

a vector/list of entries, the same length as x. Each neuron in x will have the entry in entries as the same index, added to it as field.

Value

a neuron or neuronlist

See Also

add_Label


natverse/hemibrainr documentation built on Nov. 27, 2024, 9:01 p.m.