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
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
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
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
>
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
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
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
7 matches
Mail list logo