Description Usage Arguments Examples
View source: R/cleaning_functions.R
specify_damage() uses tidyr functions to filter a dataframe containing a summary of damaged areas for all samples and adapt it for later use in cleaning functions.
1 |
data |
Dataframe with summary of damaged brain areas for all samples. Long format in which each row is a damaged area. Requires the following variables: "sample" with the name of the sample; "area" with the acronym of damaged brain area according to Allen Brain Atlas nomenclature; "hemisphere" to specify which hemisphere. |
sample_id |
String used to select relevant sample. |
1 2 3 4 5 6 7 8 9 | x <- data.frame(
sample_id = c(1,1,2,3),
area = c("BLA", "VTA", "CA1", "DG"),
hemisphere = c("left", "left", "right", "right")
)
my_sample <- 1
specify_damage(my_sample, x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.