> On 01 Apr 2017, at 01:54 , Sarah Goslee wrote:
>
> The short answer is that hold isn't a list-like object, and $ only
> works with list-like objects (lists and data frames, mainly).
>
> You can get the full explanation (VERY full), at
> ?Extract
> or any of its aliases, like
> ?'$'
> or
> ?'[
?str
tells you the structure of any object. *Learn to use it!*
It may well be the that you *cannot* do what you describe. As you
should know by now in your "learning curve", invoking
> obj
at the console silently invokes the print method for obj, and what is
printed may in fact be calculated on
The short answer is that hold isn't a list-like object, and $ only
works with list-like objects (lists and data frames, mainly).
You can get the full explanation (VERY full), at
?Extract
or any of its aliases, like
?'$'
or
?'['
Sarah
On Fri, Mar 31, 2017 at 7:11 PM, Evan Cooch wrote:
> Continui
ent
Texas A&M University
From: R-help on behalf of Evan Cooch
Sent: Friday, March 31, 2017 6:11 PM
To: r-help@r-project.org
Subject: [R] pull stat out of summary
Continuing my learning curve after 25_ years with using SAS. Want to
pull the "Mean
Continuing my learning curve after 25_ years with using SAS. Want to
pull the "Mean" forom the summary of something...
test <- rnorm(1000,1.5,1.25)
hold <- summary(test)
names(hold)
[1] "Min.""1st Qu." "Median" "Mean""3rd Qu." "Max."
OK, so "Mean" is in there.
So, is there a short fo
5 matches
Mail list logo