1 AM, Doran, Harold wrote:
> ?round
>
>
> From: lily li [mailto:chocol...@gmail.com]
> Sent: Tuesday, May 09, 2017 11:10 AM
> To: Charles Determan
> Cc: Doran, Harold ; R mailing list
> Subject: Re: [R] About calculating average values from several matrices
>
> Than
t; *From:* lily li [mailto:chocol...@gmail.com]
> *Sent:* Tuesday, May 09, 2017 11:13 AM
> *To:* Doran, Harold
> *Cc:* Charles Determan ; R mailing list <
> r-help@r-project.org>
>
> *Subject:* Re: [R] About calculating average values from several matrices
>
>
>
gmail.com>]
Sent: Tuesday, May 09, 2017 11:10 AM
To: Charles Determan mailto:cdeterma...@gmail.com>>
Cc: Doran, Harold mailto:hdo...@air.org>>; R mailing list
mailto:r-help@r-project.org>>
Subject: Re: [R] About calculating average values from several matrices
Thanks very mu
o:* Charles Determan
> *Cc:* Doran, Harold ; R mailing list >
> *Subject:* Re: [R] About calculating average values from several matrices
>
>
>
> Thanks very much, it works. But how to round the values to have only 1
> decimal digit or 2 decimal digits? I think by divid
?round
From: lily li [mailto:chocol...@gmail.com]
Sent: Tuesday, May 09, 2017 11:10 AM
To: Charles Determan
Cc: Doran, Harold ; R mailing list
Subject: Re: [R] About calculating average values from several matrices
Thanks very much, it works. But how to round the values to have only 1 decimal
t;> >
>>> >
>>> >
>>> > ### mean over all cells
>>> >
>>> > sapply(myData, function(x) mean(x))
>>> >
>>> >
>>> >
>>> > ### mean over all columns
>>> >
>>> &
; >
>> >
>> > ### mean over all cells
>> >
>> > sapply(myData, function(x) mean(x))
>> >
>> >
>> >
>> > ### mean over all columns
>> >
>> > sapply(myData, function(x) colMeans(x))
>> >
>> >
on(x) mean(x))
> >
> >
> >
> > ### mean over all columns
> >
> > sapply(myData, function(x) colMeans(x))
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > *From:* lily li [mailto:chocol
r all cells, or over rows/columns
> within each dataframe. Also, are these different dataframes stored within a
> list or are they standalone?
>
>
>
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of lily li
> Sent: Tuesday, Ma
p
[mailto:r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org>] On
Behalf Of lily li
Sent: Tuesday, May 09, 2017 10:39 AM
To: R mailing list mailto:r-help@r-project.org>>
Subject: [R] About calculating average values from several matrices
Hi R users,
I have a question a
] On Behalf Of lily li
> Sent: Tuesday, May 09, 2017 10:39 AM
> To: R mailing list
> Subject: [R] About calculating average values from several matrices
>
> Hi R users,
>
> I have a question about manipulating the data.
> For example, there are several such data frames or
09, 2017 10:39 AM
To: R mailing list
Subject: [R] About calculating average values from several matrices
Hi R users,
I have a question about manipulating the data.
For example, there are several such data frames or matrices, and I want to
calculate the average value from all the data frames or
Hi R users,
I have a question about manipulating the data.
For example, there are several such data frames or matrices, and I want to
calculate the average value from all the data frames or matrices. How to do
it? Also, should I convert them to data frame or matrix first? Right now,
when I use typ
13 matches
Mail list logo