This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: data.frame, factor.
is.na(x)
# if function transform(y) cannot take NAs: y.ok <- !is.na(y) y[y.ok] <- transform(y[y.ok])