Learn R Programming

hyperSMURF (version 2.0)

do.random.partition: Random partition of the data

Description

Performs a random partition of the indices that refer to a given data set (data frame or matrix)

Usage

do.random.partition(n.ex, n.partitions, seed = 0)

Arguments

n.ex

number of indices to be partitioned

n.partitions

number of partitions

seed

seed for the random generator

Value

a list with n.partitions elements. Each element stores the indices of the partition.

Details

The partition of the data is performed using only the indices of the data not the data itself

Examples

Run this code
# NOT RUN {
do.random.partition(100, 10)
# }

Run the code above in your browser using DataLab