Nothing
test_that("convert_tier menghasilkan skor yang benar", {
data <- data.frame(
Jwb_1 = c(1, 1, 0),
Als_1 = c(1, 0, 0),
Jwb_2 = c(0, 1, 1),
Als_2 = c(1, 0, 1)
)
rules <- c(
"11" = 4,
"10" = 3,
"01" = 2,
"00" = 1
)
hasil <- convert_tier(
data,
rules,
n_tier = 2
)
expect_equal(
hasil$Score_Item_1,
c(4, 3, 1)
)
expect_equal(
hasil$Score_Item_2,
c(2, 3, 4)
)
})
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.