Learn R Programming

cancerradarr (version 1.3.1)

chop_vector: Generate all the possible combinations of slices in a chopped vector

Description

Generate all the possible combinations of slices in a chopped vector

Usage

chop_vector(vect.size = 3)

Value

a matrix containing all the possible slices to chope a vector per line

Arguments

vect.size

int, the size of the vector

Examples

Run this code
chop_vector(3)

Run the code above in your browser using DataLab