Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

R find n largest

order(vector, decreasing=TRUE)[1:N] # for positive values
order(abs(vector), decreasing=TRUE)[1:N] # for pos & neg
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #R #find #largest
ADD COMMENT
Topic
Name
8+8 =