The model frame shows the response and predictors in a data frame with
nicely labelled columns:
fm <- lm(wt~qsec+log(hp)+sqrt(disp), data=mtcars)
model.frame(fm) # ok
When the left hand side consists of more than one response, those response
variables still look good, inside a matrix:
fm
The file_path_sans_ext() function in the 'tools' package does not handle
alphanumeric file extensions correctly:
require(tools)
file_path_sans_ext("song.txt") # song, correct
file_path_sans_ext("song.mp3") # song.mp3, wrong
The help page states that "only purely alphanumeric extension
The weighted.mean() function replaces NA values with 0.0 when the user
specifies na.rm=TRUE:
x <- c(101, 102, NA)
mean(x, na.rm=TRUE) # 101.5, correct
weighted.mean(x, na.rm=TRUE)# 67.7, wrong
weighted.mean(x, w=c(1,1,1), na.rm=TRUE)# 67
In Windows XP, the matrix() function crashes the program when 'dimnames'
is an empty list:
matrix(1:4, nrow=2, dimnames=list())
# R has encountered a problem and needs to close ...
This bug is specific to WinXP, as Linux64 handles this situation more
gracefully:
matrix(1:4, nrow=2, di
The boxplot.default() function ignores argument 'boxfill' passed by user:
x <- rnorm(100)
boxplot(x, boxfill="blue")
boxplot(x, pars=list(boxfill="green"))
As the original creator of the 'boxfill' argument, I'd like to propose the
following change to the if(plot) clause in boxplot
Unlike R 2.1.1, version 2.2.0 generates warnings when an 'oma' argument as
passed to pairs():
A <- rnorm(100)
B <- rnorm(100)
pairs(cbind(A,B))# no warning
pairs(cbind(A,B), oma=c(6,8,10,12)) # warnings in R 2.2.0
I think pairs() should draw the plot quietly, without
Hi. There's a minor typo in bxp.Rd:
whiskco:l
should be
whiskcol:
Cheers,
Arni
R 2.1.1pat on WinXP
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
I'd like to iterate my earlier request (#7737) to change the documentation
for bxp().
The argument outpch=" " needs to be replaced with outpch=NA in two places.
I actually wrote this part of the documentation myself at one point, but
have now realized that pch=NA and pch=" " are not the same:
It would be easy to add 'yaxs' support to bxp(), which can aid visual
comparison when the lower limit is zero. The two lines from boxplot.R that
would change are:
plot.window(ylim=c(0.5,n+0.5), xlim=ylim, log=log)
to
plot.window(ylim=c(0.5,n+0.5), xlim=ylim, xaxs=pars$yaxs, log=log)
and
There are a couple of harmless typos in the documentation for the
stats::SSD function, where
"varianve" should be "variance"
"followint" should be "following"
Arni
R 2.1.1pat 2005-07-04 on WinXP
__
R-devel@r-project.org mailing list
https://sta
The write.csv() function is currently implemented as
function (..., col.names=NA, sep=",", qmethod="double")
{
write.table(..., col.names=NA, sep=",", qmethod="double")
}
Surely, it should be
function (..., col.names=NA, sep=",", qmethod="double")
{
write.table(..., col.
11 matches
Mail list logo