search for: alphebit

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

Did you mean: alphabet
2010 May 06
1
bar order using lattice barchart()
...er of the data. I think this has to do with the row index number since order() does not re-number the rows in the new order but instead keeps the original row numbers and puts them in a different order. For example: xy<-data.frame(x=letters[1:5],y=c(3,9,2,1,10)) #This produces a dataframe in alphebitical order with row numbers in #numerical order. > xy x y 1 a 8.921657 2 b 10.314625 3 c 9.531537 4 d 10.818563 5 e 9.084872 #If I re-order the data based on the value of y xy<-xy[order(y),] #I get a dataframe ordered by y but the row numbers are still in #alphebetical order b...