wfu-dmds / 2021-lab-meetings

1 stars 0 forks source link

Jonathan Tasks #2

Open LucyMcGowan opened 3 years ago

LucyMcGowan commented 3 years ago

Code for adding variable name:

x <- function(names = c("id_name", "next_name")) {

  d <- data.frame(
    id = 1,
    anything = "test")
  names(d) <- names
  d
}
x(c("id", "the name I Like"))