Prof. John C Nash wrote:
> 
> I spent more time than I should have debugging a script because I wanted
>    x<-seq(0,100)*0.1
> 
> but typed
>    x<-seq(O:100)*0.1
> 
> seq(0:100) yields 1 to 101,
> 

Which leads us to another rule: never use a variable called "O". I remember
this was a no-no even in my first Algol-course in 1967.

In a virginal Rgui:

> x<-seq(O:100)*0.1 
Error in seq(O:100) : object 'O' not found
 
Dieter

-- 
View this message in context: 
http://r.789695.n4.nabble.com/Minor-warning-about-seq-tp3065964p3066791.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to