Skip to contents

Similar to the function is.na() but focused on the equality with the paramter 'type'.

Usage

is.OfType(data, type)

Arguments

data

A data.frame

type

The value to search in the dataframe

Value

A boolean dataframe

Author

Samuel Wieczorek

Examples

library(QFeatures)
data(ft, package='DaparToolshed')
obj <- ft[[1]]
data <- qMetacell(obj)
is.OfType(as.data.frame(data), "MEC")
#>   metacell_Sample_A_R1 metacell_Sample_A_R2 metacell_Sample_A_R3
#> 1                FALSE                FALSE                FALSE
#> 2                FALSE                FALSE                FALSE
#> 3                FALSE                FALSE                FALSE
#> 4                FALSE                FALSE                FALSE
#> 5                FALSE                FALSE                FALSE
#> 6                FALSE                FALSE                FALSE
#>   metacell_Sample_B_R1 metacell_Sample_B_R2 metacell_Sample_B_R3
#> 1                FALSE                FALSE                FALSE
#> 2                FALSE                FALSE                FALSE
#> 3                FALSE                FALSE                FALSE
#> 4                FALSE                FALSE                FALSE
#> 5                FALSE                FALSE                FALSE
#> 6                FALSE                FALSE                FALSE