Preprocess data. preprocess_data preprocesses data.

preprocess_data(population, annotation_prefix = "Metadata_")

Arguments

population

data.frame with annotations (a.k.a. metadata) and observation variables.

annotation_prefix

optional character string specifying prefix for annotation columns (e.g. "Metadata_" (default)).

Value

data.frame after preprocessing.

Examples

suppressMessages(suppressWarnings(library(magrittr)))
population <- tibble::tibble(
  AreaShape_Area = c(10, 12, 15, 16, 8, 8, 7, 7),
  AreaShape_Compactness = c(10, 12, NA, 16, 8, 8, 7, 7)
)
matric::drop_annotation(population, annotation_prefix = "Metadata_")
#> # A tibble: 8 × 2
#>   AreaShape_Area AreaShape_Compactness
#>            <dbl>                 <dbl>
#> 1             10                    10
#> 2             12                    12
#> 3             15                    NA
#> 4             16                    16
#> 5              8                     8
#> 6              8                     8
#> 7              7                     7
#> 8              7                     7