Compare {CropWaterBalance}R Documentation

Compare Data From Two Samples

Description

Calculates measures of accuracy and agreement.

Usage

Compare(Sample1, Sample2)

Arguments

Sample1

A vector, 1-column matrix or data.frame with evapotranspiration or other variable.

Sample2

A vector, 1-column matrix or data.frame with evapotranspiration or other variable.

Value

A data.frame with:

Examples

# See `?DataForCWB` for more on this data set
Tavg <- DataForCWB[, 2]
Tmax <- DataForCWB[, 3]
Tmin <- DataForCWB[, 4]
Rn <- DataForCWB[, 6]
WS <- DataForCWB[, 7]
RH <- DataForCWB[, 8]
G <- DataForCWB[, 9]
Sample1 <-
  ET0_PM(
    Tavg = Tavg,
    Tmax = Tmax,
    Tmin = Tmin,
    Rn = Rn,
    RH = RH,
    WS = WS,
    G = G,
    Alt = 700)
Sample2 <- ET0_PT(Tavg = Tavg, Rn = Rn, G = G)
Compare(Sample1 = Sample1, Sample2 = Sample2)

[Package CropWaterBalance version 0.2.0 Index]