read_msd: Import ICPI MER Structured Datasets .txt into R and covert to...

Description Usage Arguments Examples

View source: R/read_msd.R

Description

This function imports a stored ICPI MER/ER Structured Datasets and coverts it from a .txt to an .Rds to significantly limit file size

Usage

1
read_msd(file, save_rds = FALSE, remove_txt = FALSE)

Arguments

file

enter the full path to the MSD/FSD file

save_rds

save the Structured Dataset as an rds file, default = FALSE

remove_txt

should the txt file be removed, default = FALSE

Examples

1
2
3
4
5
6
7
## Not run: #convert Q1 clean PSNU file from txt to Rds
#read in file for use
 path <- "~/Data/ICPI_MER_Structured_Dataset_PSNU_20180323_v2_1.txt"
 df_psnu <- read_msd(path)
#convert to RDS and delete the original txt file
 read_msd(path, save_rds = TRUE, remove_txt = TRUE)
## End(Not run)

ICPI/ICPIutilities documentation built on July 22, 2021, 4:21 a.m.