Re: [R] " Error in firstnonmiss:lastnonmiss : argument of length 0 "

2019-10-31 Thread phil
I finally got it to work, drawing on your advice William. I extracted the time vector (REF_DATE) from the data frame (vseries) so the latter was numeric only, and I converted the resulting data frame to a matrix. I also converted the dts data frame to a matrix. Now it works properly. Your help

[R] How to calculate p value and correlation coefficient for Spearman’s correlation of differential expression data with 40000 permutations?

2019-10-31 Thread Ana Marija
Hello, I have 3 groups,let's call them g1, g2, g3. Each of them is a result of analysis in between groups of conditions, and g1 looks like this geneSymbol logFC t P.Value adj.P.Val Beta EXykpF1BRREdXnv9Xk MKI67 -0.3115880 -5.521186 5.77213

Re: [R] how to calculate multiple meta p values

2019-10-31 Thread Ana Marija
Can you please get back to me about this, I need this meta p values for manuscript I have to submit next week On Wed, Oct 30, 2019 at 5:35 PM Ana Marija wrote: > > I also tried to do it this way: > > d$META <- sapply(seq_len(nrow(d)), function(rn) { > unlist(sumz(as.matrix(d[,.(LCL,Retina)])[rn

[R] Problems with external library conflict in R package

2019-10-31 Thread Pascal A. Niklaus
I have an R library (using Rcpp) that used to compile and install fine. It uses some boost libraries. My Makevars file looks like this: PKG_LIBS=`$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` -lboost_iostreams -lm CXX_STD = CXX14 The problem I face now is that for some other R-independent softwa

Re: [R] save() unable to find object

2019-10-31 Thread Christofer Bogaso
Thanks Duncan. It worked. On Thu, Oct 31, 2019 at 3:02 PM Duncan Murdoch wrote: > > On 31/10/2019 5:17 a.m., Christofer Bogaso wrote: > > As I said the name 'AAA31' is itself a variable. So I cant hard-code > > it within the save() function > > Use the list= argument to save(). > > Duncan Murdoch

Re: [R] save() unable to find object

2019-10-31 Thread peter dalgaard
Try the list= argument save(list= c("Date", paste(.)), file=) If you use ..., you'll get bitten by ...: the names of the objects to be saved (as symbols or character strings). and the paste() construct is neither. (Internally, it gets converted by as.character(substitute

Re: [R] Tricky filtering

2019-10-31 Thread Cacique Samurai
Hello Pert, thanks for your reply! You are right, my problem is just between ANT01 and ANT02. All other will keep in the filtered data. I have six more stations. Looks like your solution will work pretty well for me! Once that I have to I think that I can insert this inside a function and use lap

Re: [R] save() unable to find object

2019-10-31 Thread Duncan Murdoch
On 31/10/2019 5:17 a.m., Christofer Bogaso wrote: As I said the name 'AAA31' is itself a variable. So I cant hard-code it within the save() function Use the list= argument to save(). Duncan Murdoch On Thu, Oct 31, 2019 at 2:45 PM Jim Lemon wrote: Hi Christofer, This is a guess, but have

Re: [R] save() unable to find object

2019-10-31 Thread Ivan Krylov
On Thu, 31 Oct 2019 14:39:48 +0530 Christofer Bogaso wrote: > Error in save("Date", paste("AAA", format(Date, "%d"), sep = ""), file > = "Save.RData") : > object ‘paste("AAA", format(Date, "%d"), sep = "")’ not found save() uses non-standard evaluation [*], which means that, instead of just ge

Re: [R] Tricky filtering

2019-10-31 Thread Cacique Samurai
Hi Bert, thanks for your replay, and sorry for not be so clear. Let´s try: What if the 2 records with largest Mean_power are not the same as the two with largest N_records. Do you want to keep all four records? In the sample data that I used to understand what is going on, this never happened. Bu

Re: [R] save() unable to find object

2019-10-31 Thread Christofer Bogaso
As I said the name 'AAA31' is itself a variable. So I cant hard-code it within the save() function On Thu, Oct 31, 2019 at 2:45 PM Jim Lemon wrote: > > Hi Christofer, > This is a guess, but have you tried: > > save(AAA31,file="Save.RData") > > Jim > > On Thu, Oct 31, 2019 at 8:10 PM Christofer Bo

Re: [R] save() unable to find object

2019-10-31 Thread Jim Lemon
Hi Christofer, This is a guess, but have you tried: save(AAA31,file="Save.RData") Jim On Thu, Oct 31, 2019 at 8:10 PM Christofer Bogaso wrote: > > Hi, > > I wanted to save a few R objects in RData file for some future use. > The names of such R objects are actually dynamic so I used below code

[R] save() unable to find object

2019-10-31 Thread Christofer Bogaso
Hi, I wanted to save a few R objects in RData file for some future use. The names of such R objects are actually dynamic so I used below code to save them - Date = Sys.Date() assign(paste('AAA', format(Date, "%d"), sep = ""), 5) save('Date', paste('AAA', format(Date, "%d"), sep = ""), file = 'Sav

Re: [R] Tricky filtering

2019-10-31 Thread PIKAL Petr
Hi. Bert's questions should be clarified. But from your question I understand that only ANT01 and ANT02 are the Stations which you want to filter and all others you want to keep regardless of condition. If this is true, I would add the new column which would have one value for ANT stations and dif