Skip to content

Commit

Permalink
fix bug in d3_nest by actually only taking first na child
Browse files Browse the repository at this point in the history
  • Loading branch information
timelyportfolio committed Apr 24, 2017
1 parent 3e0182d commit 1529aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/hierarchy.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1529aca

Please sign in to comment.