[R] Using NCBI E-Utilities in R to extract data from PubMed

2011-08-05 Thread Jokel Meyer
Dear R-experts! I found a great post on the "getting genetics done" blog which describes how to make use of NCBI E-utilities in Python to extract data from PubMed: http://gettinggeneticsdone.blogspot.com/2011/05/using-ncbi-e-utilities.html I was wondering whether there would be a way to directly

Re: [R] to extract data

2009-04-20 Thread Stefan Grosse
On Sun, 19 Apr 2009 23:59:43 -0700 (PDT) Roslina Zakaria wrote: RZ> I have a set of data from 1958-2009, how do I extract the data from RZ> 1927 and 2007? RZ> beechworth.dt RZ> Year Month  Rain how about: beech.cut<-subset(beechworth.dt,(Year>1926&Year<2008)) hth Stefan

Re: [R] to extract data

2009-04-20 Thread Christian Ritz
Hi, maybe the following line works for you: beechworth.dt.2 <- beechworth.dt[as.numeric(beechworth.dt$Year) %in% 1927:2007, ] (using as.numeric() to make sure that "Year" is numeric, maybe not needed?). Christian __ R-help@r-project.org mailing li

Re: [R] to extract data

2009-04-20 Thread djhurio
Hi, Try this one: beechworth.dt.2 <- beechworth.dt[beechworth.dt$Year>="1927" & beechworth.dt$Year<="2007",] Martins On Apr 20, 9:59 am, Roslina Zakaria wrote: > Hi R-users, > > I have a set of data from 1958-2009, how do I extract the data from 1927 and > 2007? >   > beechworth.dt >

Re: [R] to extract data

2009-04-20 Thread ronggui
If Year is numeric data, then you can use: beechworth.dt.2 <- subset(beechworth.dt, Year>=1997 & Year <=2008) If it is character, then you can use: beechworth.dt.2 <- subset(beechworth.dt, Year %in% as.character(1997:2008)) 2009/4/20 Roslina Zakaria : > > Hi R-users, > > I have a set of data from

Re: [R] to extract data

2009-04-20 Thread Uwe Ligges
Roslina Zakaria wrote: Hi R-users, I have a set of data from 1958-2009, how do I extract the data from 1927 and 2007? beechworth.dt Year Month Rain 11858 3 21.8 21858 4 47.0 31858 5 70.1 41858 6 78.7 51858 7 101.6 61858 8 129.8 7

[R] to extract data

2009-04-20 Thread Roslina Zakaria
Hi R-users, I have a set of data from 1958-2009, how do I extract the data from 1927 and 2007?   beechworth.dt Year Month  Rain 1    1858 3  21.8 2    1858 4  47.0 3    1858 5  70.1 4    1858 6  78.7 5    1858 7 101.6 6    1858 8 129.8 7    1858 9  80.8 8    1858