dim.exdf: Retrieve the dimension of an exdf object

View source: R/exdf.R

dim.exdfR Documentation

Retrieve the dimension of an exdf object

Description

Returns the dimensions of an exdf object's main_data. Also enables nrow and ncol for exdf objects.

Usage

  ## S3 method for class 'exdf'
dim(x)

Arguments

x

An exdf object.

Value

Returns dim(x[['main_data']]).

See Also

exdf

Examples

simple_exdf <- exdf(data.frame(A = 1), data.frame(A = 'u'), data.frame(A = 'c'))

dim(simple_exdf)
dim(simple_exdf[['main_data']]) # An equivalent command

nrow(simple_exdf)
ncol(simple_exdf)

PhotoGEA documentation built on April 11, 2025, 5:48 p.m.