subset_dataframe: Subset data frame to the rows and/or columns specified

View source: R/subset.R

subset_dataframeR Documentation

Subset data frame to the rows and/or columns specified

Description

Subset data frame to the rows and/or columns specified

Usage

subset_dataframe(df, rows_to_keep = NULL, cols_to_keep = NULL)

Arguments

df

The data frame or matrix to subset

rows_to_keep

Numeric, logical or character vectors of rows to keep in subset. Note: character for named rows only

cols_to_keep

Numeric, logical or character vectors of columns to keep in subset. Note: character for named columns only

Value

A data frame subsetted to specified rows/columns.


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.