comparison_replaceMissing | R Documentation |
Replace missing values in a scan
comparison_replaceMissing(heightValues, replacement = 0)
heightValues |
list/tibble column of x3p objects |
replacement |
value to replace NAs |
A list of the same length as the input containing x3p objects for which NA values have been replaced.
data(fadul1.1_processed,fadul1.2_processed) cellTibble <- fadul1.1_processed %>% comparison_cellDivision(numCells = c(8,8)) %>% dplyr::mutate(regionHeightValues = comparison_getTargetRegions(cellHeightValues = cellHeightValues, target = fadul1.2_processed)) %>% dplyr::mutate(cellPropMissing = comparison_calcPropMissing(heightValues = cellHeightValues), regionPropMissing = comparison_calcPropMissing(heightValues = regionHeightValues)) %>% dplyr::filter(cellPropMissing <= .85 & regionPropMissing <= .85) %>% dplyr::mutate(cellHeightValues = comparison_standardizeHeights(heightValues = cellHeightValues), regionHeightValues = comparison_standardizeHeights(heightValues = regionHeightValues)) %>% dplyr::mutate(cellHeightValues = comparison_replaceMissing(heightValues = cellHeightValues), regionHeightValues = comparison_replaceMissing(heightValues = regionHeightValues)) head(cellTibble)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.