partition_table: Generate partition summary statistics for array objects along...

View source: R/generics.R

partition_tableR Documentation

Generate partition summary statistics for array objects along the last dimension

Description

Generate partition summary statistics for array objects along the last dimension

Usage

partition_table(x, na.rm = FALSE, ...)

## S3 method for class 'array'
partition_table(x, na.rm = FALSE, ...)

## S3 method for class 'AbstractLazyArray'
partition_table(x, na.rm = FALSE, ...)

Arguments

x

an array or LazyArray

na.rm

whether to remove NA when calculating summary statistics

...

passed to other methods or ignored

Value

A data frame with the following possible columns: Min, Max, Mean, Standard Deviation, NAs (total number of NA), and Length.

Examples


# R array
x <- array(1:27, c(3,3,3))
partition_table(x)

# LazyArray
x <- lazyarray(tempfile(), storage_format = 'double', dim = c(3,3,3))
x[] <- 1:27
partition_table(x, quiet=TRUE)


dipterix/lazyarray documentation built on June 30, 2023, 6:30 a.m.