How to reverse the order of a dataframe in R

前端 未结 7 790
终归单人心
终归单人心 2021-01-03 18:37

I\'ve endlessly looked for this and somehow nothing has solved this simple problem.

I have a dataframe called Prices in which there are 4 columns, one of wh

7条回答
  •  时光说笑
    2021-01-03 18:52

    Another tidyverse solution and I think the simplest one is:

    df %>% map_df(rev)

    or using just purrr::map_df we can do map_df(df, rev).

提交回复
热议问题