Re: [R] Values of ACF and PACF

2020-11-20 Thread Duncan Williamson
Thank you, Rolf.

I am aware of how to open and read the help files, I searched the web, too.
However, as a not so blessed user of R, I don't always understand what I
read.

I will do my best with your advice.

Duncan

On Sat, 21 Nov 2020, 10:57 Rolf Turner,  wrote:

>
> On Sat, 21 Nov 2020 08:36:45 +0700
> Duncan Williamson  wrote:
>
> > I use the ACF and PACF functions as part of my investigations into
> > autocorrelation ...
> >
> > Is there any way of getting R to show the numerical values provided by
> > these functions?
>
> Of course.  Easy-peasy.  E.g.:
>
> set.seed(42)
> x <- rnorm(300)
> ax0 <- acf(x,plot=FALSE) # The "plot=FALSE" is not actually necessary.
> ax1 <- ax0$acf[,,1]
>
> Reading the help file for a function is Always a Good Idea.
> You can also always look at the code.  Just type:
>
> acf
>
> Similarly for pacf()
>
> cheers,
>
> Rolf Turner
>
> --
> Honorary Research Fellow
> Department of Statistics
> University of Auckland
> Phone: +64-9-373-7599 ext. 88276
>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Values of ACF and PACF

2020-11-20 Thread Rolf Turner


On Sat, 21 Nov 2020 08:36:45 +0700
Duncan Williamson  wrote:

> I use the ACF and PACF functions as part of my investigations into
> autocorrelation ...
> 
> Is there any way of getting R to show the numerical values provided by
> these functions?

Of course.  Easy-peasy.  E.g.:

set.seed(42)
x <- rnorm(300)
ax0 <- acf(x,plot=FALSE) # The "plot=FALSE" is not actually necessary.
ax1 <- ax0$acf[,,1]

Reading the help file for a function is Always a Good Idea.
You can also always look at the code.  Just type:

acf

Similarly for pacf()

cheers,

Rolf Turner

-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Values of ACF and PACF

2020-11-20 Thread Duncan Williamson
I use the ACF and PACF functions as part of my investigations into
autocorrelation ...

Is there any way of getting R to show the numerical values provided by
these functions?

TIA

Duncan

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] 2021 John M. Chambers Software Award

2020-11-20 Thread Raymond Wong
Dear R-help listers,

The Statistical Computing Section of the American Statistical Association 
announces the competition for the John M. Chambers Statistical Software Award. 
In 1998 the Association for Computing Machinery (ACM) presented the ACM 
Software System Award to John Chambers for the design and development of S. Dr. 
Chambers generously donated his award to the Statistical Computing Section to 
endow an annual prize for statistical software written by, or in collaboration 
with, an undergraduate or graduate student.

The submission deadline is December 15, 2020. Please visit 
http://asa.stat.uconn.edu  for more information.

Best regards,

Raymond Wong

Awards Chair
ASA Section on Statistical Computing

Associate Professor
Department of Statistics
Texas A University
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] [EXT] Re: Inappropriate color name

2020-11-20 Thread Rainer Krug via R-help
Could we please stop this thread here? Please take any further discussions 
off-list, or we would need an R-chat list for these kind of discussions (I 
would subscribe, though).

Cheers,

Rainer


