mhs.importclean: mhs-specific script for cleaning a ripple v1 export ready for...

View source: R/mhs.importclean.R

mhs.importcleanR Documentation

mhs-specific script for cleaning a ripple v1 export ready for v2 import

Description

takes a ripple-exported v1 .csv file and turn it into a cleaned .xlsx import

Usage

mhs.importclean(path, importid, new)

Arguments

path

in quotes, enter the path for the exported file (make sure this is .csv)

importid

in quotes, ripple -> site admin -> import -> under "download template" select the new study v2 study -> select "template" -> scroll to all the way to the right, you can find the import id under the column "importType"

new

in quotes, enter where you want and the name of the new cleaned file the function outputs (make sure this is .xlsx)

Examples

mhs.importclean (path = "/Users/phoebelam/Desktop/ripple v1 to v2 migrate/c2021_v1_export.csv", 
new = "/Users/phoebelam/Desktop/ripple v1 to v2 migrate/c2021_v2_import.xlsx", 
importid = "aDTL2wkzBmMEXsL4u")
 

phoebehlam/fhrc documentation built on Nov. 10, 2023, 8:31 p.m.