Re: [R] Increase R precision

2010-10-27 Thread Alain Guillet
]] __ R-help@r-project.org 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, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist

Re: [R] Increase R precision

2010-10-27 Thread Alain Guillet
*From:* Alain Guillet alain.guil...@uclouvain.be *To:* Alaios ala...@yahoo.com *Cc:* Rhelp r-help@r-project.org *Sent:* Wed, October 27, 2010 1:58:46 PM *Subject:* Re: [R] Increase R precision Hi, It is not a problem of precision

Re: [R] in continuation with the earlier R puzzle

2010-07-12 Thread Alain Guillet
use C or any other language. The reason R is powerful is becasue it can handle large vectors without each element being manipulated? Please let me know where I am wrong. for(i in 1:length(news1o)){ + if(news1o[i]s2o[i]) + s[i]-1 + else + s[i]--1 + } -- Alain Guillet Statistician and Computer

Re: [R] a small puzzle?

2010-07-12 Thread Alain Guillet
1 and only the first element will be used s [1] -1 length(s) [1] 1 str(news1o) num [1:3588] 891 890 890 888 886 ... str(s2o) num [1:3588] 895 892 890 888 885 ... -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie

Re: [R] par(uin) ?

2010-07-19 Thread Alain Guillet
) bra - bra %*% diag(c(1/ux, 1/uy)) bra - t(t(bra) + c(x1, y1)) bra } -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50

Re: [R] how to write legend of a plot

2010-07-22 Thread Alain Guillet
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50

Re: [R] Plot of a subset of a data.frame()

2010-07-26 Thread Alain Guillet
. This seems to happen when the x-axis contains strings rather than numbers. is there a way out? Best regards, /Steffen -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel

Re: [R] Concatenate a mix of numbers and letters to create a vector name

2010-07-26 Thread Alain Guillet
, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50 __ R-help@r-project.org mailing list https

Re: [R] Substring of a character column

2010-08-04 Thread Alain Guillet
be glad for any help! Thanks in advance. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50 __ R-help@r-project.org

Re: [R] save plot

2010-08-04 Thread Alain Guillet
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316

Re: [R] Difference Between R: wilcox.test and STATA: signrank

2010-08-09 Thread Alain Guillet
]] __ R-help@r-project.org 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, minimal, self-contained, reproducible code. -- Alain Guillet Statistician

Re: [R] Where the data file is stored?

2010-08-12 Thread Alain Guillet
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348

Re: [R] Determining the length of unique items in a vector

2010-08-20 Thread Alain Guillet
, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50 __ R-help@r-project.org mailing list https

Re: [R] Determining the length of unique items in a vector

2010-08-20 Thread Alain Guillet
gave you something really different; I might have wrongly understood your question. HTH, Ivan Le 8/20/2010 12:32, Alain Guillet a écrit : Hi, You can try sapply(levels(as.factor(dat1)),nchar) Alain On 20-Aug-10 12:01, Ron Michael wrote: Dear all, let suppose I have following vector

Re: [R] Kolmogorov Smirnov p-values

2010-09-02 Thread Alain Guillet
Hi, Are you sure you don't want to do ks.test(y, punif, min=0, max=1, alternative=greater) instead of what you tried? Alain On 02-Sep-10 15:52, Samsiddhi Bhattacharjee wrote: ks.test(y, runif, min=0, max=1, alternative=greater) -- Alain Guillet Statistician and Computer Scientist

Re: [R] MATLAB vrs. R

2010-10-11 Thread Alain Guillet
and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50

Re: [R] plot discriminant analysis

2009-10-14 Thread Alain Guillet
, __ R-help@r-project.org 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, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist

Re: [R] Discriminant plot

2009-10-15 Thread Alain Guillet
-- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50 __ R-help@r-project.org mailing list

Re: [R] Discriminant plot

2009-10-16 Thread Alain Guillet
. Is not the case with my data, if you compare the original classes with those returned by predict(), the are different. I'm really confused now... Regards, Alejo 2009/10/15, Alain Guillet alain.guil...@uclouvain.be mailto:alain.guil...@uclouvain.be: Hi Alejo, According to my

Re: [R] Odp: ^ operator

2009-11-16 Thread Alain Guillet
-project.org 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, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique

Re: [R] Switch Help

2009-11-18 Thread Alain Guillet
:Diagnosis,\n) # function does df = cat(df:Don't Forget,\n) BUT IT IS NOT WORKING FOR ME. Please help:-) -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20

Re: [R] Simple Function doesn't work?

2009-11-27 Thread Alain Guillet
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50

[R] Problem with the recode function

2010-06-15 Thread Alain Guillet
using R 2.11.1 with Rcmdr 1.5-5 on Windows Vista. Regards, Alain -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50

