Skip to content

Commit

Permalink
backwards set ...
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Dec 6, 2024
1 parent 58bee58 commit 26b2a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/SimExtract.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ SimExtract <- function(object, what, fuzzy = TRUE, append = TRUE){
what <- tolower(what)
pick <- attr(object, 'design_names')$design
Design <- if(any(pick != 'dummy_run') &&
all(names(object) %in% attr(object, 'design_names')$design))
all(attr(object, 'design_names')$design %in% names(object)))
object[,attr(object, 'design_names')$design]
else dplyr::tibble(.rows = nrow(object))
if(what == 'design') return(Design)
Expand Down

0 comments on commit 26b2a14

Please sign in to comment.