Hello,

There are other types of "empty" objects in R (zero length or dimension).
Maybe some of these

x <- list()
length(x)

x <- matrix(list())
dim(x) <- c(0, 0)
x

Matlab's [] is the empty matrix so maybe the second works.
Other possibilities could be x <- numeric(0) (or integer(0) or
character(0)).
Trial and error might get you there...

Hope this helps,

Rui Barradas


--
View this message in context: 
http://r.789695.n4.nabble.com/Equivalent-of-Nothing-in-VBA-or-in-Matlab-in-R-tp4595385p4597157.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to