79278675

Date: 2024-12-13 14:43:28
Score: 1
Natty:
Report link

Yes, the tidyverse package (specifically dplyr) offers a more elegant and readable way to handle this.

library(dplyr)

UNI %>%
  filter(if_any(where(is.numeric), ~ !is.finite(.)))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Akhil Chandran