> On 20 Nov 2020, at 11:28, Charles Novaes de Santana 
>  wrote:
> 
> The fact that for the first time we have so many messages in this group is
> proof that the question asked by Lainey is appropriate and necessary.
> 
> No language is static, they evolve thanks to discussions like this.
> Remember that github  stopped using the term "master" to describe the main
> branch of a repository for example.
> 
> I wonder what would happen if there was a color named "redneck" instead of
> "indianred".
> 
> Charles
> 
> On Fri, 20 Nov 2020 at 10:37, Marc Roos  wrote:
> 
>> 
>>> name since it conveys the wrong indication of its purpose.  But the
>>> word 'racist' in itself is not offensive.  The act of being racist is
>>> offensive and wrong.  Purging the word 'racist' won't help rid the
>>> world of racism.
>> 
>> Indeed, if you would go down this road, where does it stop? You would be
>> eligible getting discussions why the female species is described with a
>> longer word than the male. Why is there even a 'man' part in 'woman'. I
>> can bet there are man and woman finding this offensive ;)
>> What do you think about these symbols for male and female? Should be
>> changed also, this male is now pointing up to heaven =  good, and female
>> pointing down to hell =  bad? ;)
>> 
>> 
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>> 
> 
> 
> -- 
> Um axé! :)
> 
> --
> Charles Novaes de Santana, PhD
> https://github.com/cndesantana
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Orcid ID: -0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:   +41 (0)78 630 66 57
email:  rainer.k...@uzh.ch
rai...@krugs.de
Skype: RMkrug

PGP: 0x0F52F982




[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Indian Red

2020-11-20 Thread Rainer Krug via R-help
Let’s switch to the German name - “Indisch Rot” instead...

> On 20 Nov 2020, at 12:08, Neotropical bat risk assessments and acoustic tools 
>  wrote:
> 
> FWIW,
> 
> There is also Naples Yellow and other colors related to "place names" on 
> artist palettes.  "Indian Red" is not related to North American Native 
> peoples.
> "/India Red/: Originally a natural, more purple iron oxide imported from 
> /India/. First synthesized in the 18th century as a “Mars” color, 
> contemporary ...
> 
> Let it rest people.
> 
> Bruce Miller
> 
> 
> -- 
> Bruce W. Miller, PhD.
> Neotropical bat risk and acoustic assessments
> Conservation Fellow - Wildlife Conservation Society
> Research Associate, American Museum of Natural History
> 
> If we lose the bats, we may lose much of the tropical vegetation and the 
> lungs of the planet
> 
> Using acoustic sampling to identify and map species distributions
> and pioneering acoustic tools for ecology and conservation of bats for >25 
> years.
> 
> Key projects include providing free interactive identification keys and call 
> fact sheets for the vocal signatures of New World Bats
> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Orcid ID: -0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:   +41 (0)78 630 66 57
email:  rainer.k...@uzh.ch
rai...@krugs.de
Skype: RMkrug

PGP: 0x0F52F982




[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Inappropriate color name

2020-11-20 Thread Marc Roos
 
And how would that relevant?
 
 >
 >Looks like they do better than us in some aspects.
 >
 >
 >
 >>
 >> > Remember that github  stopped using the term "master" to describe 
 >> > the
 >> main branch of a repository for example.
 >>
 >> Github is some sort of national language institute, with a board of 
 >> literary, sociology, psychology professors?
 >>
 >> Afaik is github owned by Microsoft, and Microsoft is known to be an 
 >> offender of peoples rights. Who the @#$@#$ cares what they do?
 >>
 >>
 >>
 >

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Inappropriate color name

2020-11-20 Thread Charles Novaes de Santana
Looks like they do better than us in some aspects.

On Friday, November 20, 2020, Marc Roos  wrote:

>
> > Remember that github  stopped using the term "master" to describe the
> main branch of a repository for example.
>
> Github is some sort of national language institute, with a board of
> literary, sociology, psychology professors?
>
> Afaik is github owned by Microsoft, and Microsoft is known to be an
> offender of peoples rights. Who the @#$@#$ cares what they do?
>
>
>

-- 
Um axé! :)

--
Charles Novaes de Santana, PhD
https://github.com/cndesantana

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] [EXT] Re: Inappropriate color name

2020-11-20 Thread Marc Roos


> Remember that github  stopped using the term "master" to describe the 
main branch of a repository for example.

Github is some sort of national language institute, with a board of 
literary, sociology, psychology professors? 

Afaik is github owned by Microsoft, and Microsoft is known to be an 
offender of peoples rights. Who the @#$@#$ cares what they do?

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] [EXT] Re: Inappropriate color name

2020-11-20 Thread Mitchell Maltenfort
Here’s a daft idea that brings it back to R

