Description Usage Arguments Details Value Examples
split a cell
1 | get_cellXXsplit(x, marginpos = NULL, iscellXX = FALSE)
|
x |
a vector of character strings |
iscell |
x a boolean indicating if x is a cell |
if x is "aa.xoijj_a_1_f_1" returns c("a","1","f","1")
a vector of character strings
1 2 3 4 5 6 7 8 9 10 11 12 | get_cellXXsplit("aa.x_1_2_3_4",iscellXX=FALSE)
get_cellXXsplit("1_2_3_4",iscellXX=TRUE)
get_cellXXsplit("1_2_3_4",2:3,iscellXX=TRUE)
get_cellXXsplit("1_2_3_4",-(2:3),iscellXX=TRUE)
variables<-Tsampledata(TRUE)$variables
unique(get_cellXXsplit(variables,iscell=FALSE))
get_cellXXsplit(variables[50],iscell=FALSE)
get_cellXXsplit(variables[50],-(2:3),iscell=FALSE)
unique(get_cellXXsplit(variables,2,iscell=FALSE))
#Second example: no transposing variables
TK<-Tsampledata(FALSE)
unique(get_cellXXsplit(TK$variables,iscell=FALSE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.