-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add info as the output of sim_gs_n()
#273
Add info as the output of sim_gs_n()
#273
Conversation
…ttps://github.com/Merck/simtrial into 259-can-we-add-the-info-to-the-output-of-sim_gs_n
…ttps://github.com/Merck/simtrial into 259-can-we-add-the-info-to-the-output-of-sim_gs_n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
The title of this PR is confusing. It looks like you added the columns |
Good idea. We can filling missing columns with library("dplyr")
library("tibble")
df1 <- tibble(x = 1:2, y = letters[1:2])
df2 <- tibble(x = 4:5, z = 1:2)
r1 <- bind_rows(df1, df2)
rbind(df1, df2)
## Error in match.names(clabs, names(xi)) :
## names do not match previous names
library("data.table")
r2 <- data.table::rbindlist(list(df1, df2), use.names = TRUE, fill = TRUE)
identical(as.data.frame(r1), as.data.frame(r2))
## [1] TRUE |
Shall we create a issue for this? |
I already have RStudio open, so I'm going to attempt to do it right now |
See issue #259 .