Re: [R] [Rcpp-devel] fast rowCumsums wanted for calculating the cdf

2010-10-15 Thread Romain Francois
and Romain Francois on developing the Rcpp package make it surprisingly easy to create compiled code for this task. I am copying the Rcpp-devel list on this in case one of the readers of that list has time to create a sample implementation before I can get to it. It's midterm season and I have to tackle

Re: [R] Is there an implementation for URL Encoding (/format) in R?

2010-11-25 Thread Romain Francois
Le 25/11/10 16:53, Tal Galili a écrit : Hello all, I would like some R function that can translate a string to a URL encoding (see here: http://www.w3schools.com/tags/ref_urlencode.asp) Is it implemented? (I wasn't able to find any reference to it) Thanks, Tal Perhaps ?URLencode -- Romain

Re: [R] help: program efficiency

2010-11-26 Thread Romain Francois
, minimal, self-contained, reproducible code. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/9VOd3l : ZAT! 2010 |- http://bit.ly/c6DzuX : Impressionnism with R `- http://bit.ly/czHPM7 : Rcpp Google tech talk on youtube

Re: [R] help: program efficiency

2010-11-26 Thread Romain Francois
Le 26/11/10 21:13, Romain Francois a écrit : Hello, Can we really make the assumption that the data is sorted. The original example was not: I am working on a function to make a duplicated value unique. For example, the original vector would be like : a = c(2,1,1,3,3,3,4) If we can make

Re: [R] help: program efficiency

2010-11-27 Thread Romain Francois
TODO list). But otherwise sort.list dominates the time. Romain Le 26/11/10 21:22, Romain Francois a écrit : Le 26/11/10 21:13, Romain Francois a écrit : Hello, Can we really make the assumption that the data is sorted. The original example was not: I am working on a function to make

Re: [R] Fast string comparison

2010-07-13 Thread Romain Francois
string comparison operations is causing a massive bottleneck in your code? If so, which one and how are you using it? -Charlie -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/bc8jNi : Rcpp 0.8.4 |- http://bit.ly/dz0RlX

Re: [R] How to generate PDF help file for our internal R package?

2010-07-17 Thread Romain Francois
the directory that contains your package : $ R CMD Rd2dvi yourpackage Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/bc8jNi : Rcpp 0.8.4 |- http://bit.ly/dz0RlX : bibtex 0.2-1 `- http://bit.ly/a5CK2h : Les estivales 2010

Re: [R] problem with building package on CRAN

2010-07-26 Thread Romain Francois
(polycor, GPArotation, MASS, graph, Rgraphviz, mvtnorm, Rcsdp), but none of these are actually required. My examples all ask if the suggested packages are available and then do not call them if they are not. Any suggestions on what to do would be appreciated. Thanks. Bill -- Romain Francois

Re: [R] O/T good c/c++ code for LU decomposition

2010-07-26 Thread Romain Francois
: Dear R People: Could someone recommend a good c/c++ code (or Fortran) for LU decomposition, please? Sorry to bother about this. I'm trying to do some non-R work that requires a matrix inversion. Thanks, Erin -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] How get colnames and rownames in Rcpp method?

2010-07-28 Thread Romain Francois
%2Ewwl737%2Ehanmail%2Enet%3E] References 1. mailto:dllm...@hanmail.net -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/aryfrk : useR! 2010 |- http://bit.ly/bc8jNi : Rcpp 0.8.4 `- http://bit.ly/dz0RlX : bibtex 0.2-1

Re: [R] Sciviews-K -- object 'httpdPort' not found

2010-08-05 Thread Romain Francois
to resolve this? Thanks in advance! Cheers!! Albert-Jan -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/aAyra4 : highlight 0.2-2 |- http://bit.ly/94EBKx : inline 0.3.6 `- http://bit.ly/aryfrk : useR! 2010

Re: [R] How to extract the conf.level out of t.test() data

2010-08-10 Thread Romain Francois
in advance an greetings from Berlin Etienne You need the conf.level attribute, as in : x - t.test(1:10) attr( x$conf.int, conf.level ) Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/aAyra4 : highlight 0.2-2 |- http

