powered by
Convenient equivalent of grep("fa[rl].*", names(df), value = TRUE, ignore.case = TRUE) Can handle dataframe (uses names), model (uses parameter names), or a vector of strings.
umx_names(df, pattern = ".*", ignore.case = TRUE, perl = FALSE, value = TRUE, fixed = FALSE, useBytes = FALSE, invert = FALSE)
dataframe to get names from
= "find.*"
default = TRUE (opposite default to grep)
= FALSE
= default = TRUE (opposite default to grep)
- vector of matches
- http://tbates.github.io, https://github.com/tbates/umx
Other Utility Functions: qm, umx_find_object, umx_grep, umx_msg, umx_paste_names, umx_pb_note, umx_print, umx_rename, umx
qm
umx_find_object
umx_grep
umx_msg
umx_paste_names
umx_pb_note
umx_print
umx_rename
umx
# NOT RUN { umx_names(mtcars, "mpg") #"mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear" "carb" umx_names(mtcars, "^d") # "disp", drat umx_names(mtcars, "r[ab]") # "drat", "carb" # }
Run the code above in your browser using DataLab