R/randomcc.R

Defines functions randomcc

Documented in randomcc

randomcc <-
function(x, fraction=0.1)
{
size <- nrow(x)
newSize <- round(size * fraction)
randomRows <- sample(size, newSize)
randomObjects <- x[randomRows,]
return(randomObjects)
}

Try the ccChooser package in your browser

Any scripts or data that you put into this service are public.

ccChooser documentation built on May 1, 2019, 10:56 p.m.