The following code gets the number of NA in each of the columns as expected, but I was wondering what the . inside ( ) is doing.
NA
.
( )
df %>% summarise(across(everything(),~sum(is.na(.))))
You have told summarize to act on every column. The . represents the current column.
Thank you for your help!
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.