search for: cont10

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

Did you mean: cont1
2013 Jan 01
1
Order variables automatically
...? 0 ? ?? 0 ? ? 0 ? ? 0 ....... .... ############ 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