listView: List and view the observations of variables from a dataset

Description Usage Arguments Author(s) See Also Examples

View source: R/listView.R

Description

listView display a list of observations of variables from a dataset. If vars is not specified, the observations of all the variables will be displayed.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
listView(data, vars = NULL, head = TRUE, nrow = 6)

## Default S3 method:
listView(...)

## S3 method for class 'character'
listView(data, vars = NULL, head = TRUE, nrow = 6)

## S3 method for class 'list'
listView(data, vars = NULL, head = TRUE, nrow = 6)

## S3 method for class 'data.frame'
listView(data, vars = NULL, head = TRUE, nrow = 6)

Arguments

data

a data frame object

vars

either one variable or a vector of variables or two variables separated by colon (x:y)

head

A logical value to specify heading or tailing values

nrow

specify the number of observations

...

optional arguments

Author(s)

Myo Minn Oo (Email: dr.myominnoo@gmail.com | Website: https://myominnoo.github.io/)

See Also

codebook

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
listView(infert, education)
listView(infert, education:stratum)
listView(infert, case:stratum)
listView(infert, case:stratum, head = FALSE)
listView(infert, c(education, case, parity))
listView(infert)

## End(Not run)

myominnoo/mStats_beta documentation built on Feb. 29, 2020, 8:17 a.m.