search for: haqppen

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

Did you mean: happen
2011 May 12
2
Simple order() data frame question.
...or some reason I just don't follow the examples there. I must be missing something about the data frame sort there but what? I originally wanted to reverse-order my data frame df1 (see below) by aa (a factor) but since this was not working I decided to simplify and order by bb to see what was haqppening!! I'm obviously doing something stupid but what? (df1 <- data.frame(aa=letters[1:10], bb=rnorm(10))) # Order in acending order by bb (df1[order(df1[,2]),] ) # seems to work fine # Order in decending order by bb. (df1[order(df1[,-2]),]) # does not seem to work =================...