Re: [R] Histograms with strings,

2011-03-18 Thread Jim Lemon
On 03/18/2011 09:06 AM, Khanvilkar, Shashank wrote: Hello, Thanks in advance for any help, I have read a CSV file in which there is a column for an IP addr as in: tmpInFile$V2 [1] "74.125.224.38" "74.125.224.38" "129.46.71.19" "129.46.71.19" [5] "129.46.71.19" "129.46.71.19" "129.46.71

Re: [R] Histograms with strings,

2011-03-17 Thread Khanvilkar, Shashank
Thanks > which.max(table(x)) 129.46.71.19 10 How do I get only "129.46.71.19" back as a str... -Original Message- From: jim holtman [mailto:jholt...@gmail.com] Sent: Thursday, March 17, 2011 4:39 PM To: Khanvilkar, Shashank Cc: r-help Subject: Re: [R] Histograms

Re: [R] Histograms with strings,

2011-03-17 Thread David Winsemius
On Mar 17, 2011, at 6:06 PM, Khanvilkar, Shashank wrote: Hello, Thanks in advance for any help, I have read a CSV file in which there is a column for an IP addr as in: tmpInFile$V2 [1] "74.125.224.38" "74.125.224.38" "129.46.71.19" "129.46.71.19" [5] "129.46.71.19" "129.46.71.19" "129

Re: [R] Histograms with strings,

2011-03-17 Thread jim holtman
; > -Original Message- > From: jim holtman [mailto:jholt...@gmail.com] > Sent: Thursday, March 17, 2011 4:39 PM > To: Khanvilkar, Shashank > Cc: r-help > Subject: Re: [R] Histograms with strings, > > try this: > >> x >  [1] "74.125.224.38" &quo

Re: [R] Histograms with strings,

2011-03-17 Thread David Wolfskill
On Thu, Mar 17, 2011 at 10:06:21PM +, Khanvilkar, Shashank wrote: > Hello, > Thanks in advance for any help, > > I have read a CSV file in which there is a column for an IP addr as in: > > tmpInFile$V2 > [1] "74.125.224.38" "74.125.224.38" "129.46.71.19" "129.46.71.19" > [5] "129.46.71.1

Re: [R] Histograms with strings,

2011-03-17 Thread jim holtman
try this: > x [1] "74.125.224.38" "74.125.224.38" "129.46.71.19" "129.46.71.19" "129.46.71.19" "129.46.71.19" [7] "129.46.71.19" "129.46.71.19" "129.46.71.19" "129.46.71.19" "129.46.71.19" "129.46.71.19" > table(x) x 129.46.71.19 74.125.224.38 10 2 > which.max(table

[R] Histograms with strings,

2011-03-17 Thread Khanvilkar, Shashank
Hello, Thanks in advance for any help, I have read a CSV file in which there is a column for an IP addr as in: tmpInFile$V2 [1] "74.125.224.38" "74.125.224.38" "129.46.71.19" "129.46.71.19" [5] "129.46.71.19" "129.46.71.19" "129.46.71.19" "129.46.71.19" [9] "129.46.71.19" "129.46.71.19