From 5ee05701fb722eb33c1cdf8d16c7dbed30cf0675 Mon Sep 17 00:00:00 2001 From: alexanderbates Date: Tue, 26 Nov 2024 00:16:07 -0500 Subject: [PATCH] Update l2.R --- R/l2.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/l2.R b/R/l2.R index c4bbebe..dbb6fc1 100644 --- a/R/l2.R +++ b/R/l2.R @@ -170,7 +170,7 @@ banc_reroot.neuronlist <- function(x, id = NULL, roots = NULL, estimate = TRUE, if(is.null(roots)){ roots <- banc_roots() } - if("root_position_nm"%in%colnames(roots)){ + if(!"root_position_nm"%in%colnames(roots)){ if("root_position"%in%colnames(roots)){ warning("root_position_nm, converting root_position to root_position_nm") roots$root_position_nm <- apply(banc_raw2nm(roots$root_position),1, paste_coords)