-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NA + simulate + re.form = NULL (GH #737) [run ci]
- Loading branch information
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1e678b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm....
class(.) %in% c("..", "...")
is "the same bad" as the other cases mentioned in my think again! blog ...even though you may argue here that there are only a few possible string values for
class()
here, this may be true, typically, but not necessarily...1e678b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Would you suggest
inherits(fit.na.action, "omit") || inherits(fit.na.action, "exclude")
?I'm not sure whether the fact that the
na.action
attributes are classed is explicitly documented anywhere (except maybe in the White Book, although I doubt it ...)From
?model.frame
:From
?na.action
:?na.omit
does not have a "Value" section, so we just have to Use the Source to get this information.(I haven't checked the R Language Definition ...)