Displaying 10 results from an estimated 10 matches for "gianandrea".
2008 Aug 07
6
multiple tapply
Hi folk,
I tried this and it works just perfectly
tapply(iris[,1],iris[5],mean)
but, how to obtain a single table from multiple variables?
In tapply x is an atomic object so this code doesn't work
tapply(iris[,1:4],iris[5],mean)
Thanx and great summer holidays
Gianandrea
--
View this message in context: http://www.nabble.com/multiple-tapply-tp18868063p18868063.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jun 14
3
remove last char of a text string
Dear R experts,
is there a simple way to remove the last char of a text string?
substr() function use as parameter start end only... but my strings are of
different length...
01asap05a -> 01asap05
02ee04b -> 02ee04
Thank you all,
Gianandrea
--
View this message in context: http://r.789695.n4.nabble.com/remove-last-char-of-a-text-string-tp2254377p2254377.html
Sent from the R help mailing list archive at Nabble.com.
2008 Aug 28
3
drop unused levels in sqldf
Hi,
sqldf is a fantastic package, but when the SELECT procedure runs unused
levels remain in the output. I tried with the drop function, but without
success. Do you have any suggestions?
Thanx, Gianandrea
data(iris)
require(sqldf)
base<-sqldf("select * from iris where Species <> 'setosa'")
str(base) # Species with 3 levels!
--
View this message in context: http://www.nabble.com/drop-unused-levels-in-sqldf-tp19196464p19196464.html
Sent from the R help mailing list archiv...
2009 Feb 19
2
dotplot points color
Dear list,
is it possible to change the background color of dotplot's points? I tried
in many ways but unsuccessfully
Thanks in advance
Gianandrea
require(lattice)
dotplot(variety ~ yield | site, data = barley, groups = year, pch=21)
dotplot(variety ~ yield | site, data = barley, groups = year, pch=21,
bg=c("2","3")) ??!!!
--
View this message in context: http://www.nabble.com/dotplot-points-color-tp22099530p22099530.h...
2009 Mar 03
1
Self-Organizing Map analysis
Dear list,
I read the SOM package manual but I don't understand how to perform (for
example) 1) the SOM analysis on Iris data 2) with a visualization similar to
that of figure 7 in
http://www.cis.hut.fi/projects/somtoolbox/package/papers/techrep.pdf
Any suggestion? Thanks in advance,
Gianandrea
--
View this message in context: http://www.nabble.com/Self-Organizing-Map-analysis-tp22306689p22306689.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jul 02
1
From xtabs to matrix
Hi list,
is it possible convert the xtabs result
xtabs(breaks~tension+wool,data=warpbreaks)
wool
tension A B
L 401 254
M 216 259
H 221 169
to a simple matrix or data frame?
A B
L 401 254
M 216 259
H 221 169
Thanks a lot! Gianandrea
--
View this message in context: http://www.nabble.com/From-xtabs-to-matrix-tp24304588p24304588.html
Sent from the R help mailing list archive at Nabble.com.
2008 Sep 26
1
cca constraining variables table
I performed canonical correspondence analysis (cca) with the example data of
vegan, but I'm not able to obtain a table like scores() for the constraining
variables. I can see them in the summary() mode, but it would be great to
have in a separate table. Any suggestion?, thanx Gianandrea
require(vegan)
data(varespec)
data(varechem)
vare.cca<-cca(varespec,varechem)
scores(vare.cca)
summary(vare.cca)
--
View this message in context: http://www.nabble.com/cca-constraining-variables-table-tp19688215p19688215.html
Sent from the R help mailing list archive at Nabble.com.
2008 Aug 10
1
mean-plot (add residuals)
Hi,
I want to plot the mean of a variable and add the standard deviation
as a line going above and below the mean (like the whiskers in a
boxplot) but I don't know how to add these residual-lines.
Is there an easy way to do that or do I have to use the line()-
function to create them on my own?
Thanks for help!
2008 Sep 23
1
plot error
HI there,
why these lines of code are correct
plot(count~spray, data = InsectSprays)
plot(InsectSprays$count)
but this return an error:
plot(count, data = InsectSprays);
"data" method is not implemented in plot?!
Thanx, Gianandrea
--
View this message in context: http://www.nabble.com/plot-error-tp19624873p19624873.html
Sent from the R help mailing list archive at Nabble.com.
2008 Oct 08
5
Plot means with error bars - A novice needs help
Hello,
I'd appreciate a suggestion on how to construct plots (barplots?) that use
means on the Y axis instead of density/count. I'd also like to use groups
and plot error or confidence interval bars on these graphs. I know this is a
read the manual situation. I'd appreciate help with what to read, or your
benevolence with some sample code.
I've looked at lattice and gplots2, but