Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread PIKAL Petr
Hi Or some rounding when comparing results with threshold exactly. > round(abs(0.95 - 1),2) > 0.05 [1] FALSE > round(abs(0.95 - 1),2) < 0.05 [1] FALSE > Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rainer > Johannes > Sent: Tuesday,

Re: [R] Fwd: as.Date gives NAs when transforming from factor

2016-04-05 Thread PIKAL Petr
Hi I did not have problems transforming factors to dates, only when trying to transform nonexistent date. > as.Date(factor(c("31.3.2015", "29.2.2015")), format="%d.%m.%Y") [1] "2015-03-31" NA > Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On

Re: [R] R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]

2016-04-05 Thread Jim Lemon
You have quite a few mistakes in your example. The code below works for me - you can wrap it in a function if you like. I think you will need a lot more practice before you can write something like this in R as you are missing close braces and haven't really worked out the difference between the

Re: [R] Good pointers for understanding the R language implementation

2016-04-05 Thread David Winsemius
> On Apr 5, 2016, at 8:26 AM, Francisco Banha > wrote: > > Dear All, > > I'm currently working on a project with the purpose of remotely executing R > code, which requires me to have to work with the code of R itself. I've > searched the Internet for good

Re: [R] Is that an efficient way to find the overlapped , upstream and downstream ranges for a bunch of ranges

2016-04-05 Thread David Winsemius
> On Apr 5, 2016, at 10:27 AM, 何尧 wrote: > > I do have a bunch of genes ( nearly ~5) from the whole genome, which > read in genomic ranges > > A range(gene) can be seem as an observation has three columns chromosome, > start and end, like that > > seqnames start

Re: [R] File 1 is not in sorted order Error

2016-04-05 Thread Duncan Murdoch
On 02/04/2016 10:40 PM, Michael Morrison wrote: Hi, I'm trying to build R on windows and i'm getting the following error when i run the "make all recommended" command: C:/Rtools/mingw_64/bin/windres -F pe-x86-64 -i dllversion.rc -o dllversion.o comm: file 1 is not in sorted order make[4]: ***

Re: [R] Heatmap Colnames

2016-04-05 Thread Jim Lemon
Hi Nils, I don't have the GMD library, but this looks like some axis labels are being ignored to avoid overlapping. If heatmap.3 uses base graphics you can probably get your labels by passing empty strings to heatmap.3 and then displaying the axis with staxlab (plotrix). Jim On Wed, Apr 6, 2016

[R] Heatmap Colnames

