Nothing
ae2_table_path <- "../data/ae2.csv"
test_that("filter_date_gt", {
all_tables <- read_data(list(ae2 = ae2_table_path))
diag_101 <- featurise(
all_tables,
json_to_feature("../spec/test_dates_gt.json")
)
# Check the result
orig_table <- read_one_table(ae2_table_path)
diag_101_expected <- orig_table %>%
filter(time > lubridate::ymd("2016-03-19")) %>%
group_by(id) %>%
summarise(diag_101_count = n()) %>%
select(c(id, diag_101_count))
for (id_num in orig_table$id) {
if (!id_num %in% diag_101_expected$id) {
diag_101_expected <- diag_101_expected %>%
dplyr::add_row(id = id_num, diag_101_count = 0)
}
}
expect_equal(diag_101$feature_table, diag_101_expected)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.