Re: [R] Issues with R3.5.2

2018-12-22 Thread Jeff Newmiller
You could delete your 3.5 personal package library (using the File Explorer with Run as Admin if necessary) and re-install your packages without running as Admin. If that does not work try uninstalling R and re-installing 3.5.1. On December 22, 2018 8:16:11 PM PST, Janh Anni wrote: >This issue

Re: [R] Random seed

2018-12-22 Thread Jeff Newmiller
It doesn't matter. The whole point is to make the pseudo-random sequence repeatable... unless you have a specific reason to avoid repeatability. On December 22, 2018 5:33:39 PM PST, Steven Yen wrote: >I have known from the old days to set a random seed of a LARGE ODD >NUMBER. Now I read instruc

Re: [R] Issues with R3.5.2

2018-12-22 Thread Janh Anni
This issue only came up after I installed R3.5.2. Never had any problems with previous installations. So it is likely a bug in the current version. Any suggestions what to do now? On Sat, Dec 22, 2018 at 11:06 PM Jeff Newmiller wrote: > That normally only occurs if you have at some time used e

Re: [R] Issues with R3.5.2

2018-12-22 Thread Jeff Newmiller
That normally only occurs if you have at some time used elevated permissions, beyond which point you fall into a downward spiral of more permissions trouble. You are apparently already in trouble, whether it was of your own making or due to a bug in the installer. Also, never update the system

Re: [R] Issues with R3.5.2

2018-12-22 Thread Janh Anni
Hi Jeff, No, during the installation, there was not an option to Run as Administration. But *after *installation, I found that if I selected Run as Administrator, then I could install packages using install.packages as usual without problems. Thanks Janh On Sat, Dec 22, 2018 at 8:26 PM Jeff New

[R] Random seed

2018-12-22 Thread Steven Yen
I have known from the old days to set a random seed of a LARGE ODD NUMBER. Now I read instructions of set.seed and it requires ANY INTEGER. Any idea? Or, does it matter. Thanks. -- st...@ntu.edu.tw (S.T. Yen) [[alternative HTML version deleted]] __

Re: [R] Issues with R3.5.2

2018-12-22 Thread Jeff Newmiller
Did you by any chance use Run As Administrator to install R? If so then you need to uninstall it and delete all files created by it (e.g. Documents/R/win-lib/3.5/) and re-install using UAC as prompted. On December 22, 2018 5:10:27 PM PST, Janh Anni wrote: >Dear R Experts, > >I use Windows 10 an

[R] Issues with R3.5.2

2018-12-22 Thread Janh Anni
Dear R Experts, I use Windows 10 and just installed the new R version, R3.5.2 but when I tried to load a data file using read.table, I got an error message like this: *Error in file(file, "rt") : cannot open the connection* *In addition: Warning message:* *In file(file, "rt") :* * cannot open fi

Re: [R] Glitch in Kruskal-Wallis test?

2018-12-22 Thread Bert Gunter
... Moreover, you should not analyze proportions in this way, which treats .5 = 2/4 or .5 = 2000/4000 identically. As David said, you need to work with a statistician. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Ber

Re: [R] Glitch in Kruskal-Wallis test?

2018-12-22 Thread David L Carlson
You may need to spend some more time with the statistician who needs to see your data. It is not clear if you have a two sample test or a paired sample test. Kruskall-Wallis expects data for each observation, not grouped data. Without the observations, the test cannot compute the sample size and

Re: [R] Printing with cat in a procedure

2018-12-22 Thread Steven Yen
Thank you all - print works wonders. On 12/22/2018 10:36 PM, Eric Berger wrote: > Hi Steven, > Here's one way, using print > > try5<-function(A,B){ > C<-A+B > #cat("\nA =",A,"\nC = ",C) > cat("\nA = ") > print(A) > cat("\nC = ") > print(C) > structure(list(A=A,B=B,C=C)) > } > > HTH,

Re: [R] Printing with cat in a procedure

2018-12-22 Thread Jeff Newmiller
Try using print instead of cat [1], and please read about what the arguments are in the help file [2][3] for any function you are using before posting a question. [1] https://stackoverflow.com/questions/31843662/what-is-the-difference-between-cat-and-print [2] ?cat [3] ?print On December 22, 2

Re: [R] Printing with cat in a procedure

2018-12-22 Thread Rui Barradas
Hello, Use print(A) and print(C). cat is meant for simpler objects. Hope this helps, Rui Barradas Às 14:31 de 22/12/2018, Steven Yen escreveu: How do I print a matrix running a procedure? In the code below, I print with the cat command and get a vector (from A and C). A<-matrix(rpois(16,lamb

Re: [R] Printing with cat in a procedure

2018-12-22 Thread Eric Berger
Hi Steven, Here's one way, using print try5<-function(A,B){ C<-A+B #cat("\nA =",A,"\nC = ",C) cat("\nA = ") print(A) cat("\nC = ") print(C) structure(list(A=A,B=B,C=C)) } HTH, Eric On Sat, Dec 22, 2018 at 4:32 PM Steven Yen wrote: > How do I print a matrix running a procedure? I

[R] Printing with cat in a procedure

2018-12-22 Thread Steven Yen
How do I print a matrix running a procedure? In the code below, I print with the cat command and get a vector (from A and C). A<-matrix(rpois(16,lambda=5),nrow=4,byrow=T) B<-diag(4) try5<-function(A,B){ C<-A+B cat("\nA =",A,"\nC = ",C) structure(list(A=A,B=B,C=C)) } v<-try5(A,B) v$C -- st

Re: [R] Glitch in Kruskal-Wallis test?

2018-12-22 Thread Jenny Liu
Hi Michael, Thank you for your reply! I'm testing the difference in proportions. Temp is temperature, and Prop is the proportion of insect pupae that survived at that temperature. I was told by a statistician that the K-W was appropriate for testing proportions, but perhaps you know of an alternat

Re: [R] Glitch in Kruskal-Wallis test?

2018-12-22 Thread Michael Dewey
Dear Jenny What exactly do you think you are testing here? You are telling K-W you have seven groups each with a single value which is not the usual situation for K-W. Michael On 22/12/2018 04:58, Jenny Liu wrote: Hi everyone, I have been running a K-W test with the attached data, PupMort1.

Re: [R] Problem with Kruskal–Wallis test

2018-12-22 Thread Michael Dewey
Dear Giuseppe If I understand you correctly you have a very large sample size so it is not surprising that you get very small p-values. Eevn a scientifically uninteresting difference can become statistically significant with large samples. You probably need to define a metric for meaningful di