Re: [R] Excel (off-topic, sort of)

2007-08-29 Thread Philippe Grosjean
Take a look at Mathematica or Maple. This is the kind of thing you do with these languages. Best, Philippe Grosjean Alberto Monteiro wrote: Chris wrote: Typically, people in the R community are not used to the spreadsheet paradigm and need some time to be able to take advantage

Re: [R] Excel

2007-08-29 Thread Philippe Grosjean
it confusing. All the nice things you can do with Excel will never save it for the time lost to understand what a spreadsheet does (and thus, to debug it, or slightly change its calculation). Best, Philippe Grosjean Frank E Harrell Jr wrote: Rolf Turner wrote: On 30/08/2007, at 8:49 AM

Re: [R] filling a list faster

2007-07-13 Thread Philippe Grosjean
49.110 248.454 ... more than 4 minutes for your code. By the way, what is your very fast machine, that is actually four times faster than mine (gr!)? Best, Philippe Grosjean ..∞})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean

Re: [R] How to activate the R commands in SciViews

2007-07-12 Thread Philippe Grosjean
As explained on the web page from where you downloaded SciViews 0.8-9, this version is not compatible with R 2.5.0. Best, Philippe Grosjean ..∞})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology

[R] [Fwd: Re: How to activate the R commands in SciViews]

2007-07-12 Thread Philippe Grosjean
on this! Best, Philippe Grosjean ..∞})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium

Re: [R] Me again, about the horrible documentation of tcltk

2007-07-06 Thread Philippe Grosjean
For those who are interested, I just cook a little tcltkHelp() function to ease access to the Tcl/Tk documentation under Windows. This is on the Wiki discussion of the TkCommands help page at: http://wiki.r-project.org/rwiki/doku.php?id=rdoc:tcltk:tkcommands Best, Philippe Grosjean

Re: [R] Question concerning pastecs package

2007-05-25 Thread Philippe Grosjean
planctoniques. J. Exp. Mar. Biol. Ecol., 4:619-632 Kendall, M.G., 1976. Time-series, 2nd ed. Charles Griffin Co, London Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology

Re: [R] R Wiki down?

2007-05-04 Thread Philippe Grosjean
The site is up again. This was a wrong manipulation. Sorry. ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium

Re: [R] Get the difference between two matrices with different length

2007-05-04 Thread Philippe Grosjean
Hello, The answer is in one page of the R Wiki (just created to address such a question, by the way): http://wiki.r-project.org/rwiki/doku.php?id=tips:data-manip:calc_on_two_tables ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean

Re: [R] A problem with svIDE in Tinn-R?

2007-04-30 Thread Philippe Grosjean
Hello, I konw I have some corrections to do in svIDE,... I simply don't have the time right now. Will try next week. Thank for reporting the problem. Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean

Re: [R] regular expression help

2007-04-18 Thread Philippe Grosjean
gsub(^.*([[:alpha:]]).*$, \\1, vzor) ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium

Re: [R] software comparison

2007-04-16 Thread Philippe Grosjean
of the difficult cases for R 1.9.1 (for instance, improvement of the algorithms for calculating autocorrelation, ANOVA, linear regression or non linear regression)? Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean

Re: [R] Abundance data ordination in R

2007-04-02 Thread Philippe Grosjean
analysis, which uses the Chi2 distance and is adapted to abundances (it is designed to analyze contingency tables, but table of abundances, station versus species, could be considered as such a double entry contingency table in a way). Best, Philippe Grosjean Kind regards Miltinho Brazil

Re: [R] Wikibooks

2007-03-30 Thread Philippe Grosjean
deserve a good compilation on a wiki page and a redirection to it everytime the question is asked. Best, Philippe Grosjean -- ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems

Re: [R] Wikibooks

2007-03-30 Thread Philippe Grosjean
..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( ( .. Dieter

Re: [R] Fanny Clustering

2007-03-29 Thread Philippe Grosjean
1) Reduce the size of your sample (random or stratified subsampling), 2) Increase the memory of your computer available to R. Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical

