table_filter {TOmicsVis}R Documentation

Table filter used to filter row by column condition.

Description

Table filter used to filter row by column condition.

Usage

table_filter(data, ...)

Arguments

data

Dataframe: Length, Width, Weight, and Sex traits dataframe (1st-col: Value, 2nd-col: Traits, 3rd-col: Sex).

...

Expression: multiple expressions.

Value

Table: table filter used to filter row by column condition.

Author(s)

benben-miao

Examples

# 1. Library TOmicsVis package
library(TOmicsVis)

# 2. Use example dataset
data(traits_sex)
head(traits_sex)

# 3. Set height > 100 & eye_color == "black"
res <- table_filter(traits_sex, Sex == "Male" & Traits == "Weight" & Value > 40)
head(res)


[Package TOmicsVis version 2.0.0 Index]