Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
Hi, In the example below, one of the searched patterns "SE" is matched in the word "second". I would like to ignore all matches in which the character following the match is one of [:alpha:]. How do I do this...
Hi, I have a series of MS word files and each file contains plain text. From these texts I would like to extract only those elements (read: words) that are between square brackets. Example of a text: Most fundamentally, it...
Hi, I am trying to access a website and read its content. The website is a restricted access website that I access through a proxy server (which therefore requires me to enable cookies). I have problems in allowing Rcurl to...
Hi, I have written a function "harvest" and I would like to run the function for each value in a vector c(1:1000). The function returns 4 list objects (obj_1, obj_3, obj_3, obj_4) using the...
Hi list, based on the following data.frame I would like to create a variable that indicates the number of occurrences of A in the 3 years prior to the current year: DF = data.frame(read.table(textConnection(" A B...
Hi, I have a question concerning the selection of data. Let's say that given list h created below, I would like to select a section of the 1999 matrix. For a case (rownames and colnames) I would like to...
Hi, I have a minor follow-up question: In the example below, "ann" and "nn" in the third element of text are matched. I would like to ignore all matches in which the character following the match is one of...
Hi, I am using R's grep function to find patterns in vectors of strings. The number of patterns I would like to match is 7,700 (of different sizes). I noticed that I get an error message when I...
Thanks, all solutions worked like a charm. Math arun kirshna wrote > > ----- Forwarded Message ----- > From: arun <smartpink111@> > To: mdvaan <mathijsdevaan@> > Cc: R help <r-help@> > Sent: Thursday, June 28, 2012 1:44 AM > Subject: Re...
Thanks! That worked like a charm. Math Gabor Grothendieck wrote > > On Fri, Jul 13, 2012 at 1:41 PM, mdvaan <mathijsdevaan@> wrote: >> Here's some data (which should give you the error messages): >> >> # read in data >> data <- read...
Hi, I have produced a list g and I would like to reduce the amount of information contained in each object in g. For each matrix I would like to keep the values where the column name equals g[year...
Here's some data (which should give you the error messages): # read in data data <- read.csv("https://dl.dropbox.com/u/13631687/data.csv", header = T, sep = ",") # first paste all data data1 <- paste(data[,1], collapse = "|") # second paste subsets...
Thank you very much! I really liked the first solution, it worked great for my larger dataset. M Gabor Grothendieck wrote: > > On Fri, Jun 3, 2011 at 8:11 AM, mdvaan <mathijsdevaan at gmail.com> > wrote: >> Would it...
Hi, I am using prof. Temple Lang's suggestions and I think I should be close but with the code below I get an error message which I don't fully get. Any suggestions? Thanks! Math library(RCurl) library(XML...
Thank you very much. This definitely helps me out. Math Jeff Newmiller wrote > > There are many resources for learning regular expressions (e.g. > http://gnosis.cx/publish/programming/regular_expressions.html). Once you > understand the basics you will probably be...
Hi, I have the following sequence: in <- c(0, 0, 0, 2, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Thanks Jean, changing c[[t]] to c[[year]] solved the issue. Math Jean V Adams wrote: > >> Re: [R] Selecting cases from matrices stored in lists >> mdvaan >> to: >> r-help >> 08/22/2011 09:46 AM >> >> Jean V Adams wrote: >> > >> >> [R...
Hi, I have data on individuals (B) who participated in events (A). If ALL participants in an event are a subset of the participants in another event I would like to remove the smaller event and if the participants in...
Thanks Gabor. That worked really well. I have been reading about the use of POSIX and regular expressions and I tried to use your example to see if I could ignore all matches in which the character preceding (rather than...
Thanks, I see that it is working in the sample data. My data, however, gives me an error message: data <- strapplyc(text, batch[[l]]) Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : [tcl] couldn't compile regular expression pattern...
Can't find what you're looking for? Try searching with Google .