. dot notation as argument?

Hi all

Not sure if this is standard to any library but in the following code:

df %<>% mutate( varname = fct_collapse( .$varname, unknown_other = c("Unknown", "Other") ) )

I note the .$ within the fct_collapse() function, why is this needed? Infact I tried the same code without the .$ and it worked fine. So I am wondering what this is used for...

Indeed, It's not needed.

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.