I have imported a file with headings and numbers in multiple columns using the following command. irs_data <- read.csv(file=\"10incyallnoagi.csv\")
irs_data <- read.csv(file=\"10incyallnoagi.csv\")
I wou
you can use the unlist() to convert the list to a vector as the sort() function takes vector form for sorting. so just use
head(sort(unlist(new_var), decreasing=TRUE), 3)