Re: [R] Identifying integers (as opposed to real #s) in matrix

2010-08-10 Thread Romain Francois
TRUE FALSE x[ rowSums( x == round(x) ) == ncol(x) , ] - NA x [,1] [,2] [,3] [1,] NA NA NA [2,] 1.2 2.2 3.2 [3,] NA NA NA [4,] 1.2 1.2 1.3 Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/aAyra4

Re: [R] cacheSweave / pgfSweave driver for package vignette

2010-08-13 Thread Romain Francois
(and perhaps tangle) driver is to be used for a particular vignette would be very useful. Romain I have no experience in writing makefiles, so I'm hoping someone would already have solved this issue and could provide some advice. Sincerely, baptiste -- Romain Francois Professional R

Re: [R] Creating list from a long vector

2010-08-14 Thread Romain Francois
Le 14/08/10 18:22, steven mosher a écrit : Stupid question, but its been a long night. If I have a long vector how can I turn it into a list of the same length x-rep(seq(1,100,by=1),each=10) Perhaps as.list ? -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] cacheSweave / pgfSweave driver for package vignette

2010-08-14 Thread Romain Francois
in writing makefiles, so I'm hoping someone would already have solved this issue and could provide some advice. Sincerely, baptiste -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/bzoWrs : Rcpp svn revision 2000 |- http://bit.ly

Re: [R] incrementing matrix elements more efficiently

2010-08-15 Thread Romain Francois
0.048 0.000 0.048 Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/bzoWrs : Rcpp svn revision 2000 |- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th `- http://bit.ly/aAyra4 : highlight 0.2-2

Re: [R] Random Number Generators and Sample

2010-08-16 Thread Romain Francois
there. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/bzoWrs : Rcpp svn revision 2000 |- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th `- http://bit.ly/aAyra4 : highlight 0.2-2

Re: [R] Rserve (Anyone?)

2010-08-20 Thread Romain Francois
dev.off()), and then send the file accross the wire. Rserve has some methods for file transfer. For example, see : http://romainfrancois.blog.free.fr/index.php?post/2009/08/04/Transfer-files-through-Rserve Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] R and Java

2010-08-20 Thread Romain Francois
-- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/bzoWrs : Rcpp svn revision 2000 |- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th `- http://bit.ly/aAyra4 : highlight 0.2-2 __ R-help@r

Re: [R] faster unlist,strsplit,gsub,for

2010-09-10 Thread Romain Francois
and the for loop on a lot of strings and its heavily slowing down the overall system. Is there some way for me to speeden up these operations..maybe like alternate versions that exist which use multiprocessors etc. -- Rajesh.J -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30

Re: [R] characters in a string

2010-09-15 Thread Romain Francois
) f( rha,b,c,drh ) [1] TRUE See ?grepl for details. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/cCmbgg : Rcpp 0.8.6 |- http://bit.ly/bzoWrs : Rcpp svn revision 2000 `- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th

Re: [R] get absolute file path

2010-09-26 Thread Romain Francois
/documents/data/2010-08.csv) Kind regards, Sebastian Hi, I often use tools:::file_path_as_absolute which is not exported from the tools namespace, but does the job. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/cCmbgg

Re: [R] get absolute file path

2010-09-26 Thread Romain Francois
Le 26/09/10 12:18, Kurt Hornik a écrit : Sebastian Gibb writes: Am Sonntag, 26. September 2010, 10:08:39 schrieb Romain Francois: Le 26/09/10 10:00, Sebastian Gibb a écrit : Hello, I get a value which stores a relative file name. (I get it from another function, which I don't want

Re: [R] How to convert SEXP to double

2010-09-28 Thread Romain Francois
); } private: Rcpp::RObject x; }; Please register to the Rcpp-devel mailing list of you have follow up questions. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/cCmbgg : Rcpp 0.8.6 |- http://bit.ly/bzoWrs

Re: [R] RJava help

2010-10-15 Thread Romain Francois
on the appropriate mailing list for rJava: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/b8wOqW : LondonR Rcpp slides |- http://bit.ly/cCmbgg : Rcpp

Re: [R] JRI - get S4 objects from R and assign them again

2009-09-30 Thread Romain Francois
); re.assign(resultReading, x); but the variable resultReading was not available in R afterwards. Has anyone of you an idea what I could do? Thanks in advance! Best, Anni -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im

[R] celebrating revision 50000

