This function is used to upload the new masked dataset to GitHub (USAID-OHA-SI/themask) so that others can use it. This function is for package developers use only. The data from msk_create() are subset to 16 PSNUs and masked across geographic and mechanism variables. Either the PSNUxIM or NAT_SUBNAT Structured Datasets can be masked.

msk_release(filepath, output_folder)

Arguments

filepath

path to the PSD file (PSNUxIM or NAT_SUBNAT) or masked file

output_folder

location where you want to store the new file (default does not save the file)

Value

dataframe with converted geography + mech info

References

msk_create

Examples

if (FALSE) { # \dontrun{
#create and upload a new release
library(glamr)
library(themask)

#store path to latest MSD
path <- si_path() %>% return_latest("PSNU_IM")

#create a masked dataset from the PSNUxIM MSD
msk_release(path, "project1/data")
} # }
if (FALSE) { # \dontrun{
#upload release from an existing masked dataset
library(glamr)
library(themask)

#store path to masked dataset
path_msk <- return_latest("project1/data","TRAINING")

#create a masked dataset from the PSNUxIM MSD
msk_release(path_msk)
} # }