Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getAnoMedicao

Get Year Measurement


Description

using column_name_measurement_date column in the form MM/YYYY creates a new column with the name "ANO_MEDICAO" in YYYY format

Usage

getAnoMedicao(dataFrame, column_name_measurement_date, column_name_plot)

Arguments

dataFrame

that has the column DATE(MM/YYYY) and a ID column_name_plot

column_name_measurement_date

column with a date format

column_name_plot

a column of dataFrame, identification of plot (ID_plot)

Value

dataFrame dataframe that has columns column_name_measurement_date, column_name_plot, ANO_MEDICAO

Examples

column_name_measurement_date <- c("02/2009","02/2010","02/2011","02/2012")
column_name_plot <- c(1,2,3,4)
test <- data.frame(column_name_measurement_date,column_name_plot)
getAnoMedicao(test,"column_name_measurement_date","column_name_plot")

Fgmutils

Forest Growth Model Utilities

v0.9.5
GPL-2
Authors
Clayton Vieira Fraga Filho, Ana Paula Simiqueli, Gilson Fernandes da Silva, Miqueias Fernandes, Wagner Amorim da Silva Altoe
Initial release
2018-10-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.