getAnoMedicao: Get Year Measurement

Description Usage Arguments Value Examples

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

1
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

1
2
3
4
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 documentation built on May 2, 2019, 9:16 a.m.