Verify the integrity of the data object
Arguments
- data
A data frame with items by row and features in the columns.
Must contain one column named "id"
.
Value
A verified data object
Examples
library(tibble)
data <- tribble(
~id, ~name, ~x, ~y,
"foo", "Foo", 0.5, 0.7,
"bar", "Bar", 1.0, 0.1
)
verify_data(data)
#> # A tibble: 2 × 4
#> id name x y
#> <chr> <chr> <dbl> <dbl>
#> 1 foo Foo 0.5 0.7
#> 2 bar Bar 1 0.1