2009-10-09 Thread Romain Francois
for these 50 000 commits. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E : New R package : sos

Re: [R] celebrating revision 50000

2009-10-09 Thread Romain Francois
that have (no author) The other thing is that it does not include data from the pre-svn era. Romain On 10/09/2009 03:41 PM, Romain Francois wrote: Hello, Today, Brian Ripley commited the revision 5 of R's svn repository. I took this as an opportunity to do some data analysis of the log

Re: [R] Decreasing Sort Error Message

2009-10-11 Thread Romain Francois
, decreasing = 1) : 'decreasing' must be a length-1 logical vector. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http

Re: [R] xyplot does not find variable in data

2009-10-12 Thread Romain Francois
(nitro))), subset=Variety==Victory ) ) Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E : New R

Re: [R] Function to find prime numbers

2009-10-13 Thread Romain Francois
TRUE 8 8FALSE FALSE 9 9FALSE FALSE 10 10FALSE FALSE See this: http://jostamon.blogspot.com/2009/02/goldbachs-comet.html for an example of its use. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] Creating a list of empty lists

2009-10-13 Thread Romain Francois
On 10/13/2009 03:48 PM, Magnus Torfason wrote: l = list(list()) for ( i in sequence(length-1) ) { l = list(unlist(l,recursive=FALSE), list()) } About this : rep( list(list()), 3 ) [[1]] list() [[2]] list() [[3]] list() Romain -- Romain Francois Professional R

Re: [R] General means of matching a color specification to an official R color name

2009-10-14 Thread Romain Francois
Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E : New R package : sos

Re: [R] General means of matching a color specification to an official R color name

2009-10-14 Thread Romain Francois
On 10/14/2009 12:26 PM, Romain Francois wrote: On 10/14/2009 12:05 AM, Barry Rowlingson wrote: On Tue, Oct 13, 2009 at 10:58 PM, Bryan Hansonhan...@depauw.edu wrote: Works perfectly! Thanks Barry. I had actually seen some suggestions on using a distance, but by then I was thinking about hcl

Re: [R] Problems with rJava and tm packages

2009-10-16 Thread Romain Francois
somehting with Vista or what. Thanks guys and gals Cheers, JR -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E

Re: [R] Urgent help requested to modify a script

2009-10-16 Thread Romain Francois
as a command line argument to Rscript.exe Can anybody help please? Regards, Ian http://www.nabble.com/file/p25924237/My_script.R My_script.R ?commandArgs -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R

Re: [R] Rjava, RImageJ, and/or S4 question.

2009-10-28 Thread Romain Francois
of much-needed self-education :-) Thanks for any insight. Rob -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E

Re: [R] how can i call R program from one java program?

2009-10-28 Thread Romain Francois
-- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E : New R package : sos

Re: [R] R crashes

2009-10-30 Thread Romain Francois
Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E : New R package : sos

Re: [R] Help with complicated regular expression

2009-11-13 Thread Romain Francois
-- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http://tr.im/BcPw : celebrating R commit #5 `- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc __ R

Re: [R] How to show all the functions and classes that are defined in a library?

2009-11-13 Thread Romain Francois
( package:some_package_name ) ls( package:some_package_name, all = TRUE ) Sometimes you want to see even those that are not exported from the namespace: ls( asNamespace( some_package_name ) ) ls( asNamespace( some_package_name ), all = TRUE ) Romain -- Romain Francois Professional R Enthusiast +33(0

Re: [R] Inline Package: void vs return type functions

2010-04-13 Thread Romain Francois
extensions Many thanks Sergio Barrios -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/9aKDM9 : embed images in Rd documents |- http://tr.im/OIXN : raster images and RImageJ |- http://tr.im/OcQe : Rcpp 0.7.7

Re: [R] Error message when trying to install Rcmdr

2010-04-17 Thread Romain Francois
/i486-pc-linux-gnu-library/2.10/00LOCK’ Any help at solving this problem would greatly be appreciated. -Michael -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/9aKDM9 : embed images in Rd documents |- http://tr.im/OIXN : raster

Re: [R] JRI API: sourcing from Java String

2010-04-28 Thread Romain Francois
do something like : eval( parse( text = FOO ) ) Questions about JRI, rJava, REngine, etc ... usually belong to the stats-rosuda-devel mailing list: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30

Re: [R] Split a vector by NA's - is there a better solution then a loop ?

2010-04-29 Thread Romain Francois
, new.groups.split.id)[-1]) } split.vec.by.NA(x) Thanks, Tal -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/9aKDM9 : embed images in Rd documents |- http://tr.im/OIXN : raster images and RImageJ |- http://tr.im/OcQe : Rcpp 0.7.7

