Data Manipulation in R: 'X' must be atomic

后端 未结 2 1798
北恋
北恋 2021-02-15 16:49

I have imported a file with headings and numbers in multiple columns using the following command. irs_data <- read.csv(file=\"10incyallnoagi.csv\")

I wou

2条回答
  •  Happy的楠姐
    2021-02-15 17:19

    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) 
    

提交回复
热议问题