num_individuals: Get number of individuals

View source: R/get-num-files-ids.R

num_individualsR Documentation

Get number of individuals

Description

Get the number of unique individuals for a study from the metadata files. Checks for ids in the manifest, individual metadata, and biospecimen metadata.

Usage

num_individuals(
  study_view,
  meta_types = c("manifest", "individual", "biospecimen")
)

Arguments

study_view

The file view for a study, with the columns 'file_data', where each element is a tibble with the data, and metadataType, where each element is the metadataType for the file.

meta_types

List of metadata types to gather ids from. Default is 'manifest', 'individual', and 'biospecimen'.

Value

Number of unique individual ids or 0 if no metadataTypes individual, biospecimen, manifest exist in 'study_view'.


Sage-Bionetworks/dccmonitor documentation built on May 28, 2022, 10:39 a.m.