Re: [R] Problem with the recode function

2010-06-15 Thread Alain Guillet
McMaster University Hamilton, Ontario, Canada web: socserv.mcmaster.ca/jfox -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Alain Guillet Sent: June-15-10 10:58 AM To: r-help@r-project.org Subject: [R] Problem

Re: [R] Problem with the recode function

2010-06-16 Thread Alain Guillet
Alain, -Original Message- From: Alain Guillet [mailto:alain.guil...@uclouvain.be] Sent: June-15-10 12:25 PM To: John Fox Cc: r-help@r-project.org Subject: Re: [R] Problem with the recode function I found out what the problem is: when I start R Commander, some plug-ins

Re: [R] how to label individuals with FactoMiner ?

2010-02-24 Thread Alain Guillet
deleted]] __ R-help@r-project.org 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, minimal, self-contained, reproducible code. -- Alain Guillet

[R] Batch problem

2009-06-26 Thread Alain Guillet
computer with R-2.9.1 but this problem doesn't appear with R-1.9.1 on the same machine. Is anything wrong in the syntax of my bat file? Thanks. Regards, Alain -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain Bureau d.126 Voie du

Re: [R] principal component analysis for class variables

2009-08-03 Thread Alain Guillet
(D, scan = FALSE, nf = 2) Error in v * row.w : non-numeric argument to binary operator Does someone has suggestions? Thanks, Andy -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain Bureau d.316 Voie du Roman Pays, 20 B-1348

Re: [R] how to set rownames / colnames for matrices in a list

2008-09-22 Thread Alain Guillet
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist Institut de statistique - Université catholique de Louvain Bureau d.126 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel

Re: [R] tapply changing order of factor levels?

2009-05-06 Thread Alain Guillet
-help@r-project.org 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, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de

Re: [R] tapply changing order of factor levels?

2009-05-06 Thread Alain Guillet
. Regards. On Wed, May 6, 2009 at 7:35 PM, Alain Guillet alain.guil...@uclouvain.be mailto:alain.guil...@uclouvain.be wrote: Hi, I don't believe the problem is related to tapply. I would say it is because of the factor. In fact, the order of a factor is given by the alphanumerical order

[R] Is a point into an ellipse

2009-04-08 Thread Alain Guillet
to the drawn ellipse. Regards, Alain -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain Bureau d.126 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50 __ R

Re: [R] turning list into vector/dataframe

2009-04-10 Thread Alain Guillet
to turn this into a vector but I don't seem to be able to do that! Any ideas on how to turn this list into a dataframe would be really appreciated :) Thanks in advance Melissa -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain

Re: [R] Comparing two regression line slopes

2009-04-15 Thread Alain Guillet
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain Bureau d.126 Voie du Roman Pays, 20 B-1348 Louvain

Re: [R] creating a vector of sums

2009-04-28 Thread Alain Guillet
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université catholique de Louvain

Re: [R] add labelled contour lines to filled.contour plot

2008-10-01 Thread Alain Guillet
Look at contourplot in the lattice library. There is an example doing what you want. Alain Guillet Mark wrote: Is it possible to add labelled contour lines to filled.contour plot ? [[alternative HTML version deleted]] __ R-help@r

Re: [R] Incorrect order

2008-10-29 Thread Alain Guillet
(a) [1] 3 1 2 4 rank(a) [1] 2 3 1 4 Alain lll73 wrote: I am using the order function and the result seems to be incorrect: a-c(20,30,15,40) order(a) [1] 3 1 2 4 Any suggestions? Thanks, Laura -- Alain Guillet Statistician and Computer Scientist Institut de

Re: [R] Basic question on concatenating factors

2008-11-21 Thread Alain Guillet
, EC __ R-help@r-project.org 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, minimal, self-contained, reproducible code. -- Alain

Re: [R] R and SPSS

2008-11-27 Thread Alain Guillet
!) to integrate it in SPSS? I would doubt you could do this, but for the least provide commented, minimal, self-contained, reproducible code. It would help if you were more specific. Liviu -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique - Université

Re: [R] How to extract one of four plots in a linear regression model

2010-02-25 Thread Alain Guillet
Hi, You can extract a plot in using the option which in specifying the number of the plot (from 1 to 6). For example: plot(lm.D9, which=1) Regards, Alain Guillet On 25-Feb-10 16:50, FMH wrote: Dear All, A linear regression model could be fitted by using lm function and the plot

Re: [R] two questions for R beginners

2010-02-26 Thread Alain Guillet
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, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - Institut de statistique

Re: [R] How to sum a list of matrices ?

2010-03-10 Thread Alain Guillet
/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B

Re: [R] Summing with NA

2010-03-24 Thread Alain Guillet
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, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau

