Learn R Programming

survey (version 3.31-2)

dimnames.DBIsvydesign: Dimensions of survey designs

Description

dimnames returns variable names and row names for the data variables in a design object and dim returns dimensions. For multiple imputation designs there is a third dimension giving the number of imputations. For database-backed designs the second dimension includes variables defined by update. The first dimension excludes observations with zero weight.

Usage

"dim"(x) "dim"(x) "dimnames"(x) "dimnames"(x) "dimnames"(x) "dimnames"(x)

Arguments

x
Design object

Value

A vector of numbers for dim, a list of vectors of strings for dimnames.

See Also

update.DBIsvydesign, with.svyimputationList

Examples

Run this code
data(api)
dclus1 <- svydesign(ids=~dnum,weights=~pw,data=apiclus1,fpc=~fpc)
dim(dclus1)
dimnames(dclus1)
colnames(dclus1)

Run the code above in your browser using DataLab