Displaying 1 result from an estimated 1 matches for "droplikesa".
Did you mean:
droplikesas
2012 Jun 22
3
dropping variables from a data frame inside a function
Why doesn't this work?
#Drop a variable name from a data frame
DropLikeSAS <- function(x,df) {
df[[x]] <- NULL
0
}
DropLikeSAS("VarName", DataFrameName)
Try it. The column VarName will not be deleted from the data frame DataFrameName.
But
x <- "...