| parcels_to_vertices | R Documentation |
Expands parcel-level values to a vertex-level vector using parcellation labels.
parcels_to_vertices(parcel_data, labels, fill = NA_real_)
parcel_data |
Named numeric vector of parcel values (names match labels). |
labels |
Integer vector of parcel labels. |
fill |
Value for medial wall vertices (default: |
Numeric vector of length(labels).
Markello RD et al. (2022) Nature Methods 19:1472-1480. doi:10.1038/s41592-022-01625-w
parcel_data <- c("1" = 10, "2" = 20)
labels <- c(1L, 1L, 2L, 2L, 0L)
parcels_to_vertices(parcel_data, labels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.