[R] Can anyone help why the errors are coming and rectify it?

Patrick Burns pburns at pburns.seanet.com
Mon Sep 17 18:41:48 CEST 2012


This is Circle 8.1.43 of 'The R Inferno'.

http://www.burns-stat.com/pages/Tutor/R_inferno.pdf

Pat


On 17/09/2012 10:47, Sri krishna Devarayalu Balanagu wrote:
> Hi Everyone,
>
> Can anyone help why the errors are coming and rectify it?
>
>
> invalid.ids <- c(1,3,5)
> if (length(invalid.ids)==0)   {
>                                                                                  cat("No Errors found")
>                                                         }
> else                                              {
>                                                                                  cat(paste(invalid.ids), sep="\n")
>                                                        }
>
> Error: unexpected 'else' in "else"
> Error: unexpected '}' in "        }"
>
> Thank you in advance
>
> Warm Regards
> Rayalu
> Notice: The information contained in this electronic mail message is intended only for the use of the designated recipient. This message is privileged and confidential. and the property of GVK BIO or its affiliates and subsidiaries. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone +91-40-66929999<tel:+91-40-66929999> and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Patrick Burns
pburns at pburns.seanet.com
twitter: @portfolioprobe
http://www.portfolioprobe.com/blog
http://www.burns-stat.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')




More information about the R-help mailing list