# NOT RUN {
# sample_points is a SpatialPointsDataFrame calculated and saved from getSample
# Load it into memory
load(system.file("extdata/examples/sample_points.RData",package="foster"))
partition(sample_points$cluster, type = "kfold", kfold = 5)
# }
Run the code above in your browser using DataLab