Re: [R] Fanny Clustering

2007-03-29 Thread Philippe Grosjean
something like that using a Malahanobis distance, MDS, and then, stratified subsampling inside a regular grid placed on top of the MDS plot. Otherwise, I am not a specialist of unsupervised classification, and other people here could have better suggestion. Best, Philippe Grosjean 2007/3/29

Re: [R] non-linear curve fitting

2007-03-22 Thread Philippe Grosjean
Hello, If a least-square criterion is fine for you, you should use nls(). For the logistic curve, you have a convenient self-starting model available: SSlogis(). Look at: ?nls ?SSlogis Best, Philippe Grosjean

Re: [R] listing all functions in R

2007-01-15 Thread Philippe Grosjean
! This is suboptimal, and I am considering rewriting it in PHP to return R code only from the wiki server. Best, Philippe Grosjean Gavin Simpson wrote: On Sat, 2007-01-06 at 10:58 -0500, Gabor Grothendieck wrote: The arguments to the functions can differ too even if they exist on multiple

[R] How to detect if R is running on Mac OS X?

2007-01-14 Thread Philippe Grosjean
reported as unix? If yes, how do I make the difference? Thanks, Philippe Grosjean __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] A question about R environment

2007-01-08 Thread Philippe Grosjean
extensions manual, and to start implementing your own R package! Best, Philippe Grosjean François Pinard wrote: [Tong Wang] I created environment mytoolbox by : mytoolbox - new.env(parent=baseenv()). Is there anyway I put it in the search path? In a project, I often write some small

Re: [R] nonlinear quantile regression

2006-12-03 Thread Philippe Grosjean
You must specify starting conditions. PhG Ricardo Bessa wrote: Hello, I’m with a problem in using nonlinear quantile regression, the function nlrq. I want to do a quantile regression o nonlinear function in the form a*log(x)-b, the coefficients “a” and “b” is my objective. I try to use the

Re: [R] Colour-coded Editor for R Code

2006-11-06 Thread Philippe Grosjean
Hello, You have a rather large list of editor that support R syntax highlighting listed in: http://www.sciviews.org/_rgui/projects/Editors.html. Best, Philippe Grosjean Dan Bebber wrote: Jon, are you using Windows? If so, try WinEdt with library(RWinEdt). It has all the features you want

Re: [R] Progress Monitor in R / looping

2006-10-25 Thread Philippe Grosjean
This question is regularly asked. Have a look at progress() in svMisc() package (SciViews bundle). Best, Philippe Grosjean Barry Rowlingson wrote: Xiaofan Cao wrote: Hi there, I'm writing a program in R that has a few nested loops. I'd like to monitor the progress when the program

Re: [R] ts vs zoo

2006-10-12 Thread Philippe Grosjean
that the periodic signal it extracts is of frequence one. Best, Philippe Grosjean I googled for an answer but I couldn t find any. Is it really necessary to transform my zoo objects to ts? how can I fix the frequency-problem. I hope you can help me. Thank you very much in advance and best

Re: [R] ts vs zoo

2006-10-12 Thread Philippe Grosjean
... still considering that your series is long enough, which is probably the case for looking at weekly periodic signals on a one-year long series. Best, Philippe Grosjean to get there I now only took the zoo object x and made x-as.ts(x) x-ts(x, frequency=7) #to get 52 weeks(Periods

[R] [Fwd: Re: Block comments in R?]

2006-10-05 Thread Philippe Grosjean
Ooops! Sorry, I send it only to Uwe Ligges the first time. Best, Philippe Grosjean This is perhaps another solution, more elegant in the way the block comment is written... but it requires to redefine `!` and slows it a little bit because it tests first its arguments before calling .Primitive

Re: [R] Maximum length of R GUI input line?

2006-08-18 Thread Philippe Grosjean
You should put your SQL query in a variable, and use this variable in your call. Something like: MyQuery - bla bla bla MyQuery - paste(MyQuery, more bla bla) # doMyRequest(MyQuery) Best, Philippe Grosjean Eric Fegraus wrote: Hello, I'm using R 2.3.1 on Windows. I'm generating

