tests/testthat/test.apa.zstat.r

context("apa.zstat")
library(apaformat)

zs = apa.zstat(0.0342)
expect_equal(zs, "$z$ = 0.034")

zs = apa.zstat(c(0.0542, 0.0346))
expect_length(zs, 2)
expect_equal(zs[1], "$z$ = 0.054")
expect_equal(zs[2], "$z$ = 0.035")
markanewman/apaformat documentation built on May 10, 2019, 1:19 a.m.