rggobi (version 2.1.22)

"[.GGobiData": Subsettting

Description

Subsetting for ggobi datasets

Usage

# S3 method for GGobiData
[(x, i, j, drop=FALSE)

Arguments

x

ggobi dataset

i

rows

j

cols

drop

drop dimensions?

Value

desired subset from data.frame

Details

This functions allow one to treat a ggobi dataset as if it were a local data.frame. One can extract and assign elements within the dataset.

This method works by retrieving the entire dataset into R, and then subsetting with R.

Examples

Run this code
# NOT RUN {
if (interactive()) {

g <- ggobi(mtcars)
x <- g$mtcars
x[1:5, 1:5]
x[[1]]
x$cyl}
# }

Run the code above in your browser using DataCamp Workspace