updateOutputRange: updateOutputRange

Description Usage Arguments Details Value Author(s)

View source: R/updateOutputRange.R

Description

update part of the time-ordered data.frame with new values

Usage

1
2
updateOutputRange(dsTarget, dsNew, indexColumns = group_vars(dsNew), 
    dateColumn = "date")

Arguments

dsTarget

data.frame to update

dsNew

data.frame with new values

indexColumns

other index columns beside date

dateColumn

name of the column holding the dates/times

Details

Update values of dsNew in dsTarget. Both data.frames must have the same columns. Each row is identified by data and values in the indexColumns.

The function requires that both data.frames have unique dates per index in equidistant time steps. The time steps must match.

Existing rows of the same index and time in the range of dsNew are dropped from dsTarget, and rows of dsNew are appended.

Value

arguemt dsTarget with rows of dsNew updated.

Author(s)

Thomas Wutzler


bgctw/equidIO documentation built on Nov. 17, 2020, 5:05 a.m.