isplit {rhdf5client}R Documentation

isplit converts a numeric vector into a list of sequences for compact reexpression

Description

isplit converts a numeric vector into a list of sequences for compact reexpression

sproc makes vector of type character of triplets initial:final:stride in R-conventions

Usage

isplit(x)

sproc(spl)

Arguments

x

a numeric vector (should be integers)

spl

output of isplit

Value

list of vectors of integers which can be expressed as initial/final/stride triplets

list of colon-delimited strings each with initial/final/stride triplet

Examples

inds = c(1:10, seq(25,50,2), seq(200,150,-2))
sproc(isplit(inds))

[Package rhdf5client version 1.2.3 Index]