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.

4 results for “from:Ben Rich”

matrix indexing
Ben Rich · Aug 18, 2005 · r-help

Hi, you might not consider this more elegant, but how about this x[-apply(ind, 1, function(i) (i[1]-1)*nrow(x) + i[2])] Ben On 8/18/05, toka tokas <tokkass at yahoo.com> wrote: > Dear R-users...

The naPattern agrument of gnls()
Ben Rich · Aug 16, 2005 · r-help

I was hoping someone could help me to better understand the naPattern argument in the function gnls(). Unfortunately, there's no example using this argument provided in the help file. According to the gnls() help file, naPattern is "an expression...

select previous date
Ben Rich · Aug 18, 2005 · r-help

You can try this: dates <- df$date[df$temp==15] one.month.before <- sapply(strsplit(dates, "-"), function(x) paste(x[1], sprintf("%02d", as.numeric(x[2])-1), x[3], sep="-")) df[df$date %in% one.month.before,] Ben On...

Plotting nls
Ben Rich · Aug 26, 2005 · r-help

To get nice looking plots you can use trellis plots from the lattice package. First you need: library(lattice) Then you can define a custom panel function that will overlay the fitted curve on top of the data points in...

Can't find what you're looking for? Try searching with Google .