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 - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Create a stacked percentage column -