years_to_rownames {dendroTools} | R Documentation |
Function returns a data frame with row names as years
Description
Function returns a data frame with row names as years
Usage
years_to_rownames(data, column_year)
Arguments
data |
a data frame to be manipulated |
column_year |
string specifying a column with years |
Value
a data frame with years as row names
Examples
data <- data.frame(years = seq(1950, 2015), observations = rnorm(66))
new_data <- years_to_rownames(data = data, column_year = "years")
data <- data.frame(observations1 = rnorm(66), years = seq(1950, 2015),
observations2 = rnorm(66), observations3 = rnorm(66))
new_data <- years_to_rownames(data = data, column_year = "years")
[Package dendroTools version 1.2.13 Index]