# NOT RUN {
umx_names(mtcars, "mpg") # just "mpg" matches
umx_names(mtcars, "^d") # "disp", drat
umx_names(mtcars, "r[ab]") # "drat", "carb"
umx_names(mtcars, "mpg", replacement = "hello") # "mpg" replaced with "hello"
# }
# NOT RUN {
# TODO umx_names: Add GFF examples to umx_names
umx_names(nl, "1$")
# "zyg" "sex1" "age1" "gff1" "fc1" "qol1" "hap1" "sat1" "AD1" "SOMA1" "SOC1" "THOU1"
umx_names(nl, "2$")
umx_names(nl, "b$")
umx_names(nl, "s$")
umx_names(nl, "[^12bs]$")
# "divorce"
# }
Run the code above in your browser using DataLab