From they||@n||u @end|ng |rom gm@||@com  Mon Jun 10 11:13:23 2024
From: they||@n||u @end|ng |rom gm@||@com (Yifan Liu)
Date: Mon, 10 Jun 2024 04:13:23 -0500
Subject: [Rd] summary() does not count missing characters
Message-ID: <CADdpgayq--ABABGMc17C3px3BDu3K9mPdbz526pkS_csw76feg@mail.gmail.com>

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]]



[Rd] summary() does not count missing characters
Yifan Liu