search for: cont25

Displaying 1 result from an estimated 1 matches for "cont25".

Did you mean: cont2
2013 Jan 01
1
Order variables automatically
.... .... ############ data<-read,table("example.txt") data <- as.data.frame(lapply(data, ordered)) ############ Now, suppose I have bigger dataset where some variables are categorical (cat) and others are continuous (cont).. cat1 cat2 cont1 cont2 ...cont10 cat3 cont11....cat 40 cont25? etc. Is there a way to code so that R goes through each variable and orders a variable if it is categorical and leaves a variable alone if it is continuous? Thanks, ?Debs