library(sqldf)
context("SQL DISTINCT")
test_that("SQL Distinct behaves as expected", {
sample <- code_sql_sample("quakes")
d <-
sample %>%
code_sql_distinct(col = "stations") %>%
sqldf()
expect_equal(d[1, 1], 41)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.