Really? That seems unlikely, given that
* = is used for moving values, not comparing them,
* - is not a legal symbol for a variable name, it is subtraction, and
year-month can hardly end up as a character string like "FEB2015"
* (possible problem) & and | compare vectors one at a time, so are n
Thank you Rolf and Bert!
I found the problem and this
if(country="USA" & year-month = "FEB2015" | "FEB2012" ){
has be changed to this
if(country="USA" & year-month == "FEB2015" | year-month == "FEB2012" ){
On Mon, Feb 27, 2017 at 8:45 PM, Bert Gunter wrote:
> I note that you have "Y
I note that you have "Year-month" (capital 'Y') and "year-month" in
your code; case matters in R.
Otherwise, Rolf's advice applies.
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
On 28/02/17 14:47, Val wrote:
Currently I have about six or more scripts that do the same job. I
thought it might be possible and more efficient to use one script by using
IF ELSE statements. Here is an example but this will be expandable for
several countries ans year-months
Year-month = F
4 matches
Mail list logo