Fills missing data where known by other observations with the same id/index

repaint(df, id, var)

Arguments

df

a dataframe

id

a string identifying a column in the dataframe for indexing

var

a string identifying a column or columns in the dataframe to be filled

Value

a dataframe

Examples

# NOT RUN {
myData <- repaint(myData, id="StatID", var=c("Area","Region")
# }