Similar to the function is.na()
but focused on the equality with the paramter 'type'.
Source: R/utils.R
is.OfType.Rd
Similar to the function is.na()
but focused on the equality
with the paramter 'type'.
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