add_colnames_times_tseries: Add column names and read row names into times

Description Usage Arguments

View source: R/add_times_colnames_tseries.R

Description

Very short function for convenience in converting matrices from t(extract(brick, SpatialPoints)) into a dataframe with a column of time stamps, and column names given by site.

Usage

1
add_colnames_times_tseries(tseries, newcolnames, format = "X%Y.%m.%d")

Arguments

tseries

A matrix or data frame with rownames giving time stamps.

newcolnames

Column names to assign to tseries (not including the new time column)

format

The format to supply to lubridate's as_date function.


sustainablefarms/linking-data documentation built on Oct. 28, 2020, 2:41 a.m.