search for: testarr

Displaying 2 results from an estimated 2 matches for "testarr".

Did you mean: testar
2002 Jul 11
1
How to get relevant dimnames from apply() ?
Hello, in order to vectorize task (of plotting barplots), I use, as probably all R-folks, function apply() instead of for() loop. <R> testarr<-matrix(1:30, nrow=5) rownames(testarr)<-letters[1:5] colnames(testarr)<-LETTERS[1:6] apply(testarr,1,function(x) {x11(); barplot(x)}) #the funcion used is actually more compex, but it doesn't matter </R> Now, how I can propagate the rownames of testarr into the main label of pl...
2003 Aug 28
2
how to call a C program from R function
Hi all, I would like to call a C program from R function. I tried to use the .C() function without success. I need a very simple example (such as the hello program) to understand how it works. Could you give a such example? (I use the 1.7.1 Version of R with linux) Does it work in the case of a C++ program instead of a C programm? Best regards, Olivier --