Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

How to extract the row with min or max values? in R

df[which.max(df$Var),]
df[which.min(df$Var),]
 
PREVIOUS NEXT
Tagged: #How #extract #row #min #max #R
ADD COMMENT
Topic
Name
4+6 =