For the load, read.table, and read.csv functions, the file to be read can also be a complete URL (for supported URLs, use ?url for more information).
On some occasions, data may be in an Excel file instead of a flat text file. The WriteXLS package allows writing an object into an Excel file with a given variable in the first argument and the file to be written in the second argument:
- Install the WriteXLS package:
> install.packages("WriteXLS")
- Load the WriteXLS package:
> library("WriteXLS")
- Use the WriteXLS function to write the DataFrame iris into a file named iris.xls:
> WriteXLS("iris", ExcelFileName="iris.xls")