Learn R Programming

ImportExport (version 1.3)

var_view: Summarize variable information

Description

Creates a table with the name, the description, the value labels and the format for each variable in the data frame. It is similar to the variable view shown in the SPSS.

Usage

var_view(x)

Arguments

x

The data frame whose variables we want to summarize.

Value

A data frame containing the specified summary.

See Also

spss_import

Examples

Run this code
# NOT RUN {
require(ImportExport)
a<- 1:10
b<-rep("b",times=10)
c<-rep(1:2,each=5)
x<-data.frame(a,b,c)
attr(x$a,"label")<- "descr1"
attr(x$b,"label")<- NULL
attr(x$c,"label")<- "descr3"
attr(x$c,"value.labels")<-list("1"="Yes","2"="No")
var_view(x)

# }

Run the code above in your browser using DataLab