[Rd] summary() does not count missing characters

Yifan Liu they||@n||u @end|ng |rom gm@||@com
Mon Jun 10 11:13:23 CEST 2024


as.character(NA) |> rep(times = 10) |> summary()
vs.
as.numeric(NA) |> rep(times = 10) |> summary()
This feels inconsistent, doesn't it?

I constantly need to count missing characters in some data.frame columns.
It would be helpful if summary() can do that. Thanks.

Sincerely,

Yifan Liu

	[[alternative HTML version deleted]]



More information about the R-devel mailing list