Skip to content
Prev 389035 / 398506 Next

How to globally convert NaN to NA in dataframe?

On 02/09/2021 3:20 p.m., Greg Minshall wrote:
x <- lapply(...) says "set x to the list on the RHS", so x becomes a 
list, not a dataframe.

x[] <- lapply(...) says "set the values in x to the values in the list 
on the RHS", so x retains its class.

Duncan Murdoch