View source: R/Record_management.R
import_data | R Documentation |
General wrapper that imports CSV/Excel/RDS files if a file path is given in
input
. If input
is a data frame, it will just be passed
through. An error is raised in the case of unrecognized objects/files.
import_data(input, ...)
input |
A file path to an Excel/CSV/RDS file or a data frame object. |
... |
Additional arguments to pass to |
A data frame object.
## Not run: # These all work: data <- import_data("data.csv") data <- import_data("data.xlsx", sheet = 2) data <- import_data("data.rds") data <- import_data(data) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.