Re: [R] arguments imply differing number of rows

2017-09-20 Thread Shivi Bhatia
Thank you Bob, this is what i was looking for. Really appreciate. Regards, Shivi On Wed, Sep 20, 2017 at 8:41 PM, Bob O'Hara wrote: > 4000:6000 gives you 4000, 4001, ..., 6000. I suspect you want > population= c(seq(4000, 6000, length=5), seq(3500, 4300, length=5), >

Re: [R] arguments imply differing number of rows

2017-09-20 Thread ruipbarradas
Hello, Just count: city is 3*5 == 15, population is length(4000:6000) + length(3500:4300) + length(3000:3200) == 2001 + 801 + 201 == 3003 Hope this helps, Rui Barradas Citando Shivi Bhatia : Hi Team, I using the syntax as: data.df<- data.frame(

Re: [R] arguments imply differing number of rows

2017-09-20 Thread Bert Gunter
What do you think 4000:6000 means? Perhaps you need to spend time with an R tutorial or two and stop searching google. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom

Re: [R] arguments imply differing number of rows

2017-09-20 Thread Bob O'Hara
4000:6000 gives you 4000, 4001, ..., 6000. I suspect you want population= c(seq(4000, 6000, length=5), seq(3500, 4300, length=5), seq(3000, 3200, length=5)) Bob On 20 September 2017 at 17:07, Shivi Bhatia wrote: > Hi Team, > > I using the syntax as: > > data.df<-

Re: [R] Arguments imply differing number of rows: 1, 0

2017-03-28 Thread Gerrit Eichner
Hi, John, see inline. Am 27.03.2017 um 20:47 schrieb John Murtagh: Hi All, I am trying to generate a cdf plot by using ggplot and have looked at some examples online. However when I try to replicate it I get the following error: "arguments imply differing number of rows: 1, 0" I made a