inst/tinytest/test-internal.R

library(data.table)

ndvi <- fread(system.file("extdata", "sampled-ndvi-MODIS-MOD13Q1.csv", package = "irg"))

# overwrite_col -----------------------------------------------------------
copyNDVI <- copy(ndvi)[, potato := 'golden']
expect_warning(
	irg:::overwrite_col(copyNDVI, 'potato'),
	'overwriting potato column'
)

Try the irg package in your browser

Any scripts or data that you put into this service are public.

irg documentation built on Dec. 22, 2021, 9:06 a.m.