add_colnames_times_tseries: Add column names and read row names into times

View source: R/add_times_colnames_tseries.R

add_colnames_times_tseriesR Documentation

Add column names and read row names into times

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

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/sflddata documentation built on April 19, 2022, 11:19 a.m.