Skip to content
Permalink
Browse files

fix bug in d3_nest by actually only taking first na child

  • Loading branch information
timelyportfolio committed Apr 24, 2017
1 parent 3e0182d commit 1529acad5230207e3b4711202509bc5e9411076b
Showing with 1 addition and 1 deletion.
  1. +1 −1 R/hierarchy.R
@@ -33,7 +33,7 @@ promote_na_one <- function(x){
na_child <- x$children[[1]][na_child_loc,]
x <- dplyr::bind_cols(
x,
na_child[,setdiff(colnames(na_child),c("name","children","colname"))]
na_child[1,setdiff(colnames(na_child),c("name","children","colname"))]
)

# eliminate na child

0 comments on commit 1529aca

Please sign in to comment.
You can’t perform that action at this time.