Learn R Programming

RAM (version 1.2.1.3)

write.data: Write Data To CSV File

Description

Creates a .csv-formatted file with the data. The file will be created in your current working directory (see ?getwd and ?setwd), unless specified otherwise by file. Note that if the file field does not end in .csv, ".csv" will be appended to the end of file

Usage

write.data(data, file)

Arguments

data
a data frame or matrix etc.
file
The name of the .csv file to be created.

See Also

write.csv, getwd, setwd

Examples

Run this code
data(ITS1)
## Not run: 
# write.data(ITS1, "my_file_name.csv")
# ## End(Not run)

Run the code above in your browser using DataLab