Skip to content
Back to formatted view

Raw Message

Message-ID: <CADdpgayq--ABABGMc17C3px3BDu3K9mPdbz526pkS_csw76feg@mail.gmail.com>
Date: 2024-06-10T09:13:23Z
From: Yifan Liu
Subject: summary() does not count missing characters

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