Re: [R] Problem of vocabulary : retrieve element of a list of a list

2007-08-31 Thread jiho
a week at most and is very rewarding in the long term. An introduction in english: http://cran.r-project.org/doc/manuals/R-intro.pdf A nice one in French http://www.cran.r-project.org/doc/contrib/Paradis-rdebuts_fr.pdf Cheers, JiHO --- http://jo.irisson.free.fr/ ___

Re: [R] Excel

2007-08-30 Thread jiho
se everyone to use Gnumeric then: - entries such as 2005/06/08 are interpreted as date and show as 8/6/2005. but even if you change them to 8/7/05 for example they will be written in the csv in your original format, with the change included (i.e. 2005/07/08 here) - en

[R] Variance explained by cluster analysis

2007-08-28 Thread jiho
s? Is there anything else that I could compute? More generally, am I totally wrong in comparing these two methods? Are there some references particularly appropriate to this? (NB: I am already hunting down the Kaufman, L. and Rousseeuw book) Thank you in advance for your help. JiHO ---

[R] superposing lattice plots

2007-08-17 Thread jiho
s the coordinates vectors other than by "unrolling" the matrix in a data.frame: x y mat 1 1 0.125 1 2 0.1367 1 3 0.2345 and using mat ~ x*y ? Thank you in advance. Sincerely, JiHO --- http://jo.

Re: [R] apply, lapply and data.frame in R 2.5

2007-07-30 Thread jiho
On 2007-July-30 , at 12:20 , Prof Brian Ripley wrote: > On Mon, 30 Jul 2007, jiho wrote: >> A recent (in 2.5 I suspect) change in R is giving me trouble. I want >> to apply a function (tolower) to all the columns of a data.frame and >> get a data.frame in return. >>

[R] apply, lapply and data.frame in R 2.5

2007-07-30 Thread jiho
object in R and applying a function to each of its columns/variables appears to me as something one would want to do quite often. Thank you in advance. JiHO --- http://jo.irisson.free.fr/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

[R] x,y,z table to matrix with x as rows and y as columns

2007-07-24 Thread jiho
ou in advance for your help. JiHO --- http://jo.irisson.free.fr/ __ 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 commented, mi

Re: [R] Problem with Weighted Variance in Hmisc

2007-06-01 Thread jiho
than 10{\%}, and errors were smaller at sampling sites with > 100 samples than at those with < 100 samples.}} Cheers, JiHO --- http://jo.irisson.free.fr/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-he

Re: [R] Problem with Weighted Variance in Hmisc

2007-05-31 Thread jiho
2 2 2 2 2 2 2 2 2 2 > wtd.var(a,b) [1] 8.68421 # all weights equal 2 <=> there are two repeats of each element of a > var(c(a,a)) [1] 8.68421 > wtd.var(a,b,normwt=T) [1] 9.17 > var(a) [1] 9.17 Cheers, JiHO --- http://jo.irisson.free.fr/ ___

Re: [R] Comparing multiple distributions

2007-05-31 Thread jiho
admit I don't really understand what you mean. Thank you very much again. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jiho Subject: Re: [R] Comparing multiple distributions Nobody answered my first request. I am sorry if I did not explain my prob

Re: [R] Comparing multiple distributions

2007-05-31 Thread jiho
07-May-21 , at 19:26 , jiho wrote: I am studying the vertical distribution of plankton and want to study its variations relatively to several factors (time of day, species, water column structure etc.). So my data is special in that, at each sampling site (each observation), I don't ha

Re: [R] plot(......,new=T) vs. par(new=T)

2007-05-22 Thread jiho
's time to take a re-read tour. Thank you. JiHO --- http://jo.irisson.free.fr/ __ 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 pr

[R] plot(......,new=T) vs. par(new=T)

2007-05-21 Thread jiho
help that ... arguments are passed to par. What am I missing? JiHO --- http://jo.irisson.free.fr/ __ 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-

Re: [R] quartz() on MAC OSX

2007-05-21 Thread jiho
more freedom and you'll probably enjoy the Mac afterwards. If you want a nice terminal replacement try iTerm (and tweak a bit the appearance settings to make it easier on the eye). If you want a very nice text editor (which can actually interact with RGUI or send text to a Terminal

[R] Comparing multiple distributions

2007-05-21 Thread jiho
ist will help me. Thank you very much in advance. JiHO --- http://jo.irisson.free.fr/ __ 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] displaying intensity through opacity on an image (ONE SOLUTION)

2007-05-19 Thread jiho
or PS) with Gimp it will "rasterize" it: convert the vector information to pixels. You'll be able to save it to many formats but it will still be pixel based (zooming on it will reveal pixels while it's not true with vector based formats). http://en.wikipedia.org/wi

Re: [R] lapply not reading arguments from the correct environment

2007-05-18 Thread jiho
uot;,"name2")] does not work while subset(x,select=-c("name1","name2")) works (it eliminates columns named name1 and name 2 from x). But I guess in most cases an other syntax can achieve the same thing with [, like: x[,-which(names(x)%in%c("na

Re: [R] lapply not reading arguments from the correct environment

2007-05-18 Thread jiho
On 2007-May-18 , at 17:09 , Thomas Lumley wrote: > On Fri, 18 May 2007, jiho wrote: >> I am facing a problem with lapply which I ''''think''' may be a bug. >> This is the most basic function in which I can reproduce it: >> >&g

[R] lapply not reading arguments from the correct environment

2007-05-18 Thread jiho
it outside the function and then execute the function: > fooCollumn=1 > myfun() it works but uses the value defined in the general environment and not the one defined in the function. This is with R 2.5.0 on both OS X and Linux (Fedora Core 6) What did I do wrong? Is this indeed