Re: [R] NAs are not allowed in subscripted assignments

2010-04-09 Thread Alain Guillet
sure I'm missing a simple solution, but can't seem to see it, Any help, as always, greatly appreciated, Paul -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32

Re: [R] terminating function

2010-04-09 Thread Alain Guillet
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30

Re: [R] NAs are not allowed in subscripted assignments

2010-04-09 Thread Alain Guillet
Sorry I forgot to add that you don't need the for loop: new[new5.5] - NA new [1] 5 5 5 5 NA Alain On 09-Apr-10 11:23, Paul Chatfield wrote: new-c(rep(5,4),6) for (i in 1:6) {new[new[i]5.5][i]-NA} -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université

Re: [R] How to arrange the data

2010-12-17 Thread Alain Guillet
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain http://www.uclouvain.be/smcs Bureau c.316 Voie du

Re: [R] adding an ellipse to a PCA plot

2011-06-06 Thread Alain Guillet
__ R-help@r-project.org 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, minimal, self-contained, reproducible code. -- Alain Guillet Statistician

Re: [R] Remove levels

2013-06-13 Thread Alain Guillet
Hi, Without more information I guess your problem is that the level name still exists in the factor whereas it doesn't appear anymore in the factor. If so, try droplevels. Alain Guillet On 13/06/13 14:02, Shane Carey wrote: I have a dataframe consisting of factors in one column. Im trying

Re: [R] Introduction to R. Any such documentation in Vietnamese?

2013-03-20 Thread Alain Guillet
There is a contributed section on the http://cran.r-project.org/. Go to it, there is a vietnamese document to introduce R. Alain Guillet On 20/03/2013 02:06, Peter Alspach wrote: Dear fellow users Are there any Vietnamese language resources for beginners of R? If so, I would be interested

Re: [R] rename columns with pattern

2015-01-12 Thread Alain Guillet
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. . -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain http://www.uclouvain.be/smcs Bureau c.316 Voie du Roman Pays, 20 (bte L1.04.01) B-1348

[R] ggplot2 - unexpected beahviour with facet_grid

2016-08-04 Thread Alain Guillet
e (and not attached): [1] Rcpp_0.12.5 lattice_0.20-33 digest_0.6.9 MASS_7.3-45 grid_3.3.1 [6] plyr_1.8.4 nlme_3.1-128 gtable_0.2.0 magrittr_1.5 scales_0.4.0 [11] stringi_1.1.1reshape2_1.4.1 Matrix_1.2-6 labeling_0.3 tools_3.3.1 [16] stringr_1.0.0munsell_0.4.3

Re: [R] Upgrade R 3.2 to 3.3 using tar.gz file on Ubuntu 16.04

2016-09-14 Thread Alain Guillet
__ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code. . -- Alain Guillet Statistician

Re: [R] using read.csv2()

2016-09-29 Thread Alain Guillet
ww.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. . -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain http://www.uclouvain.be/smcs Bureau c.316 Voie du Roman Pays, 20 (bte L1.0

[R] Aggregate behaviour inconsistent (?) when FUN=table

2018-02-06 Thread Alain Guillet
e result is not completely compatible with the expectation of result we can have according to the table help? Or would it be possible to have the same results independently of the vector type? This post was rejected on the R-devel mailing list so I ask my question here as suggested.

Re: [R] Aggregate behaviour inconsistent (?) when FUN=table

2018-02-06 Thread Alain Guillet
of print(). Bill Dunlap TIBCO Software wdunlap tibco.com <http://tibco.com> On Tue, Feb 6, 2018 at 12:20 AM, Alain Guillet <alain.guil...@uclouvain.be <mailto:alain.guil...@uclouvain.be>> wrote: Dear R users, When I use aggregate with table as FUN, I get

[R] table and unique seems to behave differently

2019-12-10 Thread Alain Guillet
output which contains "3.4 3.4", table has only one cell for 3.4. Can anybody know why I get results that look like incoherent between the two functions? Best regards, Alain Guillet -- platform x86_64-pc-linux-gnu arch

Re: [R] table and unique seems to behave differently

2019-12-10 Thread Alain Guillet
Another finding for me today: dput doesn't write exactly the vector that creates the problem. I could use an RData file but I think it is forbidden in this mailing list... Alain De : Chris Evans Envoy� : mardi 10 d�cembre 2019 15:41 � : Alain Guillet Cc : r

Re: [R] table and unique seems to behave differently

2019-12-10 Thread Alain Guillet
Thanks a lot, it answers my question. Alain De : Jeff Newmiller Envoy� : mardi 10 d�cembre 2019 16:31 � : r-help@r-project.org ; Duncan Murdoch ; Alain Guillet ; r-help@r-project.org Objet : Re: [R] table and unique seems to behave differently I think