Re: [R] Error in RImageJ

2010-05-08 Thread Romain Francois
. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line starting httpd help server ... done Can someone help me figuring out what this means and how to solve the problem? Thanks in advance. Fredy -- Romain Francois Professional R Enthusiast +33(0

Re: [R] make: Nothing to be done for `all'.

2010-05-11 Thread Romain Francois
tried reinstalling Xcode and R but I am still having this problem. Any suggestions? You can try $ rm hello.o hello.so Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/9aKDM9 : embed images in Rd documents |- http

Re: [R] make: Nothing to be done for `all'.

2010-05-11 Thread Romain Francois
Le 11/05/10 13:40, Elizabeth Lawson a écrit : When I try $ rm hello.o hello.so I get the error -bash: $: command not found What does that mean? Did you actually type the '$' ? You should not have. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] make: Nothing to be done for `all'.

2010-05-12 Thread Romain Francois
eh file hello.c #includeR.h void hello(int *n) { int i; for(i=0; i *n; i++) { Rprintf(Hello, world!\n); } } I try R CMD SHLIB hello.c and I ge tthe error make: Nothing to be done for `all'. Why does one compile and the other not? -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30

Re: [R] using the name of an argument in a function

2010-05-25 Thread Romain Francois
-deparse(substitute(y)) cat(name is ,nameOfY) } ) titi- aze fun(titi) # name is y --- 8 So is there a way to get the name of the variable toto or titi in a way that work in all cases? Christophe -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] Accessing list names in lapply

2009-11-19 Thread Romain Francois
like that. Thanks in advance for any comments, Bjarke Christensen -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http://tr.im/BcPw : celebrating R commit #5 `- http://tr.im/ztCu : RGG #158:161

Re: [R] How to: highlight R syntax on webpages ?

2009-11-20 Thread Romain Francois
-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com/ (English) -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http://tr.im/BcPw : celebrating R commit

Re: [R] python

2009-11-22 Thread Romain Francois
-- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http://tr.im/BcPw : celebrating R commit #5 `- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc __ R

Re: [R] Problem with Jri (rJava)

2009-11-30 Thread Romain Francois
) at rtest.main(rtest.java:61) -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/FtUu : new package : highlight |- http://tr.im/EAD5 : LondonR slides `- http://tr.im/BcPw : celebrating R commit #5

Re: [R] R script From PHP

2009-12-01 Thread Romain Francois
://biostat.mc.vanderbilt.edu/rapache/ Good luck with your project and do post a link to your webpage when you get it running. There is also a simple php client to Rserve in the next version of Rserve. http://www.rforge.net/Rserve/index.html -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] Package is loaded but functions are not exported

2009-12-01 Thread Romain Francois
the rh functions present. On R-2.10, Mac OS X, (32 bit), it builds, loads, but the functions are not loaded, i.e the only function is rhyper (which is not from my package). Is there something wrong with my package setup? Regards Saptarshi -- Romain Francois Professional R Enthusiast +33(0) 6 28

Re: [R] R script From PHP

2009-12-02 Thread Romain Francois
-augsburg.de/mailman/listinfo/stats-rosuda-devel Romain Anybody familiar with this? On Tue, Dec 1, 2009 at 5:35 PM, Romain Francois romain.franc...@dbmail.com mailto:romain.franc...@dbmail.com wrote: On 12/01/2009 12:48 PM, Hrishi Mittal wrote: Hi Amrit, I believe you can

Re: [R] problems installing R packages

2009-12-02 Thread Romain Francois
, or upgrade to the current version of R (2.10.0) for which you might get support ... whichever way is easiest for you. When you are done, please lend us your time travel machine so that we can get R 3.0.0 from the future. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30

Re: [R] R script From PHP

2009-12-02 Thread Romain Francois
); -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/FtUu : new package : highlight |- http://tr.im/EAD5 : LondonR slides `- http://tr.im/BcPw : celebrating R commit #5 __ R-help@r

