Le vendredi 03 février 2012 à 18:51 +, William Dunlap a écrit :
> Instead of colSums(t(aMatrix)), why not the more
> direct rowSums(aMatrix)?
Because I felt it was more didactic. The question was about counting
occurrences per column, so using rowSums() could be a little confusing
without an ex
Thank you sire.
You explained it very well. This give ma a good point to start using sapply
more frequently.
Cordially,
Phil
--
View this message in context:
http://r.789695.n4.nabble.com/sapply-help-tp4355092p4355376.html
Sent from the R help mailing list archive at Nabble.com.
__
potfire, TIBCO Software
wdunlap tibco.com
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of Milan Bouchet-
> Valat
> Sent: Friday, February 03, 2012 10:17 AM
> To: Ernest Adrogué
> Cc: r-help@r-project.org
Le vendredi 03 février 2012 à 18:27 +0100, Ernest Adrogué a écrit :
> 3-02-2012, 08:37 (-0800); Filoche escriu:
> > Hi every one.
> >
> > I'm learning how to use sapply (and other function of this family).
> >
> > Here's what I'm trying to do.
> >
> > I have a vector of lets say 5 elements. I al
3-02-2012, 08:37 (-0800); Filoche escriu:
> Hi every one.
>
> I'm learning how to use sapply (and other function of this family).
>
> Here's what I'm trying to do.
>
> I have a vector of lets say 5 elements. I also have a matrix of nX5. I would
> like to know how many element by column are infe
Hi every one.
I'm learning how to use sapply (and other function of this family).
Here's what I'm trying to do.
I have a vector of lets say 5 elements. I also have a matrix of nX5. I would
like to know how many element by column are inferior to each element of my
vector.
On this example:
v = c(
6 matches
Mail list logo