Re: [R] multiple values in one column

2012-04-06 Thread John D. Muccigrosso
On Apr 6, 2012, at 9:09 AM, John D. Muccigrosso wrote: > I have some data files in which some fields have multiple values. For example > > first last sex major > John Smith M ANTH > Jane DoeF HIST,BIOL > > What's the best R-like way to handle thes

[R] multiple values in one column

2012-04-06 Thread John D. Muccigrosso
I have some data files in which some fields have multiple values. For example first last sex major John Smith M ANTH Jane DoeF HIST,BIOL What's the best R-like way to handle these data (Jane's major in my example), so that I can do things like summarize the other fields by

[R] circles()

2012-03-26 Thread John D. Muccigrosso
I cannot for the life of me figure this out: What's the parameter to fill in with color circles made with circles()? col changes the line color, but all I see in the help is a reference to "additional graphic parameters", and no examples via google. Thanks! John Muccigrosso __

Re: [R] barplot and NA

2012-03-12 Thread John D. Muccigrosso
On 12 Mar 2012, at 12:47 , S Ellison wrote: > Yes, to the extent that the default barplot plots the height of the bar so > far as the sum of teh values so far, starting at teh first. For your first > vector, no problem; for your second, the highest value is undefiuned, for the > third, the sum

[R] barplot and NA

2012-03-12 Thread John D. Muccigrosso
Am I wrong that barplot is supposed to just skip NAs, and continue with the rest of the data in a matrix column? That's how I read various posts on the subject. But that's not what happens for me with R64.app (on a Mac, obviously). For example: d0 <- as.matrix(c(2,3,4)) d1 <- as.matrix(c(2,3,N