Re: [R] classification tables

2006-08-07 Thread Philippe Grosjean
x - c(1,2,3,4,2,3,3,1,2,3) y - c(2,1,3,4,1,3,3,2,2,3) table(x, y) y x 1 2 3 4 1 0 2 0 0 2 2 1 0 0 3 0 0 4 0 4 0 0 0 1 ?table Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean

Re: [R] R and DDE (Dynamic Data Exchange)

2006-07-19 Thread Philippe Grosjean
decided to push forward in Tinn-R, but there are other implementations out there. I think that using a socket server is more reliable and it is also a cross-platform solution. So, I would personnally prefer that solution. Best, Philippe Grosjean __ R-help

Re: [R] R and DDE (Dynamic Data Exchange)

2006-07-19 Thread Philippe Grosjean
... but the internal is completelly different! Best, Philippe Grosjean Also if you are going to access DDE via COM or just COM also check out the rcom package which is similar to RDCOMClient. On 7/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: R and DDE (Dynamic Data Exchange) Dear Rusers, I run

Re: [R] R and DDE (Dynamic Data Exchange)

2006-07-18 Thread Philippe Grosjean
acquisition of data through DDE under Windows would interest a couple of users (including myself). Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems

Re: [R] cat and positioning of the output

2006-06-29 Thread Philippe Grosjean
particulary to overwrite the counter i. In package svMisc (SciViews bundle): ?progress example(progress) Best, Philippe Grosjean for(i in 1:header$M){ cat(Reading row: , i) SparseIndex[[i]] - readBin( con, integer(), n=MIndexNumber[i], size=4 ) SparseSignal[[i]] - readBin( con

Re: [R] cat and positioning of the output

2006-06-29 Thread Philippe Grosjean
repeatedly, which is done in progress() indeed. Best, Philippe Grosjean __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Continuation and parse

2006-06-28 Thread Philippe Grosjean
, you could use something like: grep(\n2:,try(parse(textConnection(ls))), silent = TRUE)) numeric(0) grep(\n2:,try(parse(textConnection(ls()), silent = TRUE)) [1] 1 Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe

Re: [R] R Reporting - PDF/HTML mature presentation quality package?

2006-06-25 Thread Philippe Grosjean
and/or contribute to the development of R2HTML if you want a solution that best fits your own needs in any case. Best, Philippe Grosjean __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] R Reporting - PDF/HTML mature presentation quality package?

2006-06-25 Thread Philippe Grosjean
that will scan an R script and do something like R2HTML. I couldn't find anything like this as the svMisc package seems to have disappeared. No, it is still in the SciViews bundle. Tell me if you have problems with it. Best, Philippe Grosjean If anyone knows of something like this or is working

[R] R Wiki - official launch!

2006-06-18 Thread Philippe Grosjean
Wiki. Browse it to discover how useful it can be for you. There is also a mailing list dedicated to R Wiki developments: R-SIG-WIKI (https://stat.ethz.ch/mailman/listinfo/r-sig-wiki). On behalf of the R Wiki creators, Philippe Grosjean

Re: [R] Functions starting with underscores

2006-06-05 Thread Philippe Grosjean
` function(x) 1 attr(,bar) [1] pow Best, Philippe Grosjean Joseph Wang wrote: I'm having problems with functions starting with underscores '_foo' - function(x) {1} seems to work but I can't assign an attribute to this function attr('_foo', 'bar') - 'pow' Any way of doing

Re: [R] SciViews and R-2.3.0; does it work yet?

2006-05-08 Thread Philippe Grosjean
of June, as I don't have much free time for now. Best, Philippe Grosjean __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] R pour débutant

2006-05-05 Thread Philippe Grosjean
version actuelle de R. Bien à vous, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium

Re: [R] Rcmdr problem - SciViews R

2006-05-02 Thread Philippe Grosjean
manually under R, everything worked fine. I was indeed not able to spot the problem, but at least, I found a solution. Look at all required libraries for Rcmdr in his DESCRIPTION file, and install them manually (Packages - Install package(s)...). Best, Philippe Grosjean John Fox wrote: Dear

Re: [R] Rcmdr problem - SciViews R

2006-05-02 Thread Philippe Grosjean
Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Grosjean Sent: Tuesday, May 02, 2006 3:43 PM To: John Fox Cc: R-help

Re: [R] www.r-project.org

2006-04-25 Thread Philippe Grosjean
for (microchirurgical) propositions to actualize the presentation of the R Web site, and I will follow the decision of the R Core Team on this topic to make the R Wiki looking similar. Best, Philippe Grosjean Romain Francois wrote: Dear R users and developpers, My question is adressed to both of you

Re: [R] www.r-project.org

2006-04-25 Thread Philippe Grosjean
. After 14 hours continuous programming on R, I think that everybody starts to present serious troubles :-( OK... back to work. I still have 3 or 4 hours to finish this $¤!§çà program... Philippe Grosjean Jonathan Baron wrote: I volunteer to attempt this, but only after I get my grades in (May 8

Re: [R] Considering port of SAS application to R

2006-04-21 Thread Philippe Grosjean
, if you just need to access those data (no complex database operations required) is SQLite. There is an R package to connect to such a database without extra software needed. Thus, very convenient. Best, Philippe Grosjean

Re: [R] cat(), Rgui, and support for carriage return \r...

2006-03-29 Thread Philippe Grosjean
. Perhaps is it not possible, or even, not desirable to get this result for other situations. Best, philippe Grosjean with the cursor on the 'd'. There is no longer a left-right divide between system output and user input, as you can have output to the right of user input. The previous

Re: [R] S-PLUS 8 beta program [repost]

2006-03-29 Thread Philippe Grosjean
just curious about the solution you found. Best regards, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Pentagone (3D08

Re: [R] S-PLUS 8 beta program [repost]

2006-03-29 Thread Philippe Grosjean
David Smith wrote: The GPL code is available as separately-downloaded packages for S-PLUS, as has been done for many years. My own Oswald library for S-PLUS was published under the GPL in 1997, for example, and many other authors produce open-source libraries for S-PLUS under a variety of

Re: [R] How to create a directoy with R

2006-03-27 Thread Philippe Grosjean
See ?dir.create, and take care at the 'recursive' argument in case you have to create several subdir levels at once. Best, Philippe Grosjean Sarah Goslee wrote: I think you need to use system(mkdir) or whatever is appropriate for your OS. Making directories is a function of the OS, not of R

Re: [R] MenuRead() Question

2006-03-26 Thread Philippe Grosjean
~~ ls() ||- ||Path ~~ search() Note also that KSesnMain must point to a valid Tk window previously constructed. Best, Philippe Grosjean Keith Chamberlain wrote: Dear List-mates, I think the difficulty I'm having is localized to the MenuType() call made from within MenuRead

Re: [R] RGui: windows-record and command history

2006-03-23 Thread Philippe Grosjean
devices at once. On my todo list (but not for 2.3.0) is the possibility of setting a default history length, perhaps defaulting to saving the last 2 or 3 pages. That would be really great! Philippe Grosjean b) Scrolling up in RGui (windows 2000) to see past commands is nice

Re: [R] Classifying time series by shape over time

2006-03-22 Thread Philippe Grosjean
$hits, id1$hitspred) # H0 not rejected ks.test(id2$hits, id2$hitspred) # H0 rejected Best, Philippe Grosjean Kjetil Brinchmann Halvorsen wrote: Andreas Neumann wrote: Dear all, I have hundreds of thousands of univariate time series of the form: character seriesid, vector of Date, vector

Re: [R] which.minimums not which.min

2006-03-20 Thread Philippe Grosjean
Fred J. wrote: Philippe Grosjean [EMAIL PROTECTED] wrote: What Fred is looking for is local minima/maxima, also known as turning points, or pits/peaks in a series. You can look at ?turnpoints in pastecs library. x - c(1:4,0:5, 4, 11) x [1] 1 2 3 4 0 1 2 3 4 5 4 11

Re: [R] Platform independent dialogs menus?

2006-03-20 Thread Philippe Grosjean
package, you can do: library(svWidgets) tkWinAdd(MyTkWindow, title = Menu window, pos =-40+20) MenuReadPackage(MyPackage) ... and you got all your menus configured at once (for MyTkWindows + RGui console + RGui console popup menu Best, Philippe Grosjean Please advise, KeithC

Re: [R] Platform independent dialogs menus?

2006-03-20 Thread Philippe Grosjean
to start doing it. There are still many improvements to be done on the actual Tinn-R. For instance, Jose-Claudio is currently working on nice Sweave extensions for Tinn-R. Best, Philippe Grosjean Respecftully, KeithC. -Original Message- From: Philippe Grosjean [mailto:[EMAIL

Re: [R] cat(), Rgui, and support for carriage return \r...

2006-03-19 Thread Philippe Grosjean
. (actually, this function repeatedly uses \b which works on all system tested (Linux console, RTerm, RGui, SciViews-R). Best, Philippe Grosjean Duncan Murdoch wrote: On 3/17/2006 9:44 AM, Jeffrey Racine wrote: Hi, and thanks in advance for your time. Background - I am working on a package and wish

Re: [R] Additional arguments in S3 method produces a warning

2006-03-16 Thread Philippe Grosjean
with the original definition, even if 'e' or 'n' did not mean anything special for my own use. Ironically, doing a quick search on R, it appears that extract() is defined only in pastecs library... Best, Philippe Grosjean Martin Maechler wrote: HenrikB == Henrik Bengtsson [EMAIL PROTECTED] on Thu

Re: [R] matrix indexing

2006-03-15 Thread Philippe Grosjean
This is really elementary indexing in S language: matA[matB] Best, Philippe Grosjean tom wright wrote: Can someone please give me a pointer here. I have two matrices matA A B C 1 5 2 4 2 2 4 3 3 1 2 4 matB

Re: [R] which.minimums not which.min

2006-03-15 Thread Philippe Grosjean
optimize this code. This is just a rough solution! Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Pentagone (3D08

[R] Additional arguments in S3 method produces a warning

2006-03-15 Thread Philippe Grosjean
to them). I am a little bit lost. Could someone help me, please. Best, Philippe Grosjean -- ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut

Re: [R] lapply vs. for (was: Incrementing a counter in lapply)

2006-03-15 Thread Philippe Grosjean
, that is, the favored approach in S language. Take care, however, that the optimal approach is not just to replace for() loops with apply() and co, but to *rethink* completelly your algorithm in a vectorized way. This often ends up with a very different solution! Best, Philippe Grosjean Gregor Gorjanc

Re: [R] R GUI's on a Mac?

2006-03-14 Thread Philippe Grosjean
Anyone who responds to Berton, please, CC me: I am also interested. Best, Philippe Grosjean Berton Gunter wrote: Folks: A question for R users on Macs. AFAIK, R's Tcl/TK tools allow one to build GUI interfaces to R's functionality across all platforms. My question: How well do the TK

Re: [R] irregular time series

2006-03-14 Thread Philippe Grosjean
One solution is to convert an irregular time series into a regular one, interpolating missing values. Obviously, it is only acceptable if the number of missing items is low. See ?regul in pastecs, for instance. Best, Philippe Grosjean alessandro carletti wrote: Hi everybody, I'm currently

Re: [R] Multi-line paste function

2006-03-14 Thread Philippe Grosjean
-1.9b.Date_Last_change ) If you really want a custom function for that, then, define: multi.line.paste - function(str) gsub(\n, , str) Best, Philippe Grosjean Lapointe, Pierre wrote: Here's my contribution to R. When R interacts with external programs (MySQL, cURL, etc.), it often requires

Re: [R] Multi-line paste function

2006-03-14 Thread Philippe Grosjean
(\, , paste( SELECT * FROM estimates3 a, newtable b WHERE a.Ticker=b.Ticker AND a.Fiscal_Year=b.Fiscal_Year AND a.EPSb.EPS AND a.Date_Last_change_or_conf-,variable,b.Date_Last_change_or_conf , sep=)) Philippe Grosjean __ R-help@stat.math.ethz.ch mailing

Re: [R] count pixels of same color in pixmap object?

2006-03-09 Thread Philippe Grosjean
on these images to external programs, because R is not designed to handle them efficiently. Best, Philippe Grosjean Roger Bivand wrote: On Thu, 9 Mar 2006, Christian Jost wrote: Dear all, I try to figure out how to use R to count the number of pixels of the same color in some gray-level

Re: [R] how to close all windows?

2006-02-21 Thread Philippe Grosjean
?graphics.off is for graphic windows only. You don't tell us, but I assume you are working with RGui under Windows. If you don't want many help windows, you can still change it in Edit - GUI preferences - Pager style - single window. Best, Philippe Grosjean Uwe Ligges wrote: Michael wrote

Re: [R] Transferring R results to word prosessors

2006-02-11 Thread Philippe Grosjean
be eliminated on the mailing list. so, ask me if you need it). Best, Philippe Grosjean P.S.: the formatting of text and tables in the views is managed through CSS files, independently from Word styles. So, you would presumably like to make a CSS file in accordance with the style you want in your

Re: [R] Tranferring R results to word prosessors

2006-02-09 Thread Philippe Grosjean
I have added several convenient methods for sending data directly from R to Microsoft Word (report() function) in the svViews package (SciViews bundle). However, I still have to upload it to CRAN. I do it right now. It should be available in a couple of days. Best, Philippe Grosjean Romain

Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Philippe Grosjean
set.seed(1) R y - rnorm(500, 0, 1) R z - rnorm(500, 0, 1) R all(x == c(y,z)) [1] TRUE Romain Indeed! The pseudo-random number generator is initialized at the same state, and thus, returns the same 1000 pseudo-random numbers in both cases. So, no differences. Best, Philippe Grosjean

Re: [R] problem with simple if() statement

2006-02-06 Thread Philippe Grosjean
in if (seq[i] = Sincerely, Norman Goodacre Please, read An Introduction to R provided with any version of R. The correct syntax for an equality condition is ==, not =, so: if (seq[i] == A) Best, Philippe Grosjean __ R-help

Re: [R] saving a character vector

2006-02-05 Thread Philippe Grosjean
R Wiki. This is the reson why this email is so long: I took a good occasion to speak about code optimization). Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology

Re: [R] R socket communication

2006-02-05 Thread Philippe Grosjean
See package svSocket in the SciViews bundle. It uses a socket server written in tcltk and it is not blocking the command line. Philippe Grosjean pau carre wrote: Hello, I tried to code a R socket server but I did not succeed. The problem is that once the R socket server is created, I call

Re: [R] R command line: need intelligent command history recall?

2006-02-04 Thread Philippe Grosjean
there is IDEs that are better than Tinn-R. Thanks a lot! Please, submit a bug report to Tinn-R authors, if you want to see it improved. Best, Philippe Grosjean __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] matlab-like constant matrix initialization?

2006-01-30 Thread Philippe Grosjean
Sorry Michael, but I don't understand your question. If you want to intialize a constant matrix (there is not such thing in R, just create a numerical matrix and use it without changing its values), you just use matrix(). For help and arguments of the function, type: ?matrix Best, Philippe

Re: [R] yet another vectorization question

2006-01-30 Thread Philippe Grosjean
Hello, Not exactly the same. By the way, why do you use do.call()? Couldn't you do simply: expand.grid(split(t(replicate(3, c(0, 1, NA))), 1:3)) Best, Philippe Grosjean Jacques VESLOT wrote: this looks similar: do.call(expand.grid,split(t(replicate(3,c(0,1,NA))),1:3)) Adrian DUSA

Re: [R] Help with R: functions

2006-01-30 Thread Philippe Grosjean
~ visual24, data = dats) # Change style and color of the line (thanks to '...') st(visual52 ~ visual24, data = dats, lty = 2, col = red) Best, Philippe Grosjean Pryseley Assam wrote: Hello R-users I am new to R and trying to write some functions. I have problems writing functions that takes

Re: [R] What's wrong with Rcmdr?

2006-01-27 Thread Philippe Grosjean
... that is, not the latest ones). I still have to upload latest SciViews version compatible with both latest versions. Best, Philippe Grosjean On 1/26/06, John Fox [EMAIL PROTECTED] wrote: Dear Michael, To elaborate slightly: You can't load the same package twice in an R session. As mentioned, used Commander

Re: [R] [Q] extracting lower diagonal elements of a matrix

2006-01-27 Thread Philippe Grosjean
Try: data[lower.tri(data)] (the same as data[col(data) row(data)], but using the dedicated function). Best, Philippe Grosjean Christos Hatzis wrote: Try s - matrix(rnorm(36,0,1),nrow=6) s[col(s)row(s)] Courtesy of VR. -Christos -Original Message- From: [EMAIL

Re: [R] regular expressions, sub

2006-01-27 Thread Philippe Grosjean
) formulaTransform(Form2) plot(1:3, type = n) text(2, 2, formulaTransform(Form2, TRUE)) # ... but this could be refined even more! Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology

Re: [R] What's wrong with Rcmdr?

2006-01-26 Thread Philippe Grosjean
I am afraid that you must be a little bit more verbose on your problem. You do not provide enough information to spot your problem. Best, Philippe Grosjean Michael wrote: Hi all, I successfully installed Rcmdr. And I type library(Rcmdr), nothing happened; or if I select menu item load

Re: [R] reducing learning curves?

2006-01-26 Thread Philippe Grosjean
, then look at http://www.sciviews.org/Tinn-R. That editor is definitely for you! Best, Philippe Grosjean Thanks a lot! On 1/25/06, Michael [EMAIL PROTECTED] wrote: Hi all, I am really new to the R language. I am a long time Matlab and C++ user and I was forced to learn R because I am taking

Re: [R] efficiency with %*%

2006-01-26 Thread Philippe Grosjean
, what did you decided to do during the next 30 milliseconds you will save by using crossprod() instead of x%*%y? (joke) Best, Philippe Grosjean P.S.: Uwe, perhaps you should consider buying a faster computer, isn't it? :-() Uwe Ligges wrote: [EMAIL PROTECTED] wrote: Hi, x and y are (numeric

Re: [R] reducing learning curves?

2006-01-25 Thread Philippe Grosjean
Best, Philippe Grosjean Michael wrote: Hi all, I am really new to the R language. I am a long time Matlab and C++ user and I was forced to learn R because I am taking a statistics class. I am seeking to reduce the learning curve to as smooth as possible. Are there any addon/plug

Re: [R] read.table problem

2006-01-25 Thread Philippe Grosjean
Hello, Well... the error message is explicit enough: number of items read is not a multiple of the number of columns means that you do not have the right number of items around line 11975 (not the same number as in the 11974 previous lines)! This is an error in you file. Best, Philippe

Re: [R] paste - eliminate spaces?

2006-01-25 Thread Philippe Grosjean
Just read more carefully the online help for paste (?paste). You have: sep: a character string to separate the terms. and the default value for sep is (a space). So, just use: paste(test, 1, sep = ) Best, Philippe Grosjean r user wrote: I am trying to combine the value of a variable

Re: [R] Can R handle medium and large size data sets?

2006-01-24 Thread Philippe Grosjean
35 9.4 35 9.4 Vcells 3062785 23.49317558 71.1 9062793 69.2 # Less than 30 Mb used (with a peak at 80 Mb) Isn't it manageable? Best, Philippe Grosjean Gueorgui Kolev wrote: Dear R experts, Is it true that R generally cannot handle medium sized data sets(a couple of hundreds

Re: [R] Image Processing packages

2006-01-23 Thread Philippe Grosjean
). Best, Philippe Grosjean Thomas Kaliwe wrote: Hi, I've been looking for Image Processing packages. Thresholding, Edge Filters, Dct, Segmentation, Restoration. I'm aware, that Octave, Matlab etc. would be a good address but then I'm missing the statistical power of R. Does anybody know

Re: [R] Image Processing packages

2006-01-23 Thread Philippe Grosjean
will look at this tomorrow. Best, Philippe Grosjean Quoting Philippe Grosjean [EMAIL PROTECTED]: Hello, There are a couple of things for image processing in R (look at pixmap and Rimage, for instance). However, R is *not* a good software for processing images (nor is Matlab, Octave, IDL: they use

Re: [R] In which application areas is R used?

2006-01-23 Thread Philippe Grosjean
You could probably add: - Fisheries modelling - Oceanography Although there is still resistance of other software there, R is gaining more and more users in these fields. Best, Philippe Grosjean P.S.: if you need actual examples, just ask... ;-) John Maindonald wrote: If anyone has a list

Re: [R] Easy, Robust and Stable GUI???

2006-01-23 Thread Philippe Grosjean
. Best, Philippe Grosjean Achim Zeileis wrote: On Mon, 23 Jan 2006 12:44:49 -0800 (PST) pat_primate (sent by Nabble.com) wrote: I know that this isn't really a R help question, but I am a psychology student at TRU (tru.ca) and my psych department is going to be switching statistical software

Re: [R] function for rowMedian?

2006-01-22 Thread Philippe Grosjean
numeric* data in a data frame? sapply(DF, median) which considers the list and then simplifies the results down to a vector or matrix,... or apply(DF, 2, median) which first convert into a matrix and then do the calculation on it? Best, Philippe Grosjean I didn't understand the question

Re: [R] function for rowMedian?

2006-01-20 Thread Philippe Grosjean
should be as Andy proposes you, or, if you really want a colMedian function: colMedian - function(x, na.rm = FALSE) apply(x, 1, median, na.rm = na.rm) Best, Philippe Grosjean Liaw, Andy wrote: apply(x, 1, median) should do it. If not, you need to explain why. Andy -Original

[R] R Wiki and R-sig-wikii

2006-01-18 Thread Philippe Grosjean
is warmly welcome to participate and to subscribe to R-sig-wiki. For the others, we will send an announcement for the final R Wiki on this list when it will be ready. Hereunder is a (rather long) summary of the discussion we had so far on this topic. Best, Philippe Grosjean

Re: [R] A comment about R:

2006-01-05 Thread Philippe Grosjean
and paste their ideas to new pages in the Wiki. Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Pentagone (3D08

Re: [R] A comment about R:

2006-01-03 Thread Philippe Grosjean
to the manipulation of a single data frame (the so-called active dataset) + optionally one or two model objects. Just look at all you can do just with one active data frame with R Commander, and you will realize that it is perfectly manageable to learn R that way. Best, Philippe Grosjean Rau, Roland

Re: [R] A comment about R:

2006-01-02 Thread Philippe Grosjean
paper... Best, Philippe ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Pentagone (3D08) ( ( ( ( (Academie Universitaire Wallonie

Re: [R] Age of an object?

2005-12-14 Thread Philippe Grosjean
(the question was about last access of an object, not about its creation date, so 'last-changed' is a better attribute here). If you access the object directly with, let's say, [EMAIL PROTECTED] - newvalue, that attribute is not updated, isn't it? Best, Philippe Grosjean Martin Maechler, ETH Zurich

Re: [R] R for Windows server

2005-12-14 Thread Philippe Grosjean
more than 50% of CPU use for RGui.exe. Thus, I can imagine that, if you have a bi-processor hyperthreading config, it could report only 25% of CPU use. Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean

  1   2   3   >