neuronlist objects consist of a list of neuron objects (usually of class neuron or dotprops) along with an optional attached dataframe containing information about the neurons. neuronlist objects can be indexed using their name or the number of the neuron like a regular list. Both the list itself and the attached data.frame must have the same unique (row)names. If the [ operator is used to index the list, the attached dataframe will also be subsetted.

It is perfectly acceptable not to pass any parameters, generating an empty neuronlist

neuronlist(..., DATAFRAME = NULL)



objects to be turned into a list


an optional data.frame to attach to the neuronlist containing information about each neuron.


A new neuronlist object.

See also


# generate an empty neuronlist nl=neuronlist() # slice an existing neuronlist with regular indexing kcs5=kcs20[1:5] # simple summary of neuronlist contents Cell07PNs
#> 'neuronlist' containing 40 'neuron' objects and 'data.frame' with 27 vars [4.4 MB]
# subset to make a smaller neuronlist Cell07PNs[1:3]
#> 'neuronlist' containing 3 'neuron' objects and 'data.frame' with 27 vars [129.4 kB]
# extract a single neuron from a neuronlist n1=Cell07PNs[[1]] n1
#> 'neuron' with 180 vertices in 1 tree
# list all methods for neuronlist objects methods(class='neuronlist')
#> [1] - [ [<- * #> [5] / + as.neuronlistfh #> [9] c data.frame<- dimnames dotprops #> [13] droplevels head intersect mirror #> [17] nvertices plot plot3d potential_synapses #> [21] print prune_in_volume prune_online prune_twigs #> [25] prune resample setdiff sholl_analysis #> [29] subset summary tail union #> [33] with xform xyzmatrix xyzmatrix<- #> see '?methods' for accessing help and source code