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 - I'm new to R. In other functional languages I'm familiar with you can often seed a call to reduce() with a custom accumulator. Here's an example in Elixir: map = %{"one" => [1, 1], "three" => [3], "two" => [2...
Hi Dounds like you didn't import the library.. Try library (rmap) or whatever your library is called. Am Montag 14 Mai 2007 schrieb Laurence Amilhat: > Hello, > > I am a beginner in R programming, so sorry for the low level...
Jeremiah - neat - that's one step closer, but one small thing I still don't understand: > data <- list(one = c(1, 1), three = c(3), two = c(2, 2)) > r = Reduce(function(acc, item) { append(acc, setNames(length(item), names...
David - many thanks for your response. What I tried to do was to turn data <- list(one = c(1, 1), three = c(3), two = c(2, 2)) into result <- list(one = 2, three = 1, two = 2) that is creating a...
Ulrik - many thanks for your reply. I'm aware of many simple solutions as the one you suggest, both iterative and functional style - but I'm trying to learn how to bend Reduce() for the purpose of using it in...
That seems like sage advise :) Thanks Stefan On 29 July 2016 at 22:06, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: > Having experienced some frustration myself when I first started with R > many years ago, I can relate...
>> I still don't understand why you want Reduce to to lapply's >> job. Reduce maps many to one and lapply maps many to >> many. Say you want to map a function over a subset of a vector or list...
Can't find what you're looking for? Try searching with Google .