Learn R Programming

dataesgobr (version 1.0.0)

check_file: Check if the dataset has a correct format

Description

Check if the dataset has a correct format

Usage

check_file(file, noconfirm = FALSE, outfile = NULL)

Arguments

file

A string The file to check

noconfirm

A logical, Use TRUE to skip confirmation about file writing

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

Return a logical, if the file is correct it will be TRUE, else FALSE

Examples

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

Run the code above in your browser using DataLab