test-code/wtf.R

i <- onezero::pairwise_intersection(
    data = onezero::FoodSample,
    cols = Bisque:Ribeye,
    weight = weight,
    tidy = FALSE
)

u <- onezero::pairwise_union(
    data = onezero::FoodSample,
    cols = Bisque:Ribeye,
    weight = weight,
    tidy = FALSE
)

round(i / u, 3)

pairwise_jaccard(
    data = onezero::FoodSample,
    cols = Bisque:Chili,
    weight = weight,
    stat = "index"
)

onezero::pairwise_jaccard(
    data = onezero::FoodSample,
    cols = Bisque:Chili,
    weight = weight,
    stat = "index"
)
ttrodrigz/onezero documentation built on May 9, 2023, 2:59 p.m.