Get Year Measurement
using column_name_measurement_date column in the form MM/YYYY creates a new column with the name "ANO_MEDICAO" in YYYY format
getAnoMedicao(dataFrame, column_name_measurement_date, column_name_plot)
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) |
dataFrame dataframe that has columns column_name_measurement_date, column_name_plot, ANO_MEDICAO
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")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.