Skip to content
Prev 389185 / 398506 Next

How to remove all rows that have a numeric in the first (or any) column

You cannot apply vectorized operators to list columns... you have to use a map function like sapply or purrr::map_lgl to obtain a logical vector by running the function once for each list element:

sapply( VPN_Sheet1$HVA, is.numeric )
On September 14, 2021 8:38:35 PM PDT, Gregg Powell <g.a.powell at protonmail.com> wrote:
Message-ID: <5F88E791-CEC3-4B77-BF54-47D4D03094FB@dcn.davis.ca.us>
In-Reply-To: <sE0QX_gzL2sYKaWmX7FuESeIEt_y4VDdE3PHJ1yPNe8Mlm8kQ3Wd8NYLzU9lQCA7iHUNSIqKNcO0M2_nzFq1JdMN26OCj2rZNw7lf-wyE5o=@protonmail.com>