get.oddoreven: get.oddoreven

View source: R/CodeAndRoll2.R

get.oddorevenR Documentation

get.oddoreven

Description

Returns either odd or even indexed rows or columns from a data frame.

Usage

get.oddoreven(df_ = NULL, rows = FALSE, odd = TRUE)

Arguments

df_

A data frame. Default: NULL

rows

Logical indicating whether to return rows (if TRUE) or columns (if FALSE). Default: FALSE

odd

Logical indicating whether to return odd indexed rows/columns (if TRUE) or even indexed rows/columns (if FALSE). Default: TRUE

Value

A subset of the input data frame.


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.