read_globalAvg: Read in global average temperature time series

Description Usage Arguments Value

View source: R/readdata.R

Description

Use the string defined by the globalAvg_file trainTP argument to import a global average temperature time series from a corresponding txt file.

Usage

1
read_globalAvg(nc_files, globalAvg_file, vardata, paireddat)

Arguments

nc_files

the path and name to the nc file the global average is paired with.

globalAvg_file

The string end added onto the nc_file name for the txt file to read in.

vardata

The data frame to use to check the dimensions of the data imported by the function.

paireddat

The paireddat data frame, this is used to make sure that the number of rows returned matches what is expected.

Value

A matrix of global averages, the number of rows should match the number of rows in the vardata data frame.


JGCRI/fldgen documentation built on July 18, 2020, 1:42 p.m.