Learn R Programming

amber (version 1.0.3)

intFun.sampleDataFrame: random sampling across space and time for a data frame (FLUXNET and runoff).

Description

This function conducts random sampling with replacement for a single raster layer

Usage

intFun.sampleDataFrame(ref)

Arguments

ref

A raster object

Value

A raster object

Examples

Run this code
# NOT RUN {
# make some data
data <- seq(1, 29, 1)
data <- c(data, NA)
data <- data.frame(matrix(data, ncol = 10))

randomSample <- intFun.sampleDataFrame(ref = data)
print(data)
print(randomSample)

# }

Run the code above in your browser using DataLab