View source: R/qedata_classes.R
| as.qe.data | R Documentation |
This function converts an object to the 'qe.data' class. If the object is not a data.frame or matrix, it is first converted to a data.table.
as.qe.data(x)
x |
An object. The object to be converted to 'qe.data' class. |
The modified object with the 'qe.data' class.
library(data.table)
dt <- data.table(
ID = 1:5,
Name = c("Alice", "Bob", "Charlie", "David", "Eve"),
Age = c(25, 30, 35, 40, 45),
Score = c(85, 90, 95, 80, 75)
)
dt <- as.qe.data(dt);
class(dt) # Should show 'qe.data' along with other classes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.