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

7 lines
225 B
R
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
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