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

7 lines
225 B
R
Raw Permalink Normal View History

2023-07-01 11:58:00 -04: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