Convert a character vector to a call of the desired class
a character string (e.g., of column names in a data.table)
the class resulting from the evaluation of the call returned by s2c
intended for use in a data.table (see
@examples library(data.table) first <- data.table(cray=sample(letters,4),"one"=c(1,2,3,4), "two"=c(1,3,5,7)) second <- data.table("cray"=sample(letters,35, TRUE)) oc <- CJ(one=first[,(one)], cray=second[]) sub <- s2c(c("one","cray")) oc[,eval(sub)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.