Displaying 1 result from an estimated 1 matches for "uni05".
Did you mean:
uni
2007 Apr 16
2
Dealing with data frame column names beginning with a numeric
I wish to set up a simple function using boxplot so that it will be
available to someone using R for Windows. (I myself use Linux.)
The way the data is organised makes it convenient to use the boxplot
function in a manner similar to this example given in the help.
> mat <- cbind(Uni05 = (1:100)/21, Norm = rnorm(100),
+ T5 = rt(100, df = 5), Gam2 = rgamma(100, shape = 2))
> boxplot(data.frame(mat), main = "boxplot(data.frame(mat), main = ...)")
If one of those columns had a numeric beginning to its name, such as:
> colnames(mat)[3] <- &...