Read and process OTM data
rnp_otms_data.Rd
Read and processes data from multiple operative temperature model (OTM)
.csv
files and adds metadata
Arguments
- path
A character specifying either the path for a single or the folder for multiple OTM files in
.csv
format. The file needs to have at least a column with information on the moment (i.e., date and time of the day) when each measurement was made and a column with an operative temperature value for each measurement- rows_skip
An integer >= 0 indicating the rows to skip when reading OTM
.csv
files. If omitted, it defaults to0
.- date_col
An integer >= 1 indicating the column in the OTM
.csv
file that contains date of the measurement. Dates need to be in either MM/DD/YYYY HH:MM:SS, MM/DD/YYYY HH:MM or MM/DD/YYYY.- time_col
An integer >= 1 indicating the column in the OTM
.csv
file that contains the time of the measurement. Times need to be in HH:MM:SS or HH:MM format. If not specified, it will try to extract the date information fromdate_col
.- op_temp_col
An integer >= 1 indicating the column column in the OTM
.csv
file that contains the operative temperature measurement- metadata
A
tibble
ordata.frame
containing metadata related to each OTM. It must include anotm_id
character column matching the names of each of the OTM files and numeric columns forlatitude
andlongitude
Value
A tibble
where each row represents a unique operative temperature
measurement (op_temp
) taken by a given OTM (specified by otm_id
),
that occurred in a given year
, date of the year (doy
) and minute of
the day (mod
). The tibble
will have as many additional columns as
metadata characteristics included in metadata
.