View source: R/verify_row_info.R
verify_row_info | R Documentation |
Verify the integrity of the row info object
verify_row_info(row_info, data)
row_info |
A data frame describing the rows of
|
data |
A data frame with items by row and features in the columns.
Must contain one column named |
The row info object with all expected columns.
library(tibble)
data <- tribble(
~id, ~name, ~x, ~y,
"foo1", "Foo1", 0.5, 0.7,
"foo2", "Foo2", 0.5, 0.8,
"bar1", "Bar1", 1.0, 0.2,
"bar2", "Bar2", 1.0, 0.1
)
row_info <- tribble(
~id, ~group,
"foo1", "foo",
"foo2", "foo",
"bar1", "bar",
"bar2", "bar"
)
verify_row_info(row_info, data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.