Re: [R] problems installing R packages

2009-12-02 Thread Romain Francois
mean ? Thank you 2009/12/2 Romain Francois [via R] ml-node+933022-1560375...@n4.nabble.comml-node%2b933022-1560375...@n4.nabble.com On 12/02/2009 12:55 PM, catuxa-2 wrote: Hi, I´m trying to install new package in R (version 2.4.0) under windows vista and i have problems. I always

Re: [R] Arithmetic on multiple files

2009-12-02 Thread Romain Francois
1 1 4 4 4 5 5 5 2 2 2 + 5 5 5 = 7 7 7 3 3 3 6 6 6 9 9 9 Muhammad -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i : ohloh |- http://tr.im/FtUu : new package : highlight `- http://tr.im/EAD5 : LondonR slides

Re: [R] How to check if file is on a drive?

2009-12-03 Thread Romain Francois
and use it. But before I try to open the file I want to catch the possibility of the file not being on the drive. Thank you in advance! SG -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i : ohloh |- http://tr.im/FtUu : new

Re: [R] R and eclipse

2009-12-03 Thread Romain Francois
script with it? Thank you -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i : ohloh |- http://tr.im/FtUu : new package : highlight `- http://tr.im/EAD5 : LondonR slides __ R-help@r

Re: [R] selective subsetting of a correlation matrix

2009-12-04 Thread Romain Francois
= 1:2 ) y - cor( x ) t - c(x1, x2) y[ rownames(y) %in% t, colnames(y) %in% t ] Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i : ohloh |- http://tr.im/FtUu : new package : highlight `- http://tr.im/EAD5 : LondonR

Re: [R] selective subsetting of a correlation matrix

2009-12-04 Thread Romain Francois
On 12/04/2009 02:24 PM, Romain Francois wrote: On 12/04/2009 02:18 PM, Lee William wrote: Dear All, I have a correlation matrix say 'M' (4000x4000) for 4000 genes and I want to subset it to 'N' (190x190) for 190 genes. The list of those 190 genes are in variable 't'. So the idea is to read

Re: [R] Source code for some grid package documentation

2009-12-04 Thread Romain Francois
. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i : ohloh |- http://tr.im/FtUu : new package : highlight `- http://tr.im/EAD5 : LondonR slides __ R-help@r-project.org mailing list

Re: [R] [Ann] R brush for SyntaxHighlighter

2009-12-04 Thread Romain Francois
JavaScript library. It allows you to display R code on a web page with the proper syntax highlighting. It's available here: http://demitri.com/code Comments and suggestions for improvement are welcome! Cheers, Demitri -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] Announcing a new R news site: R-bloggers.com

2009-12-05 Thread Romain Francois
place) | all the new articles (posts) written (in English) about R in the R | blogosphere. But how is that different from http://PlanetR.stderr.org which has been doing the same quite admirably for years? Dirk -- Three out of two people have difficulties with fractions. -- Romain Francois

Re: [R] Announcing a new R news site: R-bloggers.com

2009-12-06 Thread Romain Francois
. Regarding the rest of what you wrote, I'll reply to you in each section: On Sun, Dec 6, 2009 at 3:22 AM, Romain Francois romain.franc...@dbmail.com mailto:romain.franc...@dbmail.com wrote: On 12/05/2009 09:32 PM, Tal Galili wrote: 1) Planet R is limited (for years) to 26 feeds only, and I

Re: [R] Brew Package

2009-12-08 Thread Romain Francois
-repetitive-reports/) is really complex to understand. Are there any simple examples through which I can learn about the Brew package? Thanks in advance, Shreyasee -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i : ohloh |- http

Re: [R] Brew Package

2009-12-08 Thread Romain Francois
the details section of ?brew, you know all you need to know. Romain On 12/08/2009 10:59 AM, Shreyasee wrote: Hi Romain, I read that but it seems to be too vague. Is there any detailed explanation available with simple examples? Thanks, Shreyasee On Tue, Dec 8, 2009 at 5:55 PM, Romain Francois

Re: [R] automated image processing

2009-12-08 Thread Romain Francois
of tissues (stained) in an automatic way. I had a look on biops and EBImage (Bioconductor) but they are not automatic... Did you already use/know a such package ? Thanks, - Martial -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i

