DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
sort in descending order in r
#sort by mpg (ascending) and cyl (descending) newdata <- mtcars[order(mpg, -cyl),]
Source by www.statmethods.net #
PREVIOUS
NEXT
Tagged:
#sort
#descending
#order
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit