[R] partial match gotcha
Robin Hankin
r.hankin at noc.soton.ac.uk
Thu Oct 20 11:39:15 CEST 2005
Hi
The following gotcha took me a long time to catch:
f <- function(x, main0="red", ...){
par(col.axis=main0)
plot(x,...)
}
f(1:10,main="title here")
f(1:10,main="title here",main0="blue")
I can't quite succinctly summarize why the second case works but the
first one
doesn't.
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
tel 023-8059-7743
More information about the R-help
mailing list