Skip to content

Missing values not supported in summary_rows()? #827

@eutwt

Description

@eutwt

It looks like a summary row value can't be missing, even though missing values are displayed correctly (without error or warning) as part of a normal column. Is this known/expected?

library(gt)

example <- gt(data.frame(a = c(1, NA, 3)))

summary_rows(example, columns = a, fns = list(~ sum(.)))
#> Error: Problem with `mutate()` column `a`.
#> ℹ `a = (function (x) ...`.
#> ℹ `a` must be size 1, not 0.

Created on 2021-08-19 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions