Learn R Programming

EdSurvey (version 4.0.7)

dim.edsurvey.data.frame: 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 edsurvey.data.frame
dim(x)

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.

Arguments

x

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

Author

Paul Bailey