rows: Allows row indexing without knowledge of dimensionality or...

View source: R/row.r

rowsR Documentation

Allows row indexing without knowledge of dimensionality or class.

Description

Originally written for the row.r package by Craig Varrichio. Included here because the rowr package was discontinued. I use these functions in my packages

Usage

rows(data, rownums)

Arguments

data

any R object

rownums

indices of target rows

Examples

rows(c('A','B','C'),c(1,3))
rows(list('A','B','C'),c(1,3))
df<-data.frame(a=c(1,2,3),b=c(1,2,3))
rows(df,3)

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.