check_file: Check if the dataset has a correct format

Description Usage Arguments Value Examples

Description

Check if the dataset has a correct format

Usage

1
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

1
2
3
library(dataesgobr)
file <- system.file("extdata", "fichero.csv", package="dataesgobr")
correct <- check_file(file, noconfirm = TRUE, outfile = tempdir())

dataesgobr documentation built on June 18, 2019, 5:04 p.m.