Read and pre process the raw data
read_adv(path_raw, path_raw_header)
path_raw | the path of the raw data file |
---|---|
path_raw_header | the path of header file for the raw data |
a data frame with pre processed raw data
if (!dir.exists("demo")) dir.create("demo") download.file("https://github.com/pzhaonet/advr/raw/master/inst2/data.zip", "demo/data.zip") unzip(zipfile = "demo/data.zip", exdir = "demo") adv_data <- read_adv("demo/data_sample.csv", "demo/data_header.csv")