[R] Working with lists with numerical names

2006-02-23 Thread Christopher Swingley
Greetings! I'm have a hard time working with some data I imported from a baseball database. Several of the database columns have numbers in them (2B, 3B), and when I try to use these vectors from the data frame, I get syntax errors, probably because it's interpreting the name as a number:

Re: [R] Working with lists with numerical names

2006-02-23 Thread Christopher Swingley
Sundar, * Sundar Dorai-Raj [EMAIL PROTECTED] [2006-Feb-23 14:23 AKST]: Hi, Chris, x - data.frame(1:5, 6:10) names(x) - c(R, 2B) x R 2B 1 1 6 2 2 7 3 3 8 4 4 9 5 5 10 x$2B Thanks. I swear I tried just about every other combination of possible escape character. But I

Re: [R] pdf device --- axes labels text disappeared?

2004-10-15 Thread Christopher Swingley
/iaw, * [EMAIL PROTECTED] [2004-Oct-15 06:13 AKDT]: Dear R Wizards: Running R 1.9.1. on amd64. Promise- c(0,20,40); Expect- c(0, 20, 0.2*20+.8*40 ); # this omits printing numbers on the axes labels. pdf(file = bug.pdf ); plot(Promise, Expect, type=b, ylim=c(0,60)); dev.off(); Version