| import_data | R Documentation |
Reads a CSV (.csv) or 'Excel' (.xlsx, .xls) file and returns a data frame. Column names are converted to snake_case and duplicates are made unique.
import_data(filepath, sheet = 1, sep = ",", dec = ".", ...)
filepath |
Character string. Path to the data file. Supported formats:
|
sheet |
Character or integer. For Excel files, the sheet to read. Defaults to the first sheet. Ignored for CSV files. |
sep |
Character. Field separator for CSV files. Default |
dec |
Character. Decimal separator for CSV files. Default |
... |
Additional arguments passed to |
A data frame with column names converted to snake_case. Duplicate column names are made unique by appending numeric suffixes.
# Load the included demo appraisal dataset
demo_file <- system.file("extdata", "Appraisal_1.csv", package = "earthUI")
df <- import_data(demo_file)
head(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.