For packages where there are problematic names, have aliases with
acceptable names.

Perhaps create a package to hold all those aliases.

Then if a user wants their preferred names, load up the aliasing package
and change them in bulk.  Using a package means everyone has access to a
standardized set of alternative terms.

Just a thought.  Coffee may not have kicked in yet.

On Fri, Nov 20, 2020 at 5:36 AM Charles Novaes de Santana <
charles.sant...@gmail.com> wrote:

> The fact that for the first time we have so many messages in this group is
> proof that the question asked by Lainey is appropriate and necessary.
>
> No language is static, they evolve thanks to discussions like this.
> Remember that github  stopped using the term "master" to describe the main
> branch of a repository for example.
>
> I wonder what would happen if there was a color named "redneck" instead of
> "indianred".
>
> Charles
>
> On Fri, 20 Nov 2020 at 10:37, Marc Roos  wrote:
>
> >
> >  >name since it conveys the wrong indication of its purpose.  But the
> >  >word 'racist' in itself is not offensive.  The act of being racist is
> >  >offensive and wrong.  Purging the word 'racist' won't help rid the
> >  >world of racism.
> >
> > Indeed, if you would go down this road, where does it stop? You would be
> > eligible getting discussions why the female species is described with a
> > longer word than the male. Why is there even a 'man' part in 'woman'. I
> > can bet there are man and woman finding this offensive ;)
> > What do you think about these symbols for male and female? Should be
> > changed also, this male is now pointing up to heaven =  good, and female
> > pointing down to hell =  bad? ;)
> >
> >
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
> --
> Um axé! :)
>
> --
> Charles Novaes de Santana, PhD
> https://github.com/cndesantana
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
-- 
Sent from Gmail Mobile

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Indian Red

2020-11-20 Thread Neotropical bat risk assessments and acoustic tools
FWIW,

There is also Naples Yellow and other colors related to "place names" on 
artist palettes.  "Indian Red" is not related to North American Native 
peoples.
"/India Red/: Originally a natural, more purple iron oxide imported from 
/India/. First synthesized in the 18th century as a “Mars” color, 
contemporary ...

Let it rest people.

Bruce Miller


-- 
Bruce W. Miller, PhD.
Neotropical bat risk and acoustic assessments
Conservation Fellow - Wildlife Conservation Society
Research Associate, American Museum of Natural History

If we lose the bats, we may lose much of the tropical vegetation and the lungs 
of the planet

Using acoustic sampling to identify and map species distributions
and pioneering acoustic tools for ecology and conservation of bats for >25 
years.

Key projects include providing free interactive identification keys and call 
fact sheets for the vocal signatures of New World Bats


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] [EXT] Re: Inappropriate color name

2020-11-20 Thread Charles Novaes de Santana
The fact that for the first time we have so many messages in this group is
proof that the question asked by Lainey is appropriate and necessary.

No language is static, they evolve thanks to discussions like this.
Remember that github  stopped using the term "master" to describe the main
branch of a repository for example.

I wonder what would happen if there was a color named "redneck" instead of
"indianred".

Charles

On Fri, 20 Nov 2020 at 10:37, Marc Roos  wrote:

>
>  >name since it conveys the wrong indication of its purpose.  But the
>  >word 'racist' in itself is not offensive.  The act of being racist is
>  >offensive and wrong.  Purging the word 'racist' won't help rid the
>  >world of racism.
>
> Indeed, if you would go down this road, where does it stop? You would be
> eligible getting discussions why the female species is described with a
> longer word than the male. Why is there even a 'man' part in 'woman'. I
> can bet there are man and woman finding this offensive ;)
> What do you think about these symbols for male and female? Should be
> changed also, this male is now pointing up to heaven =  good, and female
> pointing down to hell =  bad? ;)
>
>
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Um axé! :)

--
Charles Novaes de Santana, PhD
https://github.com/cndesantana

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Inappropriate color name

