We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a310c commit 2ab4ba0Copy full SHA for 2ab4ba0
1 file changed
tests/testthat/test-acro_pivot_table.R
@@ -6,10 +6,8 @@ test_that("acro_pivot_table without initialising ACRO object first", {
6
test_that("acro_pivot_table works", {
7
testthat::skip_on_cran()
8
expected_table <- data.frame(
9
-# "(mean', 'children')" = c(3.272222, 3.242593, 3.241667),
10
-# "('std', 'children')" = c(2.48458394, 2.43848908, 2.42963966),
11
- "mean children" = c(3.272222, 3.242593, 3.241667),
12
- "std children" = c(2.48458394, 2.43848908, 2.42963966),
+ "('mean', 'children')" = c(3.272222, 3.242593, 3.241667),
+ "('std', 'children')" = c(2.48458394, 2.43848908, 2.42963966),
13
check.names = FALSE
14
)
15
@@ -19,7 +17,5 @@ test_that("acro_pivot_table works", {
19
17
20
18
acro_init()
21
table <- acro_pivot_table(data = nursery_data, index = "parents", values = "children", aggfunc = list("mean", "std"))
22
- print( table)
23
- print(expected_table)
24
expect_equal(table[, -1, drop = FALSE], expected_table[, -1, drop = FALSE])
25
})
0 commit comments