Re: [R] Creating bibtex file of all installed packages?

2009-12-11 Thread Romain Francois
[[alternative HTML version deleted]] -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i : ohloh |- http://tr.im/FtUu : new package : highlight `- http://tr.im/EAD5 : LondonR slides

Re: [R] copyING directories and files

2009-12-11 Thread Romain Francois
. Is there any command in R that will let me do this (something like the 'cp' command in UNIX)? I have looked at 'file.copy', but as the name implies I think it only copies one file at a time. thanks! -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr

Re: [R] code for [[.data.frame

2009-12-13 Thread Romain Francois
, baptiste Thank you so much. Indeed, I've been able to look at the source code of the function from the source code of R. But I was quite keen on knowing how to do this from the toploop. Thanks a lot. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] How to resolve include Rcpp.h problems?

2009-12-13 Thread Romain Francois
to be also logical. In fact, I think the file libRcpp.so is need for the compilation of my code. Please notice that the package Rcpp is installed in the following directory: /usr/lib/R/site-library/Rcpp Thank you for giving an idea for solving this problem. -- Romain Francois Professional R Enthusiast

Re: [R] Combinations

2009-12-14 Thread Romain Francois
will start as (a, x, l, p, s), then next combination may be (a, x, l, p, u) and so on. The last combination (243rd in this case) may be (c, z, n, r, u) or something like this. In R, is there any way to list all these 3^5 = 243 combinations? Amelia -- Romain Francois Professional R Enthusiast +33(0

Re: [R] Why doesnot Rscript work ?

2009-12-14 Thread Romain Francois
- read.csv(000301.csv) matplot(x[,1],x[,-1],type=l) #q(save=no) %Rscript stock.R 000301.csv [1] 000301.csv matplot doesnot draw anything(no drawing window). Howeve, in R, source works great! source(stock.R) Sincerely! -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] Printing to PDF in for

2009-12-14 Thread Romain Francois
(y)) } dev.off( ) but the problem is that I have a lot of other code in the cycle which I don't want to be printed in PDF. Thanks a lot for the help -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/HlX9 : new package : bibtex

Re: [R] how to use Rengine instance to parse R script String

2009-12-14 Thread Romain Francois
anyone know how to use Rengine instance to parse a R script String? if so, could you give me a small example (in Java)? i really appreciate. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/HlX9 : new package : bibtex |- http://tr.im

Re: [R] Literature analysis

2009-12-14 Thread Romain Francois
of text files? Are they in a standardised format (i.e. bibTEX or similar)? /Gustaf -- Gustaf Rydevik, M.Sci. tel: +46(0)703 051 451 address:Essingetorget 40,112 66 Stockholm, SE skype:gustaf_rydevik -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] Creating bibtex file of all installed packages?

2009-12-15 Thread Romain Francois
for LaTeX users is @Manual{, title = {ant: Version of ant specific to R}, author = {Romain Francois}, year = {2009}, note = {R package version 0.0-10}, } str( entries[[1]] ) List of 4 $ title : chr ant: Version of ant specific to R $ author:List of 1 ..$ :List of 2

Re: [R] How to find the significant digits of a number?

2009-12-16 Thread Romain Francois
- function( x, y) abs( round( 10^y * (x - signif(x,y) ) ) ) foo( 3.1415, 4 ) [1] 5 -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/HlX9 : new package : bibtex |- http://tr.im/Gq7i : ohloh `- http://tr.im/FtUu : new package : highlight

Re: [R] issue with using rm: cannot generate on-the-fly list

2009-12-17 Thread Romain Francois
to declare the clean-up within a function for design purposes. The full project is spread over several files and I am trying to keep the main loop as simple as possible. Sincerly, Cormac Long. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr

Re: [R] question on 'within' and 'parse' commands

