To be able to handle NAs we need to add the parameter: na.action = na.omit,...
To be able to handle NAs we need to add the parameter: na.action = na.omit, this is, omit pixels with NA value.
To be able to handle NAs we need to add the parameter: na.action = na.omit, this is, omit pixels with NA value.