testSplit <- function() {
xsl <- split(faahko,sampclass(faahko))
checkEqualsNumeric(length(xsl), 2)
}
testSplitAll <- function() {
xsl <- split(faahko,sampnames(faahko))
checkEqualsNumeric(length(xsl), length(sampnames(faahko)))
}
testSplitFirst <- function() {
xsl <- split(faahko,c(1,2,2,2,2,2,2,2,2,2,2,2))
checkEqualsNumeric(length(xsl), 2)
}
testSplitLast <- function() {
xsl <- split(faahko,c(2,2,2,2,2,2,2,2,2,2,2,1))
checkEqualsNumeric(length(xsl), 2)
}
testSplitMiddle <- function() {
xsl <- split(faahko,c(2,2,2,2,2,1,2,2,2,2,2,2))
checkEqualsNumeric(length(xsl), 2)
}
testSplitNone <- function() {
xsl <- split(faahko,c(2,2,2,2,2,2,2,2,2,2,2,2))
checkEqualsNumeric(length(xsl), 1)
}
testCombine <- function() {
xsl <- split(faahko,sampclass(faahko))
checkEqualsNumeric(length(sampnames(c(xsl[[1]], xsl[[2]]))), 12)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.