#' Title
#'
#' @param dataset
#'
#' @return
#' @export
#'
#' @examples
datasplit = function(dataset) {
return_data = list()
ratio = 7
samp = sample(nrow(dataset), ratio)
train = dataset[samp,]
test = dataset[-samp,]
return_data$train = train
return_data$test = test
return_data
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.