x3p_average: Average an x3p object

View source: R/x3p_average.R

x3p_averageR Documentation

Average an x3p object

Description

Calculate blockwise summary statistics on the surface matrix of an x3p. If the x3p object has a mask, the mode of the mask value

Usage

x3p_average(x3p, b = 10, f = mean, ...)

Arguments

x3p

x3p object

b

positive integer value, block size

f

function aggregate function

...

parameters passed on to function f. Make sure to use na.rm = T as needed.

Examples

logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
small <- x3p_average(logo)

x3ptools documentation built on May 29, 2024, 10:33 a.m.