R/writeData.R

## Helper function for 'saveDALYdata'
## Write 'DALY' database data for one outcome

writeData <-
function(txt, dist, strat, data, file){
  write(c(txt, tclvalue(dist), tclvalue(strat)),
        file = file, ncolumns = 6, sep = "\t", append = TRUE)
  for (i in seq(5))
    write(getData(data, "data")[i,],
          file = file, ncolumns = 6, sep = "\t", append = TRUE)
}

Try the DALY package in your browser

Any scripts or data that you put into this service are public.

DALY documentation built on May 2, 2019, 12:19 p.m.