Learn R Programming

dataesgobr (version 1.0.0)

load_data: Load data from a file

Description

This function loads the data from the file passed like param

Usage

load_data(file, outfile = NULL)

Arguments

file

A file with data previously downloaded

outfile

A character the path where the file will be save if it need to be modify, NULL to use the file's directory

Value

A data.frame

Examples

Run this code
# NOT RUN {
library(dataesgobr)
# }
# NOT RUN {
file <- system.file("extdata", "fichero.csv", package = "dataesgobr")
load_data(file)
load_data(file, outfile = tempdir())
# }

Run the code above in your browser using DataLab