Nothing
context("generalized_log")
test_that("`generalized_log` generalized_logs data", {
data <- data.frame(x = rnorm(5), y = rnorm(5))
db <- DBI::dbConnect(RSQLite::SQLite(),
":memory:",
loadable.extensions = TRUE
)
data <- dplyr::copy_to(db, data)
glog <- function(x, c = 1) log((x + (x^2 + c^2)^0.5) / 2)
expect_equal(
generalized_log(
population = data,
variables = c("x", "y")
) %>% dplyr::collect() %>%
as.data.frame(),
glog(data %>% dplyr::collect())
)
expect_equal(
generalized_log(
population = data,
variables = c("x")
) %>% dplyr::collect(),
within(data %>% dplyr::collect(), x <- glog(x))
)
DBI::dbDisconnect(db)
})
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.