set--GGobiData-56: Assignments for ggobi datasets

Description Usage Arguments Details Author(s) Examples

Description

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.

Usage

1
2
## S3 replacement method for class 'GGobiData'
x[i, j] <- value

Arguments

x

ggobi dataset

i

row indices

j

column indices

value

new values

Details

This method works by retrieving the entire dataset into R, subsetting that copy, and then returning any changes.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

1
2
3
4
5
6
if (interactive()) {
g <- ggobi(mtcars)
x <- g["mtcars"]
x[1:5, 1:5]
x[1:5, 1] <- 1:5
x[1:5, 1:5]}

rggobi documentation built on May 2, 2019, 6:41 a.m.