split_dirs: Function to split vector of with names of directories into...

View source: R/cluster_utils.R

split_dirsR Documentation

Function to split vector of with names of directories into chunks of specific size

Description

Function to split vector of with names of directories into chunks of specific size

Usage

split_dirs(dirs, size)

Arguments

dirs

Vector with names of directories

size

Size to divide vector.

Details

If we want to split a vector of 15 elements into chunks of 10 elements, the first object in the list will have 10 element, and the second object in the list will have 5 elements.

Value

A list or a list of lists of total number of directories split in the value for size.


thednainus/HIVepisimAnalysis documentation built on Sept. 21, 2023, 7:32 a.m.