Skip to content

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.

48 results for “from:mdvaan”

strapply and characters adjacent to the matched pattern
mdvaan · Jul 24, 2012 · r-help

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...

Select elements from text
mdvaan · Jan 24, 2012 · r-help

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...

How to set cookies in RCurl
mdvaan · Jun 7, 2012 · r-help

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...

Accumulate objects in list after try()
mdvaan · Nov 26, 2012 · r-help

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...

Counting occurrences in a moving window
mdvaan · Jun 2, 2011 · r-help

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...

Selecting section of matrix
mdvaan · Aug 15, 2011 · r-help

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...

Maximum number of patterns and speed in grep
mdvaan · Jul 23, 2012 · r-help

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...

Maximum number of patterns and speed in grep
mdvaan · Jul 6, 2012 · r-help

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...

Extract upper case letters
mdvaan · Jun 28, 2012 · r-help

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...

Maximum number of patterns and speed in grep
mdvaan · Jul 16, 2012 · r-help

Thanks! That worked like a charm. Math Gabor Grothendieck wrote > > On Fri, Jul 13, 2012 at 1:41 PM, mdvaan &lt;mathijsdevaan@&gt; wrote: >> Here's some data (which should give you the error messages): >> >> # read in data >> data <- read...

Selections in lists
mdvaan · Aug 25, 2011 · r-help

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...

Maximum number of patterns and speed in grep
mdvaan · Jul 13, 2012 · r-help

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...

Counting occurrences in a moving window
mdvaan · Jun 3, 2011 · r-help

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 &lt;mathijsdevaan at gmail.com&gt; > wrote: >> Would it...

How to set cookies in RCurl
mdvaan · Jun 21, 2012 · r-help

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...

gsub/strsplit with multiple patterns/splits
mdvaan · May 31, 2012 · r-help

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...

Finding and manipulation clusters of numbers in a sequence of numbers
mdvaan · Jul 16, 2012 · r-help

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...

Selecting cases from matrices stored in lists
mdvaan · Aug 22, 2011 · r-help

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...

Merging fully overlapping groups
mdvaan · Mar 13, 2012 · r-help

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...

strapply and characters adjacent to the matched pattern
mdvaan · Jul 25, 2012 · r-help

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...

Maximum number of patterns and speed in grep
mdvaan · Jul 13, 2012 · r-help

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 .