Data frames in R - Exporting data in R



0
1382

👉🏻 Download Our Free Data Science Career Guide: https://bit.ly/319cjkd 👉🏻 FREE MONTH! Get full access to our newly redesigned platform and all our courses (18th October - 18th November): https://bit.ly/3iYuwaf Let's learn how we can export data in R. To save your data into a shareable CSV file, you use write.csv (with a write.csv2 version for those of us who use a comma to denote a decimal). And to save data into a tab-delimited text document, the function to use is write.table. The first argument is the data we want saved. Then, the file name of our saved data must be. This does not have to be identical to the name of the data frame. For everything to work correctly and your file to actually save in CSV format, you’d have to specify that by providing the extension .csv. IMPORTANT: the row.names = argument should be set to FALSE, because if you save a file with the row.names = argument set to TRUE, it will add an extra column in the beginning of the table marking each row from 1 to n, assuming that your actual first column is just the names of the rows. Adding the row.names = argument and setting it to FALSE is going to save you a lot of unnecessary actions. ► Consider hitting the SUBSCRIBE button if you LIKE the content: https://www.youtube.com/c/365DataScience?sub_confirmation=1 ► VISIT our website: https://bit.ly/365ds 🤝 Connect with us LinkedIn: https://www.linkedin.com/company/365datascience/ 365 Data Science is an online educational career website that offers the incredible opportunity to find your way into the data science world no matter your previous knowledge and experience. We have prepared numerous courses that suit the needs of aspiring BI analysts, Data analysts and Data scientists. We at 365 Data Science are committed educators who believe that curiosity should not be hindered by inability to access good learning resources. This is why we focus all our efforts on creating high-quality educational content which anyone can access online. Check out our Data Science Career guides: https://www.youtube.com/playlist?list=PLaFfQroTgZnyQFq4nUfb-w2vEopN3ULMb #dataframes #statistics #datascience

Published by: 365 Data Science Published at: 5 years ago Category: آموزشی