[R] something weird has happened....!!!!!!!!!!

David Winsemius dwinsemius at comcast.net
Fri Dec 15 18:23:10 CET 2017


> On Dec 15, 2017, at 4:45 AM, akshay kulkarni <akshay_e4 at hotmail.com> wrote:
> 
> dear Members,
> 
> 
> 
> Today something weird has happened on my R console. I have attached two screenshots of the same vector in my R console but they differ.
> 
> 
> Also one of my function returns negative values, even after double checking the code, which should return only positive values..
> 
> 
> Whats wrong..? Reinstall R?
> 
> 
> Thanks for help....

We have no way of knowing what the function `yguii` might be doing. Apparently it has some sort of "random" internal process. If you want to see whether this is really a deterministic process (a pseudo-random process), then you should use `set.seed` to establish a reproducible state in the RNG prior to your function call.
> 
> 
> AKSHAY M KULKARNI
> 
> 
> <rscreenshot1.png><Rscreenshot2.png>______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   -Gehm's Corollary to Clarke's Third Law



More information about the R-help mailing list