I've got a very strange problem in R. I'm trying to run a plm
with a certain panel data.frame
. If i run the model, sometimes there's warning and sometimes there isn't. How is that possible? If i type class(mydf)
, exactly the same thing, only sometimes a warning.
Does anyone know what this is about?
class(mydf)
[1] "data.frame"
Warning messages:
1: In if (is.na(le)) { :
the condition has length > 1 and only the first element will be used
2: In if (is.na(le)) " __no length(.)__ " else if (give.length) { :
the condition has length > 1 and only the first element will be used
3: In if (le > 0) paste0("[1:", paste(le), "]") else "(0)" :
the condition has length > 1 and only the first element will be used
class(mydf)
[1] "data.frame"