View source: R/assign_study_data_types.R
summarize_attribute | R Documentation |
Given some table X that provides values, summarize the values for an attribute and add summary as annotations on some entity.
The entity could be X itself or another entity Y, e.g. a parent container entity.
Example 1: With datasets, summarize species
for all the files.
Example 2: With projects, summarize dataType
for all the files (in fact, see assign_study_data_types
).
summarize_attribute(
summary_query,
attribute,
entity_id = NULL,
dry_run = TRUE,
check_fun = NULL
)
summary_query |
Query (usually of a fileview) that returns appropriate aggregation per row. You may need to add |
attribute |
Name of attribute to update as annotation. |
entity_id |
Either a single valid Synapse id of the entity for which to update the attribute or a column present in |
dry_run |
Default = |
check_fun |
An optional custom check function to apply to the values being updated in order for update to go through. Should return a boolean. Used only if dry_run = |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.