## requires NMproject directory structure to operate in
if (FALSE) {
## read a dataset that's been copie into SourceData
d <- read.csv("SourceData/orig_data.csv")
## modify it
d <- d[d$ID < 10, ]
d %>% write_derived_data("DerivedData/data.csv")
## load it again either with
d <- read_derived_data("data")
## or more commonly if it is associated with run (e.g. m1),
## you can use input_data() to load it via the nm object
d <- input_data(m1)
}
Run the code above in your browser using DataLab