dim.edsurvey.data.frame: Dimensions of an edsurvey.data.frame or an...

View source: R/dim.edsurvey.data.frame.R

dim.edsurvey.data.frameR Documentation

Dimensions of an edsurvey.data.frame or an edsurvey.data.frame.list

Description

Returns the dimensions of an edsurvey.data.frame or an edsurvey.data.frame.list.

Usage

## S3 method for class 'edsurvey.data.frame'
dim(x)

Arguments

x

an edsurvey.data.frame or an edsurvey.data.frame.list

Value

For an edsurvey.data.frame, returns a numeric vector of length two, with the first element being the number of rows and the second element being the number of columns.

For an edsurvey.data.frame.list, returns a list of length two, where the first element is named nrow and is a numeric vector containing the number of rows for each element of the edsurvey.data.frame.list. The second element is named ncol and is the number of columns for each element. This is done so that the nrow and ncol functions return meaningful results, even if nonstandard.

Author(s)

Paul Bailey


EdSurvey documentation built on Nov. 2, 2023, 6:25 p.m.