2010-01-07 Thread Romain Francois
to be eval(substitute(expr), e) l - as.list(e) l - l[!sapply(l, is.null)] nD - length(del - setdiff(names(data), (nl - names(l data[nl] - l if (nD) data[del] - if (nD == 1) NULL else vector(list, nD) data } --Neil -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] sig for R and C++

2010-06-03 Thread Romain Francois
/ The Posting Guide also has a question: Which list: R-help, R-devel, or Bioconductor? with some guidance on this point. HTH, Marc Schwartz -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/c6YnCi : graph gallery collage |- http

Re: [R] R with Emacs

2010-06-04 Thread Romain Francois
Le 04/06/10 12:55, dhanush a écrit : I want to know how Emacs works with R. can anyone provide me a link or manual to read? Thank you http://lmgtfy.com/?q=R+emacs The first link is what you want. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] Highlighting Text in Console

2010-06-09 Thread Romain Francois
and the FAQ's but not found anything yet. Any help greatly appreciated. Thanks. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/98Uf7u : Rcpp 0.8.1 |- http://bit.ly/c6YnCi : graph gallery collage `- http://bit.ly/bZ7ltC : inline

Re: [R] minor tick marks

2010-06-09 Thread Romain Francois
://www.inra.fr/ -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/98Uf7u : Rcpp 0.8.1 |- http://bit.ly/c6YnCi : graph gallery collage `- http://bit.ly/bZ7ltC : inline 0.3.5 __ R-help@r

Re: [R] Error when callin g C-Code

2010-06-16 Thread Romain Francois
; } } xNT[0] = xNT[0] + 1; } for(j;j ltgrid;j++) { xNi[j] = xNT[0]; } } PutRNGstate(); UNPROTECT(6); return tau; } -- Romain Francois Professional R

Re: [R] RegExp question

2010-06-16 Thread Romain Francois
within patterns. Regards, Andrej -- David Winsemius, MD West Hartford, CT -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/98Uf7u : Rcpp 0.8.1 |- http://bit.ly/c6YnCi : graph gallery collage `- http://bit.ly/bZ7ltC : inline

Re: [R] How to take the lower triangular part from a full matrix

2010-06-17 Thread Romain Francois
the time to send a reproducible example on how you make you data, i.e: x - matrix( 1:9, nr = 3, byrow = T ) See ?lower.tri x[ upper.tri(x) ] - 0 Or see ?row and ?col x[ row(x) col(x) ] - 0 Also note that ??triangular finds lower.tri Romain -- Romain Francois Professional R Enthusiast

Re: [R] tempfile problem

2010-06-17 Thread Romain Francois
for the existence of the first n tries is going to be slow. Duncan Murdoch Would it not make sense to change the signature of tempfile to this: function (pattern = file, tmpdir = tempdir(), suffix = ) and include the suffix in the does the file exist test ? Romain -- Romain Francois Professional R

Re: [R] C interface

2010-06-18 Thread Romain Francois
of the Python(x,y) distribution but I am assuming that R CMD SHLIB source.c calls the right compiler. What could the problem be? Many thanks, Michael -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/98Uf7u : Rcpp 0.8.1 |- http

Re: [R] Call by reference or suggest workaround

2010-06-19 Thread Romain Francois
( y - genMultiIndices_internal( 3L, 2L ) ) [,1] [,2] [,3] [1,]200 [2,]110 [3,]101 [4,]020 [5,]011 [6,]002 identical( x, y ) [1] TRUE Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] nested for loops

2010-07-05 Thread Romain Francois
){ for(d19 in 0:n){ for(d20 in 0:n){ list=c(d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15,d16,d17,d18,d19,d20) Probably not what you want, but this should replicate the same effect as the code you posted: list - rep( n, 20 ) Romain -- Romain Francois Professional R

Re: [R] Logical function

2010-01-14 Thread Romain Francois
- row per row. I played with a for loop (don't flame :p), with apply functions and derivatives, with a logical set, etc Can you help me find the R way, please ? Cheers, -- Olivier Deckmyn | oliv...@deckmyn.org | 06 73 40 89 88 -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30

Re: [R] Better way than an ifelse statement?

2010-01-14 Thread Romain Francois
X1 X2 X3 1 1.75308880 1 -3 2 -0.49273616 2 -1 3 -0.12446648 3 1 4 -0.06417217 4 3 Thanks for your help, Joshua -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/ -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

Re: [R] Error: object of type 'closure' is not subsettable

2010-01-18 Thread Romain Francois
(TRUE) } [[2]] function () { return(TRUE) } What am I doing wrong when I use rep()? Thanks in advance, Matthew Walker -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/KfKn : Rcpp 0.7.2 |- http://tr.im/JOlc : External pointers

  1   2   3   >