You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occasionally it happened to me that I needed to get some metadata information about the neuron that is kept in data.frame attribute. For example, I have a function that does action A if the neuron has soma, and action B if it doesn't. So far to achieve that I had to work around nlapply. I thought that including such metadata as attributes during iteration would be nice though. I.e.:
soma_radius<-function(n) {
if (isTRUE(n$soma))
n$d[n$d$Parent==-1,"W"]
else0
}
The text was updated successfully, but these errors were encountered:
Occasionally it happened to me that I needed to get some metadata information about the neuron that is kept in data.frame attribute. For example, I have a function that does action A if the neuron has soma, and action B if it doesn't. So far to achieve that I had to work around
nlapply
. I thought that including such metadata as attributes during iteration would be nice though. I.e.:The text was updated successfully, but these errors were encountered: