Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/library/base/R/version.R
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ function(..., na.rm)
}
else
switch(.Generic,
max = x[which(v == max(v))[1L]],
min = x[which(v == min(v))[1L]],
range = x[c(which(v == min(v))[1L],
which(v == max(v))[1L])])
max = x[which(v == max(v, na.rm = TRUE))[1L]],
min = x[which(v == min(v, na.rm = TRUE))[1L]],
range = x[c(which(v == min(v, na.rm = TRUE))[1L],
which(v == max(v, na.rm = TRUE))[1L])])
}

as.character.numeric_version <-
Expand Down