R/get_obs_names.R

Defines functions get_obs_names

Documented in get_obs_names

#' Get obs names
#'
#' Get the names of each observation in a single-cell object.
#' @inheritParams converters
#' @returns Vector of observation names.
#'
#' @export
#' @examples
#' obj <- example_obj()
#' obs_names <- get_obs_names(obj)
get_obs_names <- function(obj) {
  rownames(get_obs(obj))
}
bschilder/scKirby documentation built on Oct. 2, 2024, 10:16 p.m.