Re: [R] Help understanding loop behaviour

2021-04-30 Thread Rui Barradas
gt; On Behalf Of Jim Lemon >> Sent: Friday, April 30, 2021 11:45 AM >> To: e-mail ma015k3113 mailto:ma015k3...@blueyonder.co.uk>>; r-help mailing list >> mailto:r-help@r-project.org>> >> Subject: Re: [R] Help understanding loop behaviour &

Re: [R] Help understanding loop behaviour

2021-04-30 Thread Bert Gunter
1009550 4 1 1 > > 191009550 4 1 2 > > 20 1009550 4 1 3 > > 211009550 4 4 4 > > > > Cheers. > > Petr > > > >> -Original Message- > >> From: R-help

Re: [R] Help understanding loop behaviour

2021-04-30 Thread Rui Barradas
021 11:45 AM To: e-mail ma015k3113 ; r-help mailing list Subject: Re: [R] Help understanding loop behaviour Hi email, If you want what you described, try this: xx<-read.table(text="COMPANY_NUMBER NUMBER_OF_YEARS 0070837 3 0070837 3 0070837 3 1000403 4 1000403 4 1000403 4 1000403 4 1

Re: [R] Help understanding loop behaviour

2021-04-30 Thread PIKAL Petr
1 191009550 4 1 2 201009550 4 1 3 211009550 4 4 4 Cheers. Petr > -Original Message- > From: R-help On Behalf Of Jim Lemon > Sent: Friday, April 30, 2021 11:45 AM > To: e-mail ma015k3113 ; r-help mailing list > &g

Re: [R] Help understanding loop behaviour

2021-04-30 Thread Jim Lemon
Hi email, If you want what you described, try this: xx<-read.table(text="COMPANY_NUMBER NUMBER_OF_YEARS 0070837 3 0070837 3 0070837 3 1000403 4 1000403 4 1000403 4 1000403 4 10029943 3 10029943 3 10029943 3 10037980 4 10037980 4 10037980 4 10037980 4 10057418 3 10057418 3 10057418

Re: [R] Help understanding loop behaviour

2021-04-29 Thread PIKAL Petr
; From: R-help On Behalf Of e-mail > ma015k3113 via R-help > Sent: Thursday, April 29, 2021 5:41 PM > To: r-help@r-project.org > Subject: [R] Help understanding loop behaviour > > I am trying to understand how loops in operate. I have a simple dataframe xx > which is

[R] Help understanding loop behaviour

2021-04-29 Thread e-mail ma015k3113 via R-help
I am trying to understand how loops in operate. I have a simple dataframe xx which is as follows COMPANY_NUMBER NUMBER_OF_YEARS #0070837 3 #0070837 3 #0070837 3 1000403 4 1000403