split_vector: splits a vector into a list of vectors, each containing a...

View source: R/split_vector.R

split_vectorR Documentation

splits a vector into a list of vectors, each containing a specified number of vectors of the orignal matrix

Description

splits a vector into a list of vectors, each containing a specified number of vectors of the orignal matrix

Usage

split_vector(b, nvar)

Arguments

b

vector to be split

nvar

vector of integers saying how many columns of b to include in each

Examples

b = c(rep(1,3),rep(2,4),rep(3,3))
split_vector(b,c(3,4,3))

stephenslab/VEB.Boost documentation built on July 2, 2023, 1 p.m.