![]() |
VOOZH | about |
For Data Analysis sometimes creating CSV data file is required and do some operations on it as per our requirement. So, In this article we are going to learn that how to write data to CSV File using R Programming Language.
To write to csv file write.csv() function is used.
Syntax: write.csv(data, path)
Parameter:
- data: data to be added to csv
- path: pathname of the file
Approach:
Let us first create a data frame.
Example:
Output:
Now let us write this data to a csv file and save it to a required location.
Example:
Output: