Re: [R] GEOquery

2016-12-31 Thread David Winsemius
> On Dec 31, 2016, at 11:22 AM, Elham - via R-help wrote: > > hello all,I am following this link > http://genomicsclass.github.io/book/pages/GEOquery.html for importing > data.but I have a problem in a step of (Access GSE Data Tables from GEO).in > the example of tutorial there are 266 sample

[R] Access GSE Data Tables from GEO by GEOquery

2016-12-31 Thread Elham - via R-help
hello all,I am following this link  http://genomicsclass.github.io/book/pages/GEOquery.html for importing data.but I have a problem in a step of (Access GSE Data Tables from GEO).in the example of tutorial there are 266 samples,but by this function                                               

Re: [R] 3D Elliptic Fourier

2016-12-31 Thread Bert Gunter
... and on rseek.org, my personal R search favorite, the same search term brought up a ton of stuff, most of which seemed related to the "Momocs" package. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkele

Re: [R] 3D Elliptic Fourier

2016-12-31 Thread Spencer Graves
Have you tried findFn{sos}: > library(sos) > efa <- findFn('Elliptic Fourier Analysis') found 10 matches; retrieving 1 page Downloaded 0 links in 0 packages. > mmcs <- ???Morphometrics found 71 matches; retrieving 4 pages 2 3 4 Downloaded 0 links in 0 packages. I'm not familiar with El

[R] 3D Elliptic Fourier

2016-12-31 Thread Liza van Eijk
Dear Yingqi, Have you had any luck finding a way to run an Elliptic Fourier Analysis on 3D coordinates in R? If so, could you let me know which package you used? Thank you. Kind regards, Liza [[alternative HTML version deleted]] __ R-help

[R] GEOquery

2016-12-31 Thread Elham - via R-help
hello all,I am following this link  http://genomicsclass.github.io/book/pages/GEOquery.html for importing data.but I have a problem in a step of (Access GSE Data Tables from GEO).in the example of tutorial there are 266 samples,but by this function dim(pData(gse[[1]]))head(pData(gse[[1]])[, 1:3])

Re: [R] Extracting non-matching elements of one vector from another

2016-12-31 Thread Duncan Murdoch
On 31/12/2016 1:36 PM, Dan Abner wrote: Hi all, I have 2 vectors and need to extract only the elements from v2 that do not appear in v1. What is the most efficient way to do this? In the example below, I need to extract "var1". v1<-"b0" v2<-c("b0","var1") setdiff(v2, v1) Duncan Murdoch ___

Re: [R] Extracting non-matching elements of one vector from another

2016-12-31 Thread Bert Gunter
?setdiff ## It's a wrapper for ?match setdiff(v2,v1) You should go through an R tutorial or two to learn about such handy basic functionality. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathe

[R] Extracting non-matching elements of one vector from another

2016-12-31 Thread Dan Abner
Hi all, I have 2 vectors and need to extract only the elements from v2 that do not appear in v1. What is the most efficient way to do this? In the example below, I need to extract "var1". v1<-"b0" v2<-c("b0","var1") Thanks, Dan [[alternative HTML version deleted]] ___

Re: [R] about data format in R

2016-12-31 Thread lily li
Sorry, the problem has been solved. I found that strptime is a good function for this. DF$time2 = strptime(DF$time, format='%Y-%m-%d) On Sat, Dec 31, 2016 at 11:02 AM, lily li wrote: > I tried it, but it doesn't work. The time column is blank then. > DF$time = substring(DF$time, first=as.Date('

Re: [R] about data format in R

2016-12-31 Thread lily li
I tried it, but it doesn't work. The time column is blank then. DF$time = substring(DF$time, first=as.Date('1999-01-01), last=as.Date('2005-12-30')) On Sat, Dec 31, 2016 at 10:52 AM, David Winsemius wrote: > > > On Dec 31, 2016, at 9:26 AM, lily li wrote: > > > > Hi all, > > > > Thanks for your

Re: [R] about data format in R

2016-12-31 Thread David Winsemius
> On Dec 31, 2016, at 9:26 AM, lily li wrote: > > Hi all, > > Thanks for your help. Now I can convert data to the format "-mm-dd > hh:mm:ss", but how to convert it to "-mm-dd"? The datasets are txt > files, not from excel. Use: as.Date > > On Fri, Dec 30, 2016 at 3:01 PM, Duncan Macka

Re: [R] about data format in R

2016-12-31 Thread lily li
Thanks. It seems that substrings only subset the data, not convert the format. For example, I use the code below: DF$time = substring(DF$time, '%Y-%m-%d') where DF$time has the structure: '2002-01-01 00:00:00', '2002-01-01 12:00:00', '2003-01-01 00:00:00', '2003-01-01 12:00:00', etc. I wanted to c

Re: [R] about data format in R

2016-12-31 Thread Bert Gunter
?substring (among others) -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Dec 31, 2016 at 9:26 AM, lily li wrote: > Hi all, > > Thanks for your h

Re: [R] about data format in R

2016-12-31 Thread lily li
Hi all, Thanks for your help. Now I can convert data to the format "-mm-dd hh:mm:ss", but how to convert it to "-mm-dd"? The datasets are txt files, not from excel. On Fri, Dec 30, 2016 at 3:01 PM, Duncan Mackay wrote: > Hi > > Is this the output from Excel? > If so format it in Excel f