Displaying 5 results from an estimated 5 matches for "mylist1".
Did you mean:
mylist
2010 Oct 28
1
Merging nested lists
Hello All,
I have multiple "list of lists" in the form of
Mylist1[[N]][[K]]$Name_i,
with N=1..6, K=1..3, and i=1..7. Each Name_i is a matrix. I have 30 of these objects Mylist1, Mylist2, ...
I would like to merge these lists by each Name_i using rbind, but I couldn't figure out how to do it. What I want at the end is a single "list of lists", ag...
2008 Sep 16
2
casting a character vector as an object
Greetings,
I need to compare the ratios of vector sizes like this:
length(object1) / length(object2)
I have many vector objects to compare, so I would like to do it in a loop.
I created a loop like this:
mat1 <- matrix()
for (i in 1:6)
{
for (j in 1:6)
{
mat1[i,j] <- length( paste("object",i,sep="")) /
2011 Apr 03
1
Help in splitting ists into sub-lists
Dear List,
Let's say I have a list whose components are 2 matrices (as exemplified in
the "mylist" object below). I'd like to create a list with components being
4 matrices based on an logical index vector. is there a way to simplify what
I'm doing to obtain the results in "mylist2"? I'd like something that would
work on an arbitrary number of elements in
2017 Apr 19
2
Default R-3.4.0 RC CXXFLAGS without -O2 on x86_64-linux-gnu with g++-5.4.0 causes WARNING from stl_list.h
...ted.?
Thanks in advance,?
yours,
Steffen
tmp.cpp by Martin Morgan (also in above linked mail thread)
-------
#include <list>
int foo(int argc, const char *argv[]) {
?????std::list<int> l1, l2;
?????std::list<int>::iterator it;
?????it = l1.begin();
?????l1.splice (it, l2); // mylist1: 1 10 20 30 2 3 4
?????return 0;
}
-------
Test with
???rm -f tmp.o && R CMD SHLIB tmp.cpp && nm tmp.o | grep abort
with compiler settings in ~/.R/Makevars with/without -O2
-------------
CXXFLAGS = -g -O0
-------------
--
IPB Halle????????????????????AG Massenspektrometrie...
2017 Apr 20
0
Default R-3.4.0 RC CXXFLAGS without -O2 on x86_64-linux-gnu with g++-5.4.0 causes WARNING from stl_list.h
...mp.cpp by Martin Morgan (also in above linked mail thread)
> -------
> #include <list>
>
> int foo(int argc, const char *argv[]) {
> ?????std::list<int> l1, l2;
> ?????std::list<int>::iterator it;
>
> ?????it = l1.begin();
> ?????l1.splice (it, l2); // mylist1: 1 10 20 30 2 3 4
>
> ?????return 0;
> }
> -------
>
> Test with
>
> ???rm -f tmp.o && R CMD SHLIB tmp.cpp && nm tmp.o | grep abort
>
> with compiler settings in ~/.R/Makevars with/without -O2?
> -------------
> CXXFLAGS = -g -O0
> --------...