check.clean.import: Check if dataframe import is clean

Description Usage Arguments Examples

Description

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

Usage

1
2
check.clean.import(path = getwd(), filename = "training.csv",
  training = T)

Arguments

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)

Examples

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)

EpidemiumOpenCancer/OpenCancer documentation built on May 12, 2019, 7:46 a.m.