[R] Installing package into...

2019-03-12 Thread Steven Yen
I install package using either the command line or Tools -> Install packages... (in RStudio) and get a non-fatal message saying... Installing package into ‘C:/Users/xuhaer/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) I know it is not a fatal message. But, is there a way to do a cleaner

Re: [R] About wilcox test

2019-03-12 Thread David Winsemius
On 3/12/19 9:23 AM, Thomas Subia via R-help wrote: Javid wrote: "I have two set of data in excel: A column( 16.38, -31, -16.77, 127, -57, 23.44 and so on) B column ( -12, -59.23, -44, 34.23, 55.5, -12.12 and so on) If those are in an excel spreadsheet than you need to indicate exactly how

Re: [R] Installing package into...

2019-03-12 Thread Michael Dewey
Dear Steven If you use install,packages() from within R there is a lib argument. I do not use RStudio so not sure how it works there. Michael On 12/03/2019 15:05, Steven Yen wrote: I install package using either the command line or Tools -> Install packages... (in RStudio) and get a

Re: [R] Installing package into...

2019-03-12 Thread Rui Barradas
Hello, Yes, the lib argument works in RStudio. Hope this helps, Rui Barradas Às 16:24 de 12/03/2019, Michael Dewey escreveu: Dear Steven If you use install,packages() from within R there is a lib argument. I do not use RStudio so not sure how it works there. Michael On 12/03/2019 15:05,

Re: [R] Global counter in library

2019-03-12 Thread Duncan Murdoch
On 11/03/2019 2:57 p.m., Pascal A. Niklaus wrote: I am trying to implement a global counter in a library. This counter resides in an environment local to that package, and is incremented by calling a function within this package. Problems arise when I use parallelization. I protected the

[R] Global counter in library

2019-03-12 Thread Pascal A. Niklaus
I am trying to implement a global counter in a library. This counter resides in an environment local to that package, and is incremented by calling a function within this package. Problems arise when I use parallelization. I protected the increment operation with a lock so that this operation

[R] About wilcox test

2019-03-12 Thread Thomas Subia via R-help
Javid wrote: "I have two set of data in excel: A column( 16.38, -31, -16.77, 127, -57, 23.44 and so on) B column ( -12, -59.23, -44, 34.23, 55.5, -12.12 and so on) I run the wilcox test as : wilcox.test(A , B, data = mydata, paired = FALSE) I got always the p value very high, like 0.60 Even

Re: [R] Installing package into...

2019-03-12 Thread Duncan Murdoch
On 12/03/2019 11:05 a.m., Steven Yen wrote: I install package using either the command line or Tools -> Install packages... (in RStudio) and get a non-fatal message saying... Installing package into ‘C:/Users/xuhaer/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) I know it is not a fatal

Re: [R] Global counter in library

2019-03-12 Thread Pascal A. Niklaus
Thanks for the hint. I think I will use a big.matrix [with 1 element only ;-) ] and a mutex to ensure access is thread-safe. Pascal On 12.03.19 17:35, Duncan Murdoch wrote: On 11/03/2019 2:57 p.m., Pascal A. Niklaus wrote: I am trying to implement a global counter in a library. This counter

Re: [R] Issue with t.test

2019-03-12 Thread Greg Snow
Can you show us an example with the data that you are using and the output from t.test. A t-value of 1.96 is not an automatic rejection. It depends on alpha and the degrees of freedom. Even if we set alpha at 0.05, 1.96 should not give a p-value less than 0.05 with finite degrees of freedom.

Re: [R] [FORGED] Re: Issue with t.test

2019-03-12 Thread Rolf Turner
On 13/03/19 9:06 AM, Greg Snow wrote: The only time I have seen t.test give a p-value of 1 is when the data mean exactly equals the null hypothesis mean and the alternative is the default of two.sided. Doesn't have to be *exact* equality. Just close! E.g.: set.seed(42) x <- runif(10)

[R-es] Reordenar una matriz con caracteres en cada celda

2019-03-12 Thread Joan Giménez Verdugo
Hola, tengo una matriz de especies donde cada celda tiene datos con caracteres (son parentesis). Cómo la puedo reordenar considerando tanto filas como columnas? Ejemplo: ,Specie 1, Specie2, Specie3 Specie1, NA, 3(1-4), 8(6-9) Specie2, 5(2-6),NA, 5(4-6) Specie3, 2(1-3), 10(5-15), NA