Learn R Programming

ITGM (version 0.42)

firstsMeasurements: First Measurements per Group

Description

this function generates a field "primeiraMedicao" that contains the lowest age for each item in the group both derived from dtFrame

Usage

firstsMeasurements(dtFrame, group = "parcela", age = "idadearred")

Arguments

dtFrame

It is the database that contains the data

group

is the field that represents the groups default parcela

age

default idadearred is the name of field containing the values of the group

Value

data.frame dtFrame with the field "primeiraMedicao"

Examples

Run this code
# 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