setRowAttr: Set rowData attribute of given rows

View source: R/misc.R

setRowAttrR Documentation

Set rowData attribute of given rows

Description

Set rowData attribute of given rows

Usage

setRowAttr(se, values, name = "cluster", clear = TRUE, other = NA)

Arguments

se

A 'SummarizedExperiment' object

values

A named vector of values, where the names correspond to rows of 'se'

name

The name of the rowData column in which to store the attribute.

clear

Logical; whether to clear out any pre-existing such column.

other

The value for unspecified rows (default NA)

Value

The modified 'se' object.

Examples

data("Chen2017", package="sechm")
Chen2017 <- setRowAttr(Chen2017, c("Arc"=1,"Junb"=1,"Npas4"=2))

plger/sechm documentation built on Nov. 21, 2023, 8:53 p.m.