Hello,
I think this will work:
names( sort( -table( x ) ) )[1]
Regards
Patricia García
> From: c...@datanalytics.com> To: jasonkrup...@yahoo.com> Date: Mon, 26 Jan
> 2009 18:34:00 +0500> CC: r-help@r-project.org> Subject: Re: [R] Mode
> (statistics) in R?> > Hello,> > You can try ?tab
Hi all,
I am trying to create a vector with the information contained in a determined
matrix. Let me explain myself. I have a vector like this:
q <- c("a","a","c","b","d","d","a","e","b","a")
And a matrix like:
s1 <- c("a","b","c","d","e","f","g","h","i","j")
e <- c("
;- LETTERS[1:10]
> q <- c("a","a","c","b","d","d","a","e","b","a")
>
> e[match(q, s1)]
>
>
> I hope it helps.
>
> Best,
> Dimitris
>
>
> patricia garcía go
> > try this:
> >
> > s1 <- letters[1:10]
> > e <- LETTERS[1:10]
> > q <- c("a","a","c","b","d","d","a","e","b","a")
> >
> > e[match(q, s1)]
>
Hi all,
I have two vectors like this:
x <- c( "Y", "H", NA, NA )
y <- c( NA, "H", NA, "B" )
And would like to make one vector with the common elements, and the element
available only in one of the vectors.
res <- c( "Y", "H", NA, "B" )
Thanks,
Patricia
> From:
>
> Gabor
>
> On Wed, Jan 28, 2009 at 3:54 PM, patricia garcía gonzález
> wrote:
> >
> > Hi all,
> >
> > I have two vectors like this:
> >
> >
> > x <- c( "Y", "H", NA, NA )
> >
> >y <- c
Hi,
If you mean if the t.test is done as if the samples where paired, the answer is
yes if you write argument paired = TRUE; and the pairs are done in order, that
is 1º with 1º, 2º with 2º, etc.
As you wrote, (paired = FALSE) the t.test is unpaired, and the order of
elements in the vectors a
Hi,
Test <- function(x, y, paired) {
res <- try( ks.test(...), TRUE )
if( inherits( res, "try-error" ) )
res <- NA
res
}
Regards
patricia
> Date: Thu, 29 Jan 2009 13:22:11 -0300
> From: alexandra...@gmail.com
> To: r-help@r-project.org
> Subject: [R] He
Hi,
If you have a variable, that defines what you want to differentiate (sociology,
economics etc.) then you can add color depending on the value of that
variable. You will have to convert it to numeric if it is not.
An example would be
plot( iris[ , 1 ], iris[ , 2], col = iris[ , 3 ] )
Re
Hi,
Maybe you are looking for
scale( x )
Regards
Patricia
> From: g1enn.robe...@btinternet.com
> To: r-help@r-project.org
> Date: Mon, 9 Feb 2009 14:09:04 +
> Subject: [R] standardize
>
> Very quick newbie question sorry;
>
>
>
> How do I standardize a list of data pl
Hi all,
Having a matrix A formed by n vectors as columns. Is there anything to
calculate a determined function to all combination of vectors?
For example imagine A matrix is compose by vectors a, b and c. And the function
to perform is correlation, so I would like to obtain cor(a, b), cor(a,
Hi everyone,
Is there any function to standardize a matrix. For sure it must, but i can't
find it. For standardize, i just mean, to make the mean as zero and standard
deviation as one.It is also call z-score.
Thanks in advance
Hi ,
What I did was similar, install R, R(D)COM server an RExcelInstaller package.
Then just write > installRExcel() in the console. And it works.
Something you should know is that there is a specific mailing list for RCOM
topic in here:
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-
Hi,
Look, is simple with reshape:
x <- data frame(...)
reshape( x, idvar = "Subject", direction = "wide", timevar = "Quarter")
Regards,
Patricia
> Date: Thu, 19 Feb 2009 11:02:58 +0100
> From: pcando...@gmail.com
> To: r-help@r-project.org
> Subject: [R] table with 3 varialbes
>
> I have
Hi,
I think you should take a look to ?reshape.
Regards
Patricia
> Date: Thu, 19 Feb 2009 11:02:58 +0100
> From: pcando...@gmail.com
> To: r-help@r-project.org
> Subject: [R] table with 3 varialbes
>
> I have the initial matrice:
>
> > *data.frame(Subject=rep(100:101, each=4), Quarter=rep(
15 matches
Mail list logo