Displaying 20 results from an estimated 39 matches for "guillet".
Did you mean:
juillet
2018 Feb 06
3
Aggregate behaviour inconsistent (?) when FUN=table
...s 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.
Best regards,
Alain Guillet
--
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 Louvain-la-Neuve
Belgium
Tel: +32 10 47 30 50
Acc?s: http://www.uclouvain.be/323631.html
2018 Feb 06
0
Aggregate behaviour inconsistent (?) when FUN=table
...ve the
same number of levels (2). If you split it and then let table convert
each split to a factor, one split will have 1 level and the other 2. To see
the details of the output , use str() instead of print().
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Feb 6, 2018 at 12:20 AM, Alain Guillet <alain.guillet at uclouvain.be>
wrote:
> Dear R users,
>
> When I use aggregate with table as FUN, I get what I would call a strange
> behaviour if it involves numerical vectors and one "level" of it is not
> present for every "levels" of the "by"...
2009 Oct 15
1
Discriminant plot
...lda_analysis)$x, labels=predict(lda_analysis)$class,
> col=palette()[predict(lda_analysis)$class])
>
> The above code only reproduce the first plot using predict to obtain
> coordinates and classes for the first tow discriminant axis.
>
> Thanks ,
>
> Alejo
>
--
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
2010 Jun 15
1
Problem with the recode function
...rface and I get the following
code :
test$variable <- recode(test$x, '1:5 = 0; else = 1; ',
as.factor.result=FALSE)
And a vector of NA as result.
> test$variable
[1] NA NA NA NA NA NA NA NA NA NA
I am 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
2009 Jul 13
2
Problems in plotting with abline
Dear R-users,
I am using R(a package igraph) to calculate certain
topological features of networks. When I try to draw a plot between these
features I get an error. Following is the code I am using :
*> plot(met_eco_deg,met_eco_bet)
> lmout<-lm(met_eco_bet ~ met_eco_deg)
> abline(lmout)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new
2010 Aug 12
5
Where the data file is stored?
Hi folks,
OS - Ubuntu 10.04
On R I create a datafile named "data". I can evoke it on R with;
> data
On R Commander
Data -> Active data set -> Select active data set -> (data) OK
only one data set there "data"
-> View data set
I can read it
-> Edit data set
showing 25 rows of data. Clicking the box shows a thick border around it. But
I couldn't
2008 Oct 01
1
add labelled contour lines to filled.contour plot
Is it possible to add labelled contour lines to filled.contour plot ?
[[alternative HTML version deleted]]
2009 Apr 08
1
Is a point into an ellipse
...to know if
a point is inside the ellipse. Is any R functions to do it without
computing the equation of the ellipse manually? Thanks.
For example, if I do "plot(ellipse(0.8), type = 'l')", I would like to
know if (0,1) belongs 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
2010 Apr 09
3
NAs are not allowed in subscripted assignments
I'm trying to assign NAs to values that satisfy certain conditions (more
complex than shown below) and it gives the right result, but breaks the loop
having done the first one viz:
new<-c(rep(5,4),6)
for (i in 1:6)
{new[new[i]>5.5][i]<-NA}
gives the correct result, though an error message appears which causes a
break if it's in a loop. If I can get rid of the error message and
2013 Mar 20
3
Introduction to R. Any such documentation in Vietnamese?
Dear fellow users
Are there any Vietnamese language resources for beginners of R? If so, I would be interested in hearing from people who have had experience with them and which are better (if there is more than one). I am involved with an aid project in Vietnam, and would like to move the scientists involved from using Excel for 'analysis' to R.
Thanks ....
Peter Alspach
The
2010 Jul 23
2
decimal seperator
Hi R-List,
I have a question regarding R-language formats, I think. I am producing a
series of graphs (using plot, barplot, barchart, and bwplot, using either
text or mtext to place values on the graphs) and tables for a Francophone
country. In fact, I have already done so. However, while they are pleased
with the results they've requested I convert all of my decimal points into
the French
2009 Jun 26
0
Batch problem
...he bat file with the scheduled task of Windows
XP. Then I log off.
It works up to the log off of another user on the same 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 Roman Pays, 20
B-1348 Louvain-la-Neuve
Belgium
tel: +32 10 47 30 50
2009 Aug 03
1
principal component analysis for class variables
Dear Forum,
I have a class variable 1 (populations A-E), and two other class variables,
variable 2 and variable 3. What I want is to see if the combination of var 2
and var 3, will give me a pattern that allows to distinguish populations.
I found several packages like ade4, with pcaiv function and factoMineR. but
there are not working. Using the ade4 package, when I try to build the pca:
pca1
2010 Apr 09
1
terminating function
Hi everyone,
I 'm building a function, in the middle it controls the sign of a
variable x. If x < 0 the function write a warning (Error: negative
value!). At this point I want the function stops without execute the
remaining code.
How can I do to terminate the function before your ending?
Thanks in advance.
Paolo
2008 Sep 22
1
how to set rownames / colnames for matrices in a list
Hello,
I have another stupid question. I hope you can give me a hint how to solve this:
I have a list and one element is again a list containing matrices, all of the
same dimensions. Now, I'd like to set the dimnames for all matrices:
example code:
m1 <- matrix(1:25, nrow=5)
m2 <- matrix(26:50, nrow=5)
# ... there can be much more than two matrices
l <- list()
l[[1]] <-
2010 Feb 24
1
how to label individuals with FactoMiner ?
Dear all,
i'm trying to label specific individuals (supplementary ones) after a PCA with the FactoMiner package. There is not much details (possibilities?) in the R-help of the plot.pca function. There is indeed a "label" parameter but i could only manage to label the supplementary individuals with there "row.names" (i.e. label="indiv.sup") and not with the
2010 Mar 10
2
How to sum a list of matrices ?
Dear list,
I have a list of three matrices :
i = list(matrix(1:4,2,2), matrix(3:6,2,2), matrix(9:12,2,2))
I would like to sum the matrices, as follows :
[,1] [,2]
[1,] 13 19
[2,] 16 22
I used this code :
k <- i[[1]]
for (j in (2:length(i))) {
k <- k + i[[j]]}
But, is it possible to sum without a loop ?
Thanks in advance,
Carlos
[[alternative HTML version deleted]]
2009 Oct 14
1
plot discriminant analysis
I'm confused on how is the right way to plot a discriminant analysis made by
lda function (MASS package).
(I had attached my data fro reproduction). When I plot a lda object :
X <- read.table("data", header=T)
lda_analysis <- lda(formula(X), data=X)
plot(lda_analysis)
#the above plot is completely different to:
plot(predict(lda_analysis)$x,
2010 Aug 20
2
Determining the length of unique items in a vector
Dear all, let suppose I have following vector:
> dat1 <- c(rep("asd", 5), rep("xyz", 12), rep("erd", 17))
> dat1 <- dat1[sample(1:length(dat1), length(dat1), replace=F)]
> dat1
[1] "erd" "xyz" "erd" "asd" "asd" "erd" "xyz" "asd" "erd" "erd"
2008 Nov 21
2
Basic question on concatenating factors
Hi all,
I hope it's not too trivial for the list - I'm trying to concatenate
two factor arrays, and obtain the following:
> f1<-factor(c("a","a","b"))
> f1
[1] a a b
Levels: a b
> f2<-factor(c("b","b","a"))
> f2
[1] b b a
Levels: a b
> c(f1,f2)
[1] 1 1 2 2 2 1
Instead of getting:
[1] a a b b b a
Levels: a