Utility_DF: Utility functions for data frames.

Utility_DFR Documentation

Utility functions for data frames.

Description

Utility functions for data frames.

Usage

sortByMedian(
  df,
  groupColumnName = "FeatureID",
  valueColumnName = "Importance",
  descending = F
)

mutate_if_byrow(df, .predictate, ...)

Arguments

df

Any dataframe.

groupColumnName

The column name for the grouping variables.

valueColumnName

The column name for values.

descending

Logical. Whether the dataframe should be reordered in a descending order.

.predictate

A predictate function to be applied to the rows or a logical vector. Note: columns to be mutated have to be created in advance.

...

Other parameters passed to dplyr::mutate.


masato-ogishi/Repitope documentation built on Feb. 14, 2023, 5:47 a.m.