Description Usage Arguments Examples
check.clean.import
imports a file
using readr::read_csv
and utils::read.csv
routines and compare whether they are equal or
not. If they differ, a more precise look is made by
testing near equality (base::all.equal
) and a
diagnosis is returned
1 2 | check.clean.import(path = getwd(), filename = "training.csv",
training = T)
|
path |
Directory where the csv file can be found |
filename |
Filename with extension |
training |
Boolean indicating whether we import training dataset or other datasets (formatting differ) |
1 2 3 4 5 6 7 8 | ## Not run:
# To run following commands, you should
# define a datadir path where all files are located
diag1 <- check.clean.import(path = datadir)
diag2 <- check.clean.import(path = datadir, filename = "WorldBank_Data.csv",training = F)
diag3 <- check.clean.import(path = datadir, filename = "Ilostat_Data.csv",training = F)
diag4 <- check.clean.import(path = datadir, filename = "Faostat_Data.csv",training = F)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.