DFI.coercion | R Documentation |
Coerce a DFI object to data.frame or matrix
## S3 method for class 'DFI' as.data.frame(x, ...) ## S3 method for class 'DFI' as.matrix(x, ...)
x |
a DFI object |
... |
optional arguments passed to inner |
A data.frame or matrix object
DFI
### create a simple DFIobj DF <- data.frame(Foo=c(3,5,7,1,5,8,7,10), Bar=c("A","B","B","C","B","B","C","A"), Baz=c(TRUE,FALSE), stringsAsFactors=FALSE) DFIobj <- DFI(DF, c("Foo","Bar")) # create a DFI from DF with indexes on "Foo" and "Bar" columns ### coercion as.data.frame(DFIobj) as.matrix(DFIobj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.