rggobi (version 2.1.22)

"[<-.GGobiData": Assignments for ggobi datasets

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

# S3 method for 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.

Examples

Run this code
# NOT RUN {
if (interactive()) {
g <- ggobi(mtcars)
x <- g["mtcars"]
x[1:5, 1:5]
x[1:5, 1] <- 1:5
x[1:5, 1:5]}
# }

Run the code above in your browser using DataLab