ejscreen.rollup.save: Helper for ejscreen.rollup.all, to save files of results

View source: R/ejscreen.rollup.save.R

ejscreen.rollup.saveR Documentation

Helper for ejscreen.rollup.all, to save files of results

Description

Just saves csv and/or RData file(s)

Usage

ejscreen.rollup.save(
  myrollup,
  myfolder = getwd(),
  filenamebase = "EJSCREEN",
  scalename = c("tracts"),
  filename.R,
  filename.csv,
  save.R = TRUE,
  save.csv = TRUE
)

Arguments

myrollup

Required, data.frame results from ejscreen.rollup.all (just one scale at a time though)

myfolder

optional folder path for saving files, default = getwd()

filenamebase

optional character element, default = 'EJSCREEN', used to construct filenames to save files if relevant.

scalename

optional character term used to create filenames, default = c('tracts')

filename.R

optional filename, default has the word EJSCREEN and scalename .RData

filename.csv

optional filename, default has the word EJSCREEN and scalename .csv

save.R

optional logical, default = FALSE, whether to save files as .RData

save.csv

optional logical, default = FALSE, whether to save files as .csv

Value

Returns a 2 element vector with full paths of saved R and csv files (or NA instead of a path, if one of those is not saved)

See Also

ejscreen.rollup.all


ejanalysis/ejscreen documentation built on April 2, 2024, 10:15 a.m.