test_chisq_one: Chi-squared One Sample

View source: R/test_chisq_one.R

test_chisq_oneR Documentation

Chi-squared One Sample

Description

Chi-squared One Sample

Usage

test_chisq_one(data, x)

Arguments

data

data

x

x

Value

results

Examples

data <- tibble::tribble(~fruit, ~count,
                        "Apple"          , 29,
                        "Banana"         , 24,
                        "Cucumber"       , 22,
                        "Dragon Fruit"   , 19
                        )

data <- data |>
  tidyr::uncount(weights = count) |>
  tibble::rowid_to_column("id")

test_chisq_one(data, fruit)

uxr documentation built on Dec. 28, 2022, 2:03 a.m.