2016-04-05 Thread Nils Korte
Hello, please see below my code for a heatmap. Unfortunately my column names do not completely appear. Can you please send me the appropriate code to visualise them? Many Thanks! Nils library(GMD) dat<-data.frame(EntryA=as.numeric(c(4.24,3,1.66,1.28,1.2,-1.32,-1.88)),

Re: [R] Fwd: as.Date gives NAs when transforming from factor

2016-04-05 Thread Duncan Murdoch
On 05/04/2016 7:53 PM, Omar André Gonzáles Díaz wrote: Hi, I would appreciate your help. I’m having problems when transforming a column from “factor” to “date”. It does not convert just: 31/03/2016 correctly, it out puts: NA. 04/04/2016 turns out as: 2016-04-04 02/04/2016 turns out

Re: [R] Fwd: as.Date gives NAs when transforming from factor

2016-04-05 Thread Jeff Newmiller
Don't give a factor to as.Date. Convert it to character first, or avoid letting it become a factor in the first place by using the stringsAsFactors =FALSE option to the read.table function or its related functions. -- Sent from my phone. Please excuse my brevity. On April 5, 2016 4:53:56 PM

[R] Fwd: as.Date gives NAs when transforming from factor

2016-04-05 Thread Omar André Gonzáles Díaz
Hi, I would appreciate your help. I’m having problems when transforming a column from “factor” to “date”. It does not convert just: 31/03/2016 correctly, it out puts: NA. 04/04/2016 turns out as: 2016-04-04 02/04/2016 turns out as: 2016-02-04 31/03/2016 turns out as: NA 03/04/2016

[R] Is that an efficient way to find the overlapped , upstream and downstream rangess for a bunch of rangess

2016-04-05 Thread Yao He
I do have a bunch of genes ( nearly ~5) from the whole genome, which read in genomic ranges A range(gene) can be seem as an observation has three columns chromosome, start and end, like that seqnames start end width strand gene1 chr1 1 5 5 + gene2 chr110

[R] Is that an efficient way to find the overlapped , upstream and downstream ranges for a bunch of ranges

2016-04-05 Thread 何尧
I do have a bunch of genes ( nearly ~5) from the whole genome, which read in genomic ranges A range(gene) can be seem as an observation has three columns chromosome, start and end, like that seqnames start end width strand gene1 chr1 1 5 5 + gene2 chr1

[R] Good pointers for understanding the R language implementation

2016-04-05 Thread Francisco Banha
Dear All, I'm currently working on a project with the purpose of remotely executing R code, which requires me to have to work with the code of R itself. I've searched the Internet for good information that will help me understand how R is implemented but what I've got so far isn't detailed

Re: [R] Specifying path to a windows server

2016-04-05 Thread Jeff Newmiller
Each \ has to be escaped. Two becomes four, not three. -- Sent from my phone. Please excuse my brevity. On April 5, 2016 10:23:11 AM PDT, John Sorkin wrote: >Windows 7 (local computer) >Windows server (server I am trying to reach) > >I need to read a file whose

Re: [R] Specifying path to a windows server

2016-04-05 Thread Bert Gunter
almost ... Theserver\\mydirectory\\data.csv ## should do it -- Bert On Tue, Apr 5, 2016 at 10:23 AM, John Sorkin wrote: > Windows 7 (local computer) > Windows server (server I am trying to reach) > > I need to read a file whose windows path is of the form

[R] Specifying path to a windows server

2016-04-05 Thread John Sorkin
Windows 7 (local computer) Windows server (server I am trying to reach) I need to read a file whose windows path is of the form \\Theserver\mydirectory\data.csv You will note that as per windows standards the server name is preceded by two backslashes. I am not sure how to specify this in

Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread David Winsemius
> On Apr 5, 2016, at 5:46 AM, Rainer Johannes wrote: > > Thanks Adrian and Thierry (from the previous answer). > > I was aware of the all.equal function, but there is nothing similar for <= > (e.g. all.smallerEqual)? Perhaps you will gain understanding by looking

Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Rainer Johannes
Thanks! On 05 Apr 2016, at 16:07, Thierry Onkelinx > wrote: You could use something like this x <- abs(0.95 - 1) treshold <- 0.05 x < treshold | abs(x - treshold) < 1e-6 ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek /

Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Thierry Onkelinx
You could use something like this x <- abs(0.95 - 1) treshold <- 0.05 x < treshold | abs(x - treshold) < 1e-6 ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance

[R-es] familia gamma / cero inflated

2016-04-05 Thread Eliana Eberle
Estimado, Tengo dos consultas, -Tengo datos que contienen ceros en datos con distribución Poisson, y quisiera utilizar una familia gamma para la realización de GLM. Como puedo modificar los ceros para poder aplicar la familia? - Tengo 98 datos y 20 son ceros, debería considerar zero

Re: [R] RWeka Error

2016-04-05 Thread Jeff Newmiller
Read the Posting Guide mentioned at the bottom of this email. Highlights you should be sure to address: * HTML formatted email gets messed up on the R mailing lists, so post in plain text. Yes, you can and need to do this. * Make sure the problem occurs in R by trying it without RStudio.

Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Rainer Johannes
Thanks Adrian and Thierry (from the previous answer). I was aware of the all.equal function, but there is nothing similar for <= (e.g. all.smallerEqual)? cheers, jo On 05 Apr 2016, at 14:31, Adrian Dușa > wrote: Yes, that does have to do

Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Adrian Dușa
Yes, that does have to do with floating point representation. I use this function for these types of comparisons (works with values as well as with vectors): check.equal <- function(x, y) { check.vector <- as.logical(unlist(lapply(x, all.equal, y))) check.vector[is.na(check.vector)] <-

Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Thierry Onkelinx
FAQ 7.31 ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium To call in the statistician after the experiment is done may be no more

[R] RWeka Error

2016-04-05 Thread ‪Rini John‬ ‪ via R-help
When I use any function of RWeka Package in Rstudio I get an error, "Error in .jnew (name): java.lang.ClassFormatError." can anyone guide me in this? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

[R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Rainer Johannes
Dear All, I have the following problem: I have a function in which I check if the difference between values is smaller or equal to a certain threshold. I however realized that I might get there some unexpected results: > abs(1 - 0.95) >= 0.05 [1] TRUE ## So that’s fine, but: > abs(1 - 0.95)

Re: [R] R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]

2016-04-05 Thread Jim Lemon
Okay, here is a more complete example: sample_sizes<- matrix(c(10,10,10,25,25,25,25,50,25,100,50,25,50,100,100,25,100,100), nrow=2) # see what it looks like sample_sizes ssds<-c(4,4.4,5,6,8) nssds<-length(ssds) results<-list() # first loop steps through the sample for(ss in

Re: [R] use one way ANOVA to select genes

2016-04-05 Thread PIKAL Petr
Hi Others can have better insight in your question so i tis preferable to post your mails to the Rhelp list too. I hope your datafile is all numeric. If not after t(datafile) can be character. AFAIK your pvalue is not propagated to aov function. Based on artificial data your construction

Re: [R] R cases on predictive maintenance

2016-04-05 Thread Giorgio Garziano
Generically: http://rseek.org/?q=predictive+maintenance and among those: https://rpubs.com/Simionsv/97830 http://blog.revolutionanalytics.com/2016/03/predictive-maintenance.html -- Best, GG This Communication is Ericsson Confidential. We only send and receive email on the basis of the