Re: [R] Simple control structure issue

2017-06-23 Thread Michael Ashton
SONOFAGUN…I’m a bit embarrassed. Thanks Bill! From: William Dunlap [mailto:wdun...@tibco.com] Sent: Friday, June 23, 2017 6:15 PM To: Michael Ashton Cc: r-help@r-project.org Subject: Re: [R] Simple control structure issue R is a case-sensitive language: 'if' (lowercase 'i')

Re: [R] Simple control structure issue

2017-06-23 Thread William Dunlap via R-help
R is a case-sensitive language: 'if' (lowercase 'i') is a keyword and 'If' (uppercase 'I') is not. Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Jun 23, 2017 at 1:00 PM, Michael Ashton < m.ash...@enduringinvestments.com> wrote: > I am having a hard time with 'next'. I come from the "slopp

[R] Simple control structure issue

2017-06-23 Thread Michael Ashton
I am having a hard time with 'next'. I come from the "sloppy" school that learned BASIC with Goto. Conceptually next seems pretty straightforward. I just can't get it to work correctly in my code. Here's a stripped down version: WhichRunNow<-"Daily" Cnums=c(0,1,"2b3") Cpers=c("Daily","Daily","W