Skip to contents

Replace One Curve In CURVES Data

Usage

replaceOneCurve(curves, curveName, x, y)

Arguments

curves

data frame representing curves, with columns ID, X_Value, Y_Value, as returned by readEpanetInputFile in list element CURVES

curveName

name of the curve to be replaced

x

vector of x values of the curve

y

vector of y values of the curve

Value

data frame in which the lines corresponding to the curve named curveName are replaced with x and y values given in x and y, respectively