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.

5 results for “from:Walrus Foolhill”

[Rcpp-devel] add new components to list without specifying list size initially
Walrus Foolhill · Aug 11, 2011 · rcpp-devel

Hello, I need to create a list and then fill it sequentially by adding components in a for loop. Here is an example that works: library(inline) src <- ' Rcpp::List mylist(2); for(int i=0; i<2; ++i) mylist...

[Rcpp-devel] add new components to list without specifying list size initially
Walrus Foolhill · Aug 11, 2011 · rcpp-devel

Ok, thanks for your answer, but I wasn't clear enough. So here are more details of what I want to do. I have one list named "probes": probes <- list(chr1=data.frame(name=c("p1","p2"), start=c(81...

[Rcpp-devel] add new components to list without specifying list size initially
Walrus Foolhill · Aug 13, 2011 · rcpp-devel

Steve and Dirk, thanks again, I will look into the GenomicRanges package for my immediate usage, but for my future need, I will also keep trying to manipulate nested lists with Rcpp, as all my data structures are as such...

[Rcpp-devel] add new components to list without specifying list size initially
Walrus Foolhill · Aug 11, 2011 · rcpp-devel

Ok, I started with smaller examples. I understand more or less how to manipulate IntegerVectors, but not StringVectors (see below), and thus I can't even start manipulating a simple list of StringVectors. Even so I looked at mailing lists...

[Rcpp-devel] add new components to list without specifying list size initially
Walrus Foolhill · Aug 12, 2011 · rcpp-devel

Thanks for your advice, I now understand how to manipulate one-level lists: fn <- cxxfunction(signature(l_in="list"), body=' using namespace Rcpp; List l(l_in); IntegerVector lf = l["foo"]; CharacterVector lb = l["bar"]; for(int i=0; i...

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