powered by
this function generates a field "primeiraMedicao" that contains the lowest age for each item in the group both derived from dtFrame
firstsMeasurements(dtFrame, group = "parcela", age = "idadearred")
It is the database that contains the data
is the field that represents the groups default parcela
default idadearred is the name of field containing the values of the group
data.frame dtFrame with the field "primeiraMedicao"
# NOT RUN { dtf = data.frame( grupo = c(1,2,3,4,1,2,3,4), medicoes= c(10,20,30,40,5,30,1,52)) firstsMeasurements(dtf, group = "grupo", age = "medicoes") # }
Run the code above in your browser using DataLab