Re: [R] assistance programming R

2020-11-16 Thread Jiefei Wang
HI Ablaye, PLEASE do read the posting guide http://www.R-project.org/posting-guide.html before you post your question. This is not the place for posting your homework. Even if it is, your homework question is really hard to read. Cheers, Jiefei On

[R] assistance programming R

2020-11-16 Thread Ablaye Ngalaba
Hello, please, I need help in programming R. Here is my file help code.pdf Description: Adobe PDF document __ 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

Re: [R] assistance programming R

2020-11-16 Thread Rui Barradas
Hello, You should read an introductory text on R before posting questions. Start with file R-intro.pdf that comes your installation of R. There are also several books on CRAN and other on-line sites. Cost free. As for the problem, n_l <- function(y, q, na.rm = FALSE){ sum(y %in%

Re: [R] - Trying to replicate VLOOKUP in R - help needed

2020-11-16 Thread Andrew Robinson
Hi Gregg, it's not clear from your context if all of ASSIGNED _COMPANY is NA or what the classes of the objects are. Try the following ideas, none of which are tested. I assume that the data set is called location. location$ASSIGNED_COMPANY <- as.character(location$NAME) is.a.FORT <-

Re: [R] Inappropriate color name

2020-11-16 Thread Bert Gunter
WIth all due respect, can we end this thread NOW. This is not a forum to discuss social or political viewpoints. I consider it a disservice to make it one. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley

[R] - Trying to replicate VLOOKUP in R - help needed

2020-11-16 Thread Gregg via R-help
PROBLEM: I am trying to replicate something like a VLOOKUP in R but am having no success - need a bit of help. GIVEN DATA SET (data.table): (looks something like this, but much bigger) NAME TOTALAUTH ASSIGNED_COMPANY ABERDEEN PROVING GROUND 1 NA

Re: [R] Inappropriate color name

2020-11-16 Thread Lainey Gallenberg
Whether or not you agree with my reason for doing so, my question was how to contact the creator of the "colors" function. If you do not have advice on this, please refrain from weighing in. On Mon, Nov 16, 2020 at 12:03 PM Bert Gunter wrote: > WIth all due respect, can we end this thread NOW.

Re: [R] Inappropriate color name

2020-11-16 Thread Stephen Ellison
> Whether or not you agree with my reason for doing so, my question was > how to contact the creator of the "colors" function. If you do not have advice > on this, please refrain from weighing in. ... which is precisely what Prof Gunter said. However, it is worth consulting the documentation

Re: [R] Inappropriate color name

2020-11-16 Thread Jim Lemon
Hi Elaine, There seems to be a popular contest to discover offence everywhere. I don't think that it does anything against racism, sexism or antidisestablishmentarianism. Words are plucked from our vast lexicon to comfort or insult our fellows depending upon the intent of the user. It is the

Re: [R] analyzing results from Tuesday's US elections

2020-11-16 Thread Abby Spurdle
I've come to the conclusion this whole thing was a waste of time. This is after evaluating much of the relevant information. The main problem is a large number of red herrings (some in the data, some in the context), leading pointless data analysis and pointless data collection. It's unlikely

Re: [R] - Trying to replicate VLOOKUP in R - help needed

2020-11-16 Thread Mitchell Maltenfort
ASSIGNED_COMPANY[grep("ADELPHI",NAME)] <-"NEC ADELPHI" is what I'd try On Mon, Nov 16, 2020 at 4:27 PM Andrew Robinson wrote: > Hi Gregg, > > it's not clear from your context if all of ASSIGNED _COMPANY is NA or what > the classes of the objects are. Try the following ideas, none of which are

Re: [R] Inappropriate color name

2020-11-16 Thread Mitchell Maltenfort
r-c...@r-project.org. would be the first stop. On Mon, Nov 16, 2020 at 4:37 PM Lainey Gallenberg < laineygallenb...@gmail.com> wrote: > Whether or not you agree with my reason for doing so, my question was how > to contact the creator of the "colors" function. If you do not have advice > on

Re: [R] Inappropriate color name

2020-11-16 Thread Rolf Turner
On Tue, 17 Nov 2020 07:54:01 +1100 Jim Lemon wrote: > Hi Elaine, > There seems to be a popular contest to discover offence everywhere. I > don't think that it does anything against racism, sexism or > antidisestablishmentarianism. Words are plucked from our vast lexicon > to comfort or insult

Re: [R] Inappropriate color name

2020-11-16 Thread Martin Morgan
Lainey wishes to report a bug, so should see ?bug.report. Mail sent to R-core will be held for moderator approval, and relevant input or ultimate resolution would not be visible to the wider community; it is not a good place to report bugs. Martin Morgan On 11/16/20, 4:48 PM, "R-help on

Re: [R] analyzing results from Tuesday's US elections

2020-11-16 Thread Matthew McCormack
Bye the way, I thought I had checked my e-mail before sending it, but my last e-mail had an unfortunate typo with an 'I' that originally belonged to the beginning of a deleted sentence. Matthew On 11/17/20 1:54 AM, Matthew McCormack wrote: External Email - Use Caution No reason to

Re: [R] analyzing results from Tuesday's US elections

2020-11-16 Thread Matthew McCormack
No reason to apologize. It's a timely and very interesting topic that provides a glimpse into the application of statistics in forensics. I had never heard of Benford's Law before and I think it is really fascinating. One of those very counter intuitive rules that show up in statistics

Re: [R] WG: Packegs for mathematics

2020-11-16 Thread Bert Gunter
Good advice on R packages cannot be provided unless **you** first inform for what purpose the packages are intended. You should look here before posting further: https://cran.r-project.org/web/views/ You may also wish to post search queries like "R package to do ..." here: https://rseek.org/

Re: [R] Inappropriate color name

2020-11-16 Thread Kevin Thorpe
This is a standard colour palette name that has been in use for years. R did not invent it. It simply uses the standard names. Look up indianred on google. You will find Wikipedia entries, hex codes for the colour, etc. This has nothing to do with R, in my opinion. -- Kevin E. Thorpe Head of

Re: [R] WG: Packages for mathematics

2020-11-16 Thread Spencer Graves
Several resources for "Searching R Packages" are discussed in a Wikiversity article by that title: https://en.wikiversity.org/wiki/Searching_R_Packages I've found the "sos" package on CRAN (which has a vignette describing use) and "https://www.rdocumentation.org; to be most useful.

Re: [R] Inappropriate color name

2020-11-16 Thread Lainey Gallenberg
Hello, Thanks for the information. I am glad to learn the etymology of the word is not related to the offensive terms used in the US and Canada. Personally, I would prefer if R took Crayola's route and changed the name to avoid this mistake in the future, but perhaps this sentiment is not shared

[R] Inappropriate color name

2020-11-16 Thread Lainey Gallenberg
Hello, I'm hoping someone on here knows the appropriate place/contact for me to lodge a complaint about a color name in the "colors" function. I was shocked to see there are four named color options that include the term "indianred." Surely these colors can be changed to something less offensive-

Re: [R] Inappropriate color name

2020-11-16 Thread Rainer M Krug
Please see https://en.wikipedia.org/wiki/Indian_red_(color) for where the name comes from. To cite: "The name Indian red derives from the red laterite soil found in India

[R] WG: Packegs for mathematics

2020-11-16 Thread ELLENBERGER Mihaela via R-help
Von: ELLENBERGER Mihaela Gesendet: Montag, 16. November 2020 10:24 An: cran-submissi...@r-project.org Betreff: Packegs for mathematics Hello I'm undergraduated student of Biomedical Sciences in Switzerland and learning how to work with R. Currently I'm

[R] [R-pkgs] Package 'sftrack': Modern classes for tracking and movement data

2020-11-16 Thread Mathieu Basille
Dear R users and developers, The 'sftrack' package is finally on CRAN! https://cran.r-project.org/package=sftrack 'sftrack' provides modern classes for tracking and movement data, relying on 'sf' spatial infrastructure. Tracking data are made of tracks, i.e. series of locations with at least

Re: [R] Inappropriate color name

2020-11-16 Thread Mitchell Maltenfort
According to Wikipedia -- https://en.wikipedia.org/wiki/Indian_red_(color) -- "Indian red" refers to a pigment from India. The Wikipedia page reports that Crayola were concerned about the mistaken etymology so used the name "Chestnut" On Mon, Nov 16, 2020 at 1:39 PM Lainey Gallenberg <

[ESS] rstudio-outline

2020-11-16 Thread Stephen Eglen via ESS-help
Here's a little snippet I wrote to generate comments of the form ## Create some journal names ### These are recognised by rstudio (among others) as section delimeters. https://support.rstudio.com/hc/en-us/articles/200484568-Code-Folding-and-Sections