Retrieve the dimension of an exdf object
dim.exdf.Rd
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)
Examples
simple_exdf <- exdf(data.frame(A = 1), data.frame(A = 'u'), data.frame(A = 'c'))
dim(simple_exdf)
#> [1] 1 1
dim(simple_exdf[['main_data']]) # An equivalent command
#> [1] 1 1
nrow(simple_exdf)
#> [1] 1
ncol(simple_exdf)
#> [1] 1