Error in R for missing object
Posted
by griffin
on Stack Overflow
See other posts from Stack Overflow
or by griffin
Published on 2010-04-03T15:43:06Z
Indexed on
2010/04/03
15:53 UTC
Read the original article
Hit count: 323
I have several nested functions, some of which as called in lapply
clauses. In the process, sometimes I don't set a default for a parameter and instead check if it was supplied using the missing
function.
I'm getting a strange error right now when I'm not passing a value for a parameter, it has no default, yet missing
resolves to FALSE
. And when I try to use or check the parameter in any other way (using length
, exists
, etc.), I get an error:
Error in try(length(x)) : argument "data" is missing, with no default
Has anyone experienced this failure of the missing
function before?
© Stack Overflow or respective owner