Werther
Werther

Reputation: 133

While running an R Kernel in a Google Colab notebook, how can a data frame be exported as a .csv file?

The title of the question pretty much says it all. I’m using R in Google Colab and while analyzing some data I have generated an output data frame which I wish to export (either to Google Drive or to my local desktop). How can I achieve this?

Upvotes: 3

Views: 1412

Answers (1)

anddt
anddt

Reputation: 1651

You can save a .csv file in Colab root folder with a classic:

write.csv(your_df, file='output.csv')

You will find the file in the left sidebar, clicking on it will pop the option to download it. enter image description here

Upvotes: 3

Related Questions