Description Usage Arguments Value Examples
View source: R/brainImageClass.R
An object obj is tests if its class equals expClass. If not, execution is halted.
1 | checkClass(obj, expClass)
|
obj |
Object to test |
expClass |
character of the class |
TRUE if everything is ok. Otherwise, execution is halted.
1 2 3 4 | data <- data.frame(x=1:10, y=1:10,
z=c(rep(2,5), rep(3,5)), val=rnorm(100))
img <- new("brainImage", data, "test", 10)
checkClass(img, "brainImage")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.