Re: [R] grep with search terms defined by a variable

2010-08-04 Thread Amos Folarin
You might also find match and pmatch of use here. On Aug 3, 2010, at 12:05 AM, Daniel Malter wrote: > > Hi, I have a good grasp of grep() and gsub() for finding and > extracting > character strings. However, I cannot figure out how to use a search > term > that is stored in a

[R] merge two data frames

2010-08-04 Thread Amos Folarin
998), POSITION = c(1, -1, 2, 2, 1, 2, -1, -1, 1, 2, 0, 0, 0), SETTLEMENT = c(167.4, 324.55, 390.75, 76.99, 1160.4, 4.718, 468.75, 2067.71, 1744.1, 978, 0, 0, 0)), .Names = c("DESCRIPTION", "pl", "PL", "POSITION", "SETTLEMENT"), row.names

[R] Problems getting html files out of R CMD check

2011-03-13 Thread Amos Folarin
Hi, I'm trying to R CMD check a package, however I have hit a snag. There seems to be a problem with the creation of the /html files (the only file that's constructed here is the 00Index.html). I've tested each of the .Rd files independently with R CMD Rdconv, they all happily create html files wi

[R] Problems getting html files out of R CMD check

2011-03-14 Thread Amos Folarin
> > -- Forwarded message -- > From: Duncan Murdoch > To: Amos Folarin > Date: Sun, 13 Mar 2011 20:53:57 -0400 > Subject: Re: [R] Problems getting html files out of R CMD check > On 11-03-13 7:14 PM, Amos Folarin wrote: > >> Hi, >> >> I&#x

Re: [R] Problems getting html files out of R CMD check

2011-03-14 Thread Amos Folarin
On 14 March 2011 11:43, Duncan Murdoch wrote: > On 11-03-14 7:32 AM, Amos Folarin wrote: > >> >>> -- Forwarded message -- >>> From: Duncan Murdoch >>> To: Amos Folarin >>> Date: Sun, 13 Mar 2011 20:53:57 -0400 >>> Subjec

[R] heatmap clustering dendrogram export

2011-04-11 Thread Amos Folarin
Hi boyang zhe, The dendrogram is stored in the object returned from heatmap.2 #e.g. x <- heatmap.2(matrix(1:9,3)) dend.row <- x$rowDendrogram class(dend.row) [1] "dendrogram" plot(tmp$rowDendrogram) Amos Folarin -- Forwarded message -- From: boyang z

[R] Whole genome searching of 100bp "D" sequence

2011-04-15 Thread Amos Folarin
Hi, I was wondering I'm going about this in the correct way. I need to test if there are coding sequences or exons in hg19 which match a string of 100bp "D" i.e. [A,G or T]. However I'm getting a strange result. I get a hit on chr7, using the 100bp search however when I search with 60bp sequence o