2020-11-20 Thread John via R-help
On Thu, 19 Nov 2020 23:27:29 +0100
Heinz Tuechler  wrote:

> One may remember that people who might feel offended by "Indian Red"
> (Native Americans) make up less than 0.5 percent of all "Indians".
> It is hardly the fault of the people of India that Native Americans
> were called Indians by an Italian navigator who thought he had landed
> in India.

I have worked with and know or knew probably somewhere near 100
American Indians.  None of them were "offended" by "Indian," most
referred to themselves as "Indian," particularly when few outsiders
could even pronounce their tribal names.  Several of them referred me to
the works and words of Russel Means, Ogalala Lakota, an actor and
activist, who mocked the use of phrases such as "Native American" as
silly, and easily as offensive and racist in its failure to distinguish
among tribal peoples as any such sweeping label could be.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] [EXT] Re: Inappropriate color name

2020-11-20 Thread Marc Roos


 >name since it conveys the wrong indication of its purpose.  But the
 >word 'racist' in itself is not offensive.  The act of being racist is
 >offensive and wrong.  Purging the word 'racist' won't help rid the
 >world of racism.

Indeed, if you would go down this road, where does it stop? You would be 
eligible getting discussions why the female species is described with a 
longer word than the male. Why is there even a 'man' part in 'woman'. I 
can bet there are man and woman finding this offensive ;)
What do you think about these symbols for male and female? Should be 
changed also, this male is now pointing up to heaven =  good, and female 
pointing down to hell =  bad? ;) 

 

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to understand the mentality behind tidyverse and ggplot2?

2020-11-20 Thread Duncan Murdoch

On 18/11/2020 3:38 p.m., Duncan Murdoch wrote:

On 17/11/2020 12:43 p.m., C W wrote:

Dear R list,

I am an old-school R user. I use apply(), with(), and which() in base
package instead of filter(), select(), separate() in Tidyverse. The idea of
pipeline (i.e. %>%) my code was foreign to me for a while. It makes the
code shorter, but sometimes less readable?


Think of the pipe as pure syntactic sugar.  It doesn't really do
anything, it just lets you write "f(g(x))" as "x %>% g() %>% f()" (where
the parens "()" are optional).  Read it as "Take x and pass it to g();
take the result and pass it to f()", which is exactly how you'd read
"f(g(x))".  The pipe  presents it in the same order as in English, which
sometimes makes it a bit easier to read than the mathematical notation.

There's a lot more to tidyverse ideas besides the pipe.  The overview is
in the "Tidyverse Manifesto" (a vignette in the tidyverse package), and
details are in Grolemund and Wickham's book "R for Data Science".


Whoops, I got the title wrong:  that's "The tidy tools manifesto".

Duncan Murdoch





With ggplot2, I just don't understand how it is organized. Take this code:


ggplot2 is much harder to understand, but Wickham's book "ggplot2:
Elegant Graphics for Data Analysis" gives a really readable yet thorough
description.




ggplot(diamonds, aes(x=carat, y=price)) + geom_point(aes(color=cut)) +

geom_smooth()

There are three plus signs. How do you know when to "add" and what to
"add"? I've seen more plus signs.

To me, aes() stands for aesthetic, meaning looks. So, anything related to
looks like points and smooth should be in aes(). Apparently, it's not the
case.


Yes "aesthetic" was a really bad choice of word.


So, how does ggplot2 work? Could someone explain this for an old-school R
user?


Not in one email, but hopefully the references (which are both available
online for free, or in a bookstore at some cost) can help.

Duncan Murdoch



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Inappropriate color name

2020-11-20 Thread John via R-help
On Sun, 15 Nov 2020 17:35:41 -0900
Lainey Gallenberg  wrote:

Lainey,

Assumptions are always fraught.  Your assumption about the "meaning" of
Indian Red is simply wrong.  Indian red is named for a lateritic soil in
India.  It isn't racist, and I have American Indian friends who have
expressed disappointment at the historical facts.  They also prefer
"American Indian" to "Native American."  So, what to do??? 

JWDougherty

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.