count_target: Count targets in data frame

Description Usage Arguments Details Value See Also

View source: R/target_mirna.R

Description

Count occurrence of targets in a data frame.

Usage

1
count_target(df, col.target = Target, add.df = TRUE)

Arguments

df

Data frame containing a column with targets.

col.target

Symbol. Column containing targets.

add.df

Boolean. If add.df = TRUE, adds column Target_count to df containing the count of targets. If add.df = FALSE, returns a new data frame with the count of targets.

Details

Count occurrence of targets in a data frame. The count of targets can either be returned as a separate data frame, only listing the targets and their respective frequency, or it can be added to the data frame provided as an extra column.

Value

Data frame, either with the targets and their frequency as a new data frame, or with the frequency of targets added as a new column to the input data frame df.

See Also

join_targets(), plot_target_count()

Other target functions: join_mirtarbase(), join_targets(), plot_target_count(), plot_target_mir_scatter()


JulFriedrich/miRetrieve documentation built on Sept. 20, 2021, 11:37 p.m.