ReadRaw: Get raw data and prepare for Plan B smooth

Description Usage Arguments

View source: R/read_raw.r

Description

Reads in csv file with Year in first column and as many survey indices as desired, standardizes series if desired, computes mean of all or user selected surveys, outputs csv file with Year and Mean Index.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ReadRaw(
  data.dir,
  data.file.name,
  od = ".",
  standardize = FALSE,
  usesurvey = NA,
  narmavgflag = FALSE,
  saveplots = FALSE,
  nameplots = ""
)

Arguments

data.dir

directory with csv file

data.file.name

name of csv file (without the .csv extension)

od

directory for output (default=working directory)

standardize

true/false flag to divide by mean of time series (default=FALSE)

usesurvey

vector of true/false to select surveys to average (default=NA which means use all)

narmavgflag

true/false flag for na.rm setting in average across multiple surveys (default=FALSE)

saveplots

true/false flag to save output to od (default=FALSE)

nameplots

added to start of saved files (default=""), spaces not recommended


cmlegault/PlanBsmooth documentation built on Aug. 31, 2021, 8:48 p.m.