Learn R Programming

datplot (version 1.0.0)

get.weights: Calculate the weights for each dated object (internal)

Description

Calculates the weights from two vectors of minimum and maximum dating for each object. Returns a dataframe with the weight in the first column and FALSE in the second if two rows have the same value in both min and max dating.

Usage

get.weights(DAT_min, DAT_max)

Arguments

DAT_min

a vector containing the minimum date (a number) of each object

DAT_max

a vector containing the maximum date (a number) of each object

Value

the 'weight' value for the datsteps-dataframe, that is a quantification of how well the object is dated (lesser value means object is dated to larger timespans, i.e. with less confidence)