Learn R Programming

mStats (version 3.4.0)

codebook: Describe the data

Description

codebook() examines the variable names, labels, and data to produce a codebook for describing the dataset

Usage

codebook(data)

Arguments

data

data.frame

Value

a data.frame containing the codebook

Details

It reports a description of the data with the following information.

ANNOTATIONS:

No = serial number

Variable = variable name

Label = variable label

Type = type of variable

Obs = number of valid observations

NA = number of observations with missing value NA

Examples

Run this code
# NOT RUN {
codebook(infert)
codebook(iris)
codebook(mtcars)

# }

Run the code above in your browser using DataLab