r - Is it possible to sort/order by a specific column using the write.csv() function? -


is possible dynamically sort data specific column on-the-fly, during export (write.csv()) function itself?

i export data thus:

write.csv(level_names, "level_names.csv") 

but want know if possible achieve this:

write.csv(level_names, "level_names.csv", order(dataset$longname)) 

i know doesn't work - merely illustration purposes.

is effect possible?

it's not contained within function, using dplyr:

level_names %>% arrange(longname) %>% write_csv("level_names.csv") 

Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -