rowselect: Select rows from a data frame using a character vector or a...

Description Usage Arguments Value Examples

View source: R/manipulate_data.R

Description

Select rows from a data frame using a character vector or a numeric vector

Usage

1
2
rowselect(df, rowchars = c(), rownumbs = c(), complete_names = TRUE,
  df_order = TRUE, print.rownames = FALSE, print.rownumbs = FALSE)

Arguments

df

A data frame

rowchars

A character vector of row names (default: c())

rownumbs

A vector containing the row numbers of the rows to be chosen (default: c())

complete_names

Boolean determining if the entered strings are exact row names (rather than fragments of row names) (default: TRUE)

df_order

Boolean that determines if the rows selected are returned in the order they appear in df (rather than the order they appear in rowchars) (default: TRUE)

print.rownames

Boolean determining if selected row names should be printed upon completion (default: FALSE)

print.rownumbs

Boolean determining if selected row numbers should be printed upon completion (default: FALSE)

Value

The rows from df whose names match the character vector rowchars

Examples

1
2
rowselect(df = Fincher, rowchars = c("dd_Smed_v4_12", "dd_Smed_v4_22"),
          complete_names = FALSE, print.rownumbs = TRUE)

adamnc2/simpleSCDE documentation built on May 7, 2019, 7:40 a.m.