import | R Documentation |
import
reads in a dataframe from a file.
import(file, ...)
file |
a character string of the file. |
... |
Additional arguments passed to the underlying import functions. For example, this can control column classes for delimited file types, or control the use of haven for Stata and SPSS or readxl for Excel (.xlsx) format. |
This function imports a data frame from a data file using a filename, or prompt the user to choose a file without the need to provide a filename.
return a dataframe.
Ahmed Aldarmaki aaldarmaki@wesleyan.edu
read_sas, read_stata, read_spss, read_excel, vroom.
## Not run: df <- import("datasetexample.xlsx")
## Not run: df <- import("datasetexample.xlsx", col_names=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.