Re: [R] sliding window analysis with rollapply

2012-10-18 Thread R. Michael Weylandt
9 > 731410 0.0239519768 > 732418 0.0676868746 > > Sorry for my stupid question. I am very willing to be educated. > > Best regards > Li > > > > From: R. Michael Weylandt [michael.weyla...@gmail.com] > Sent: Wednesday, O

Re: [R] sliding window analysis with rollapply

2012-10-17 Thread R. Michael Weylandt
On Tue, Oct 16, 2012 at 11:17 PM, Wang, Li wrote: > Dear List members > > I want to do the sliding window analysis of some specific values. Here is my > code: > > require(zoo) > dat <- read.table("chr1.txt", header = TRUE, sep="\t") > dat2 <- cbind(dat[1,3]) #The first column is also important. I

[R] sliding window analysis with rollapply

2012-10-16 Thread Wang, Li
Dear List members I want to do the sliding window analysis of some specific values. Here is my code: require(zoo) dat <- read.table("chr1.txt", header = TRUE, sep="\t") dat2 <- cbind(dat[1,3]) #The first column is also important. It represents the position of the site on the chromosome. TS <- z