RosettaCodeData/Task/Null-object/R/null-object.r

7 lines
225 B
R

is.null(NULL) # TRUE
is.null(123) # FALSE
is.null(NA) # FALSE
123==NULL # Empty logical value, with a warning
foo <- function(){} # function that does nothing
foo() # returns NULL