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.... AKSHAY M KULKARNI -------------- next part -------------- A non-text attachment was scrubbed... Name: rscreenshot1.png Type: image/png Size: 252096 bytes Desc: rscreenshot1.png URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20171215/83a04284/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: Rscreenshot2.png Type: image/png Size: 260644 bytes Desc: Rscreenshot2.png URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20171215/83a04284/attachment-0001.png>
On 15/12/2017 7:45 AM, akshay kulkarni 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.Those are function calls, you aren't just printing the same vector twice, you're producing two vectors. But in what way do they differ? I looked at 3 entries, and they were identical. Duncan Murdoch> > > 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.... > > > AKSHAY M KULKARNI > > > > > ______________________________________________ > 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. >
Mohammad Tanvir Ahamed
2017-Dec-15 15:11 UTC
[R] something weird has happened....!!!!!!!!!!
Dear Akshay, Where is the problem !!Two data set seems identical? except one of them show 10 column and other showing 11 column on r console .?? Regards.............Tanvir Ahamed Stockholm, Sweden | mashranga at yahoo.com On Friday, December 15, 2017, 3:49:03 PM GMT+1, 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.... AKSHAY M KULKARNI ______________________________________________ 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. [[alternative HTML version deleted]]
Entry 250 is different between the two. However, I (we?) have no idea what that function is so it might be using randomness as part of its calculation. -- Sent from my phone. Please excuse my brevity. On December 15, 2017 7:11:30 AM PST, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:>On 15/12/2017 7:45 AM, akshay kulkarni 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. > >Those are function calls, you aren't just printing the same vector >twice, you're producing two vectors. > >But in what way do they differ? I looked at 3 entries, and they were >identical. > >Duncan Murdoch >> >> >> 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.... >> >> >> AKSHAY M KULKARNI >> >> >> >> >> ______________________________________________ >> 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. >> > >______________________________________________ >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.
> 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
Be sure to keep the mailing list in the loop by using reply-all or equivalent in your email program. You can use the set.seed function with any fixed value before you call functions that use randomness to create a reproducible output. -- Sent from my phone. Please excuse my brevity. On December 15, 2017 9:07:24 AM PST, akshay kulkarni <akshay_e4 at hotmail.com> wrote:>dear Jeff, > > I think you have hit the bulls eye. > >I am using MICE to populate NA values(imputation) in the source data. >Everytime I call the function MICE populates different values instead >of the NA's , right? Is this the randomness you are speaking about? > > >I will test the function again tomorrow. Hope you are right....!!!!!! > > >Thanks a lot......!!!!!!!! > > >yours > >AKSHAY M KULKARNI > >________________________________ >From: Jeff Newmiller <jdnewmil at dcn.davis.ca.us> >Sent: Friday, December 15, 2017 10:09 PM >To: r-help at r-project.org; Duncan Murdoch; akshay kulkarni; >r-help at r-project.org >Subject: Re: [R] something weird has happened....!!!!!!!!!! > >Entry 250 is different between the two. However, I (we?) have no idea >what that function is so it might be using randomness as part of its >calculation. >-- >Sent from my phone. Please excuse my brevity. > >On December 15, 2017 7:11:30 AM PST, Duncan Murdoch ><murdoch.duncan at gmail.com> wrote: >>On 15/12/2017 7:45 AM, akshay kulkarni 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. >> >>Those are function calls, you aren't just printing the same vector >>twice, you're producing two vectors. >> >>But in what way do they differ? I looked at 3 entries, and they were >>identical. >> >>Duncan Murdoch >>> >>> >>> 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.... >>> >>> >>> AKSHAY M KULKARNI >>> >>> >>> >>> >>> ______________________________________________ >>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.ethz.ch/mailman/listinfo/r-help >R-help -- Main R Mailing List: Primary help - Homepage - >SfS<https://stat.ethz.ch/mailman/listinfo/r-help> >stat.ethz.ch >The main R mailing list, for announcements about the development of R >and the availability of new code, questions and answers about problems >and solutions using R ... > > > >>> PLEASE do read the posting guide >>http://www.R-project.org/posting-guide.html >>> and provide commented, minimal, self-contained, reproducible code. >>> >> >>______________________________________________ >>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >>https://stat.ethz.ch/mailman/listinfo/r-help >R-help -- Main R Mailing List: Primary help - Homepage - >SfS<https://stat.ethz.ch/mailman/listinfo/r-help> >stat.ethz.ch >The main R mailing list, for announcements about the development of R >and the availability of new code, questions and answers about problems >and solutions using R ... > > > >>PLEASE do read the posting guide >>http://www.R-project.org/posting-guide.html >>and provide commented, minimal, self-contained, reproducible code.
On 16/12/17 01:45, akshay kulkarni 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..?How on earth could anyone possibly tell on the basis of the (opaque) pseudo-information that you have given us?> Reinstall R?It is possible, but *highly unlikely* that this is what you should do. As I said, it's impossible to suggest what you really should do unless you provide some genuine information. Few members of this list are telepathic. I certainly am not. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276