powered by
extractVariable(data = NULL, mode = "numeric")
df <- data.frame(id=seq(1,10), str=letters[1:10], fac=factor(seq(1,10)), stringsAsFactors=FALSE) extractVariable(df) extractVariable(df, mode="character") extractVariable(df, mode="factor")
Run the code above in your browser using DataLab