Re: [R] ?grid::grid-package doesn't find the grid-package help page

2019-03-18 Thread William Sones
To quote Homer Simpson "Doh!". Thank you Jeff. ?grid::`grid-package` works perfectly. Thanks Will -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: 18 March 2019 17:01 To: r-help@r-project.org; William Sones ; r-help@R-project.org Subject: Re: [R]

Re: [R] ?grid::grid-package doesn't find the grid-package help page

2019-03-18 Thread Duncan Murdoch
On 18/03/2019 1:00 p.m., Jeff Newmiller wrote: Try ?grid::`grid-package` The "-" is not a legal character in a bare symbol. Or package?grid::grid which makes use of the rarely used "type" argument to "?". Duncan Murdoch On March 18, 2019 9:35:17 AM PDT, William Sones wrote: Hi I've

Re: [R] ?grid::grid-package doesn't find the grid-package help page

2019-03-18 Thread Jeff Newmiller
Try ?grid::`grid-package` The "-" is not a legal character in a bare symbol. On March 18, 2019 9:35:17 AM PDT, William Sones wrote: >Hi > >I've entered the command "?grid::grid-package" on two computers over >here and they both direct me to the Arithmetic {base} site

[R] ?grid::grid-package doesn't find the grid-package help page

2019-03-18 Thread William Sones
Hi I've entered the command "?grid::grid-package" on two computers over here and they both direct me to the Arithmetic {base} site (http://127.0.0.1:30753/library/base/html/Arithmetic.html). Shouldn't this command direct me to the grid-package {grid} site (something like

Re: [R] looking for 'tied rows' in dataframe

2019-03-18 Thread Ben Tupper
Hi, Might you replaced 'T' with a numeric value that signals the TRUE case without rumpling your matrix? 0 might be a good choice as it is never an index for a 1-based indexing system. hold=apply(test,1,which.max) hold[apply(test,1,isUnique)==FALSE] <- 0 hold [1] 1 2 0 > On Mar 17, 2019,

Re: [R] looking for 'tied rows' in dataframe

2019-03-18 Thread Evan Cooch
Solved -- hold=apply(test,1,which.max)     hold[apply(test,1,isUnique)==FALSE] <- 'T' Now, all I need to do is figure out how to get <- 'T' from turning everything in the matrix to a string. On 3/17/2019 8:00 PM, Evan Cooch wrote: Got relatively close - below: On 3/17/2019 7:39 PM, Evan

Re: [R] looking for 'tied rows' in dataframe

2019-03-18 Thread Evan Cooch
Got relatively close - below: On 3/17/2019 7:39 PM, Evan Cooch wrote: Suppose I have the following sort of structure: test <- matrix(c(2,1,1,2,2,2),3,2,byrow=T) What I need to be able to do is (i) find the maximum value for each row, (ii) find the column containing the max, but (iii) if the

[R] looking for 'tied rows' in dataframe

2019-03-18 Thread Evan Cooch
Suppose I have the following sort of structure: test <- matrix(c(2,1,1,2,2,2),3,2,byrow=T) What I need to be able to do is (i) find the maximum value for each row, (ii) find the column containing the max, but (iii) if the maximum value is a tie (in this case, all numbers of the row are the

Re: [R] Help with gsub function

2019-03-18 Thread Bill Poling
Good morning Steve. Terrific, so kind of you to follow-up. I will add that to my ever growing R bag of tips and tricks. Cheers. WHP William H. Poling, Ph.D., MPH | Manager, Revenue Development Data Intelligence & Analytics Zelis Healthcare -Original Message- From: S Ellison Sent:

Re: [R] Help with gsub function

2019-03-18 Thread S Ellison
> tb2a$TID2 <- gsub(tb2a$TID, pattern="-[0-0]{0,7}", replacement = "") Just to add something on why this didn't work ... It looks like you were trying to match a hyphen followed by a number up to seven digits. by mistake(?) you gave the digit range as [0-0] so it would repmatch a hyphen

[R] Weighted spatial averages across grid cells in NetCDF file

2019-03-18 Thread rain1290--- via R-help
Hi there, I am currently working on a project that involves climate model data stored in a NetCDF file. I am currently trying to calculate "weighted" spatial annual "global" averages for precipitation. I need to do this for each of the 95 years of global precipitation data that I have. The idea

[R-es] Concurso de visualización de datos con R

2019-03-18 Thread miguel.angel.rodriguez.muinos
https://rusersasturias.github.io/contest/ Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe,

Re: [R-es] Ayuda para campo con numerico y texto con Problemas

2019-03-18 Thread Isidro Hidalgo Arellano
Si lo necesitas, yo puedo pasarte el nombre de las localidades de Castilla-La Mancha de cuatro formas diferentes. Un saludo Isidro Hidalgo Arellano Observatorio del Mercado de Trabajo Consejería de Economía, Empresas y Empleo