Re: [R-es] ggplot con gradientes complejos

2019-09-19 Thread Emilio L. Cano
Hola Manuel,

Ten en cuenta que la intensidad del color depende de la escala de la variable. 
Limits = c(-200, 200) pone los que hay fuera con el color NA por defecto 
(gris). No estoy seguro pero creo que si los positivos no se distingue el color 
es porque es “casi blanco”, supongo que debido a que los datos son muy 
asimétricos y los valores por debajo de -200 son muy grandes en valor absoluto 
con respecto a los que hay por encima de 200. Y por definición, es una escala 
de color que depende de la magnitud de la variable. 

Tal vez puedas mejorar la visualización cambiando el color del punto central 
(argumento “mid”), en vez de blanco, por algún tono de rojo intermedio.

Si esto no lo soluciona intenta pegar el ejemplo con un subconjunto de datos 
con el que se pueda reproducir (es fácil con datapasta+reprex: 
https://reprex.tidyverse.org/articles/articles/datapasta-reprex.html)

Un saludo,
Emilio

> El 19 sept 2019, a las 18:34, Manuel Mendoza  
> escribió:
> 
> Muy buenas. Quiero hacer un mapa que me pinte en azul los valores negativos
> y en rojo los positivos. Los negativos llegan hasta -400 y los positivos
> hasta 200. Si pongo  limits=c(-200, 200), me colorea bien los positivos
> (rojo), pero los negativos por debajo de -200 me los pone gris.  Si pongo
> limits=c(-400, 200), me colorea bien los negativos (azul), pero los
> positivos apenas se ven. Necesito que me pinte los azules como el primero,
> y los azules como el segundo.
> Gracias
> 
> Este es el código:
>   ggplot(legend=FALSE)+
>   theme(panel.background=element_blank())+
>   theme(panel.grid.major = element_blank())+
>   theme(panel.grid.minor = element_blank())+
> 
> theme(axis.text.x=element_blank(),axis.text.y=element_blank())+
>   theme(axis.ticks = element_blank()) + xlab("") + ylab("")+
> 
> geom_point(data=SGData2,aes(x=lon,y=lat,color=Ch7085),shape=15,size=1.5) +
>  * scale_colour_gradient2(limits=c(-400, 200),low =
> "blue",high="red",midpoint=0*,
>   guide="colourbar")+geom_path(data=world, aes(x=long,
> y=lat,group=group))+
>   labs(title =  "ch7085")
> 
>   [[alternative HTML version deleted]]
> 
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] [SPAM] Re: The "--slave" option

2019-09-19 Thread Richard O'Keefe
Nobody would use "stentorian" as an alternative to "verbose" because they
mean very different things.
  "verbose" means "using many words"
  "stentorian" means "talking very loudly, like Stentor, whose voice was as
powerful
  as fifty voices of other men".
You can be verbose while talking in a whisper.
You can be stentorian while being laconic.

If you don't like the word "slave", the option "--silent" is there for you
to use.

The "master-slave" design pattern is in hundreds of books (although I note
that
Erlang uses different terminology).  Your car has a master hydraulic
cylinder and
slave cylinders.  The analogy is pervasive in technology.  See a very short
list
at https://en.wikipedia.org/wiki/Master/slave_(technology)
which ends with "Global Language Monitor
 found the term
"master/slave" to be the most
egregious example of political correctness
 in 2004, and named it
the most politically
incorrect term of that year."

The one thing "slave" does not mean in technology is any kind of human
being.

On Thu, 19 Sep 2019 at 21:51, Benjamin Lang  wrote:

> Dear Richard,
>
> Thank you, that’s interesting. There is also something called an
> “etymological fallacy”. I think current usage is more useful here than the
> “science of truth”, i.e. the Ancient Greek idea that the (sometimes
> inferred) derivation of a word allows us to grasp “the truth of it”.
>
> In current usage, a “server” is someone who brings you dishes in a
> restaurant. A “client” is a customer. A “slave” is a human being forced to
> perform work under duress and considered nothing more than a machine, say a
> dishwasher or a tractor. And in some regions, this echoes on and is
> offensive and hurtful to some.
>
> A new user, wanting to reduce output from R, would probably reach for “-q”
> or “—quiet”. This makes sense in the same way that “—stentorian” is not a
> good alternative to “—verbose”.
>
> Best,
> Ben
>
> On 19 Sep 2019, at 10:55, Richard O'Keefe  wrote:
>
> One of my grandfathers was from Croatia.  Guess what the word "slave" is
> derived
> from?  That's right, Slavs.  This goes back to the 9th century.  And then
> of course
> my grandfather's people were enslaved by the Ottoman empire, which was
> only defeated
> a little over a hundred years ago.  My other grandfather was from the
> British isles,
> where to this day followers of the same prophet are enslaving people like
> me
> (except for being female).  So I'm sorry, but I'm not impressed.
>
> How many computers are "servers"?  There's that whole client-server thing.
> Guess what "server" comes from?  That's right, the Latin word "servus",
> which
> means guess what?  You got it again: "slave".  Are we to abolish the word
> "server"?  What about the word "client"?  Ah, that's part of the
> client-patron
> system from Rome, so what about the patriarchy, eh?
>
> We are dealing with something called "the genetic fallacy".
> "The genetic *fallacy* (also known as the *fallacy of origins* ...)
>  is a *fallacy* of irrelevance that is based solely on someone's
>  or something's history, *origin*, or source rather than its
>  current meaning or context."  (Wikipedia.)
>
> Context matters.
>
>
>
> On Thu, 19 Sep 2019 at 17:10, Abby Spurdle  wrote:
>
>> > Personally I much prefer backwards compatibility to political
>> correctness.
>>
>> I agree with Rolf, here.
>> And as someone that's planning to write a Linux Terminal Emulator, in
>> the medium-term future, I *strongly* defend this approach.
>>
>> And to the original poster.
>> Haven't you seen The Matrix?
>> (Second best movie ever, after the Shawshank Redemption).
>>
>> I would prefer the technology to be my slave, than I be a
>> prisoner/slave to the technology.
>>
>> __
>> 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.
>>
>

[[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] [SPAM] Re: The "--slave" option

2019-09-19 Thread Duncan Murdoch

On 19/09/2019 4:12 p.m., Roy Mendelssohn - NOAA Federal via R-help wrote:

Hi Ben:

Without commenting one way or another on your point,  your initial post seemed 
a lot like trolling because of:


Let me reiterate that it is 2019, i.e. "The Future", rather than 1970 when
R was presumably developed, based on its atrocious syntax, documentation
and usability (I think I only need to say "NaN", "NULL", and "NA").



You are certainly welcome to your opinions about R,  but these comments are 
totally aside from what I assume is your main point,  and because of this my 
first reaction was don't feed the trolls.


Why have a second reaction?  Trolls are bullies, bullies should be ignored.

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] The way giving the suitable data structure to the obtained data for the use of "prospectr"

2019-09-19 Thread Jim Lemon
Hi rhotuser,
Your question is really not about R, but about understanding IR
spectroscopy methods for soil composition. That's not my field, and
you will be lucky to find someone on this help list who is:
1) an expert in the field
2) willing to explain the methods used in the prospectr package
Maybe reading an introduction to the field will be a good start:

https://en.wikipedia.org/wiki/Near-infrared_spectroscopy

then a Google search for "NIR soil analysis"

Jim

On Fri, Sep 20, 2019 at 3:39 AM  wrote:
>
> Dear Sir,
> I want to use the "prospectr" for the obtained spectra like the attached 
> file, "Nirspectra".
>   However, my understanding level of the data structure of "NIRsoil" is not 
> yet enough.
>   reference:  
> https://cran.r-project.org/web/packages/prospectr/vignettes/prospectr-intro.pdf
> data(NIRsoil)str(NIRsoil) ->  A little complicated for me.
> I have 2 questions.
>  I want to make the data structure of "Nirspectra" to be applied directly for 
> "prospectre".
> 1. Please tell me the detail way for giving suitable data structure toward  
> "Nirspectra".
>   abc<-read.csv('Nirspectra.csv')
>
>   
> ---
>   My estimation of the final data sturucture of "Nirspectra"  for the direct 
> use of "prospectr"
>  'data.frame':   57 obs. of  3 variables:   $ train: num  1 1 0 1 1 0 1 1 0 1 
> ...   $ dep  : num  87.33 87 87.08 89.67 84.92 84.67 
> 89.33...   $ spc  : num [2:58, 1:36] ...
> 2. Which is right, num [2:58, 1:36] or num [1:58, 1:36] ?
> Best Regards,__
> 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-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] If Loop With Lagged Variable

2019-09-19 Thread Rui Barradas

Hello,

The following might be a better solution.
I include a minimal data set as an example.


Date <- c(rep(as.Date("2018-03-29"), 4),
  rep(as.Date("2018-03-30"), 4),
  rep(as.Date("2018-04-01"), 4))

ari18.test3 <- data.frame(Date)
ari18.test3$GameNum <- 1

#---

d <- c(0, diff(ari18.test3$Date) != 0)
ari18.test3$GameNum <- ari18.test3$GameNum + cumsum(d)

ari18.test3
# Date GameNum
#1  2018-03-29   1
#2  2018-03-29   1
#3  2018-03-29   1
#4  2018-03-29   1
#5  2018-03-30   2
#6  2018-03-30   2
#7  2018-03-30   2
#8  2018-03-30   2
#9  2018-04-01   3
#10 2018-04-01   3
#11 2018-04-01   3
#12 2018-04-01   3


Hope this helps,

Rui Barradas

Às 22:09 de 19/09/19, Rui Barradas escreveu:

Hello,

There was no attachment, R-Help allows only a limited number of file 
types, see the posting guide and try reposting.


As for the question, try ifelse, the vectorized fom of if/else.

ifelse(ari18.test3$Date > lag(ari18.test3$Date), ari18.tesm3$GameNum + 
1, ari18.test3$gameNum)



(Not tested, since there is no data.)

Hope this helps,

Rui Barradas

Às 17:27 de 19/09/19, Phillip Heinrich escreveu:
Attached is every at bat for the Arizona Diamondback’s first three 
games of 2018 – BBdata1.rda.  I added the Date and DHCode variables by 
parsing the first variable labeled GameID.


BBdata2 is a reduced dataset with five variables as shown in the str() 
command.


data.frame':    234 obs. of  5 variables:
  $ GameID : Factor w/ 3 levels "ARI201803290",..: 1 1 1 1 1 1 1 1 1 1 
...
  $ Date   : Date, format: "2018-03-29" "2018-03-29" "2018-03-29" 
"2018-03-29" ...

  $ DHCode : Factor w/ 1 level "0": 1 1 1 1 1 1 1 1 1 1 ...
  $ GameNum: num  1 1 1 1 1 1 1 1 1 1 ...
  $ Date2  : Date, format: NA "2018-03-29" "2018-03-29" "2018-03-29" ...
   I’m trying to increment the GameNum (game number) to game 2 when 
the date changes from 2018-03-29 to 2018-03-30 in row 81 and to game 3 
in row 165.


According to my R for Dummies book the following code should work but 
it doesn’t.  I keep getting the following error.  Any suggestions?


if(ari18.test3$Date > lag(ari18.test3$Date)) {ari18.test3$gameNum <- 
ari18.tesm3$GameNum + 1}

Warning message:
In if (ari18.test3$Date > lag(ari18.test3$Date)) { :
   the condition has length > 1 and only the first element will be used
 >


Thanks.
__
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-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-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] If Loop With Lagged Variable

2019-09-19 Thread Rui Barradas

Hello,

There was no attachment, R-Help allows only a limited number of file 
types, see the posting guide and try reposting.


As for the question, try ifelse, the vectorized fom of if/else.

ifelse(ari18.test3$Date > lag(ari18.test3$Date), ari18.tesm3$GameNum + 
1, ari18.test3$gameNum)



(Not tested, since there is no data.)

Hope this helps,

Rui Barradas

Às 17:27 de 19/09/19, Phillip Heinrich escreveu:

Attached is every at bat for the Arizona Diamondback’s first three games of 
2018 – BBdata1.rda.  I added the Date and DHCode variables by parsing the first 
variable labeled GameID.

BBdata2 is a reduced dataset with five variables as shown in the str() command.

data.frame':234 obs. of  5 variables:
  $ GameID : Factor w/ 3 levels "ARI201803290",..: 1 1 1 1 1 1 1 1 1 1 ...
  $ Date   : Date, format: "2018-03-29" "2018-03-29" "2018-03-29" "2018-03-29" 
...
  $ DHCode : Factor w/ 1 level "0": 1 1 1 1 1 1 1 1 1 1 ...
  $ GameNum: num  1 1 1 1 1 1 1 1 1 1 ...
  $ Date2  : Date, format: NA "2018-03-29" "2018-03-29" "2018-03-29" ...
   I’m trying to increment the GameNum (game number) to game 2 when the date 
changes from 2018-03-29 to 2018-03-30 in row 81 and to game 3 in row 165.

According to my R for Dummies book the following code should work but it 
doesn’t.  I keep getting the following error.  Any suggestions?

if(ari18.test3$Date > lag(ari18.test3$Date)) {ari18.test3$gameNum <- 
ari18.tesm3$GameNum + 1}
Warning message:
In if (ari18.test3$Date > lag(ari18.test3$Date)) { :
   the condition has length > 1 and only the first element will be used
  
  
 >
  



Thanks.
__
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-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] [SPAM] Re: The "--slave" option

2019-09-19 Thread Roy Mendelssohn - NOAA Federal via R-help
Hi Ben:

Without commenting one way or another on your point,  your initial post seemed 
a lot like trolling because of:

> Let me reiterate that it is 2019, i.e. "The Future", rather than 1970 when
> R was presumably developed, based on its atrocious syntax, documentation
> and usability (I think I only need to say "NaN", "NULL", and "NA").
> 

You are certainly welcome to your opinions about R,  but these comments are 
totally aside from what I assume is your main point,  and because of this my 
first reaction was don't feed the trolls.

My $0.02.

-Roy

> On Sep 19, 2019, at 2:51 AM, Benjamin Lang  wrote:
> 
> Dear Richard,
> 
> Thank you, that’s interesting. There is also something called an 
> “etymological fallacy”. I think current usage is more useful here than the 
> “science of truth”, i.e. the Ancient Greek idea that the (sometimes inferred) 
> derivation of a word allows us to grasp “the truth of it”. 
> 
> In current usage, a “server” is someone who brings you dishes in a 
> restaurant. A “client” is a customer. A “slave” is a human being forced to 
> perform work under duress and considered nothing more than a machine, say a 
> dishwasher or a tractor. And in some regions, this echoes on and is offensive 
> and hurtful to some.
> 
> A new user, wanting to reduce output from R, would probably reach for “-q” or 
> “—quiet”. This makes sense in the same way that “—stentorian” is not a good 
> alternative to “—verbose”. 
> 
> Best,
> Ben
> 
>> On 19 Sep 2019, at 10:55, Richard O'Keefe  wrote:
>> 
>> One of my grandfathers was from Croatia.  Guess what the word "slave" is 
>> derived
>> from?  That's right, Slavs.  This goes back to the 9th century.  And then of 
>> course
>> my grandfather's people were enslaved by the Ottoman empire, which was only 
>> defeated
>> a little over a hundred years ago.  My other grandfather was from the 
>> British isles,
>> where to this day followers of the same prophet are enslaving people like me
>> (except for being female).  So I'm sorry, but I'm not impressed.
>> 
>> How many computers are "servers"?  There's that whole client-server thing.
>> Guess what "server" comes from?  That's right, the Latin word "servus", which
>> means guess what?  You got it again: "slave".  Are we to abolish the word
>> "server"?  What about the word "client"?  Ah, that's part of the 
>> client-patron
>> system from Rome, so what about the patriarchy, eh?
>> 
>> We are dealing with something called "the genetic fallacy".
>> "The genetic fallacy (also known as the fallacy of origins ...)
>> is a fallacy of irrelevance that is based solely on someone's
>> or something's history, origin, or source rather than its
>> current meaning or context."  (Wikipedia.)
>> 
>> Context matters.
>> 
>> 
>> 
>>> On Thu, 19 Sep 2019 at 17:10, Abby Spurdle  wrote:
 Personally I much prefer backwards compatibility to political correctness.
>>> 
>>> I agree with Rolf, here.
>>> And as someone that's planning to write a Linux Terminal Emulator, in
>>> the medium-term future, I *strongly* defend this approach.
>>> 
>>> And to the original poster.
>>> Haven't you seen The Matrix?
>>> (Second best movie ever, after the Shawshank Redemption).
>>> 
>>> I would prefer the technology to be my slave, than I be a
>>> prisoner/slave to the technology.
>>> 
>>> __
>>> 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.
> 
>   [[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.

**
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@noaa.gov www: https://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

__
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] [SPAM] Re: The "--slave" option

2019-09-19 Thread Ivan Krylov
On Thu, 19 Sep 2019 11:51:13 +0200
Benjamin Lang  wrote:

> A new user, wanting to reduce output from R, would probably reach for
> “-q” or “—quiet”.

Not to argue against your point, but note that (1) --quiet is already a
flag which means something else and (2) --slave is not only a command
line option, but also a structure field name. You can find it in
src/include/R_ext/RStartup.h, not far away from typedef enum { ...
SA_SUICIDE } SA_TYPE. There is also a public API endpoint R_Suicide in
src/include/Rinterface.h.

One could think that R sources should come with trigger warnings or
something.

-- 
Best regards,
Ivan

__
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] Problem loading packages in R 3.6.1

2019-09-19 Thread David Winsemius



On 9/19/19 1:11 AM, Jeff Newmiller wrote:

Since no answer has been forthcoming, my advice is to read the Posting Guide. 
There is a more appropriate list for your question, and you should take the 
warning about posting using plain text format on all r-project mailing lists 
seriously.

On September 17, 2019 9:55:31 AM PDT, Thomas Knox  wrote:

I have recently installed R 3.6.1 on my MacBook running Mac OS Mojave
10.14.5 in order to run a custom package called MH1823 (probability of
detection).  This package requires me to load the following packages

>from CRAN, tcltk, tcltk2, survival and xlsx.


Which down below we see requires that the java development kit be 
installed correctly for xlsx. This has been a recurrent issue on the Mac 
and there are many question about it on the correct mailing list, which 
is not rhelp, but rather R-SIG-mac.



Here's a link to the MarkLogic archive of r-sig-mac


https://markmail.org/search/?q=+list%3Aorg.r-project.r-sig-mac+install+java#query:list%3Aorg.r-project.r-sig-mac%20install%20java%20order%3Adate-backward+page:1+state:facets


... and if you don't want to use it then try rseek.org with a search 
strategy of "install java mac". If that doesn't satisfy, then subscribe 
and post a question on r-sig-mac with a full description of  results of 
trying to install a newer version of java. I have version 10.0.1 on my 
Mojave laptop.



--

David.


I have installed survival, xlsx and tlctk2 (i believe tcltk is
embedded).  When I look at Package Manager i see that although the
above packages are installed they are not loaded.  I can load survival
but when I try to load “xlsx” i get the following  error message is:

Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object
'/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so,
6): Library not loaded:
/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
Referenced from:
/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so
  Reason: image not found
starting httpd help server … done


there may be a couple of hints in here.

.onLoad failed in loadNamespace() for 'rJava', details  suggests the
problem starts with calling rJava.

the next line in the error:
error: unable to load shared object
'/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':
I have checked this path and see no problems, everything seems to stack
up and I find jJava.so where it is supposed to be.  However in the next
line:
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so,
6): Library not loaded:
/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
I don’t know what the number , 6 after Java.so means but have presumed
version number and may be why Java8 is not working.  I also note the
path …. /JavaVirtualMachines/jdk-11.0.1.jdk/ appears as .
/JavaVirtualMachines/1.6.0.jdk/
suggesting a different build

the same occurs when I try to load the local source package MH1823

When I try to load HM1823 I get the error message:
* installing *source* package ‘mh1823’ ...
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object
'/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so,
6): Library not loaded:
/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
Referenced from:
/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so
  Reason: image not found
Error: package ‘xlsx’ could not be loaded
Execution halted
ERROR: lazy loading failed for package ‘mh1823’
* removing
‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/mh1823’
I find that the error message is substantially the same suggesting
rJava and/or the version of Java.  I have tried removing Java 8 from my
machine and installing Java 6 but don’t see any difference.  It is easy
to see that Java 8 has been removed but not easy to see that 6 is
installed properly as the path names are still the same.

When I try to load either tcltk or tcltk2, my instance of R stops
responding entirely.

I have also installed Xquartz as I believe this is needed for Mac OS X

Can anyone provide some advice on what the issue might be?  I have
tried reading through the FAQ’s but not found anything to point me in
the right direction.

Regards,

Tom Knox
[[alternative HTML 

[R] Help

2019-09-19 Thread s.rezaalavian--- via R-help
Hello,

I' have just tried to submit a package to CRAN which has a Bioconductor
dependency. I import "GeneticsPed" in my package but
 when installing it, have this error:

ERROR: dependency 'GeneticsPed' is not available for package 'LRQMM'
* removing 'C:/Users/.../LRQMM'.

or this check: 
https://cran.um.ac.ir/web/checks/check_results_LRQMM.html

I tried "biocViews " in description file with empty form, but not been
succeed.

How can i solving this problem?

Thanks,

Sayyed Reza Alavian
[[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] If Loop With Lagged Variable

2019-09-19 Thread Phillip Heinrich
Attached is every at bat for the Arizona Diamondback’s first three games of 
2018 – BBdata1.rda.  I added the Date and DHCode variables by parsing the first 
variable labeled GameID.

BBdata2 is a reduced dataset with five variables as shown in the str() command.

data.frame':234 obs. of  5 variables:
 $ GameID : Factor w/ 3 levels "ARI201803290",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ Date   : Date, format: "2018-03-29" "2018-03-29" "2018-03-29" "2018-03-29" 
...
 $ DHCode : Factor w/ 1 level "0": 1 1 1 1 1 1 1 1 1 1 ...
 $ GameNum: num  1 1 1 1 1 1 1 1 1 1 ...
 $ Date2  : Date, format: NA "2018-03-29" "2018-03-29" "2018-03-29" ...
  I’m trying to increment the GameNum (game number) to game 2 when the date 
changes from 2018-03-29 to 2018-03-30 in row 81 and to game 3 in row 165.

According to my R for Dummies book the following code should work but it 
doesn’t.  I keep getting the following error.  Any suggestions?

if(ari18.test3$Date > lag(ari18.test3$Date)) {ari18.test3$gameNum <- 
ari18.tesm3$GameNum + 1}
Warning message:
In if (ari18.test3$Date > lag(ari18.test3$Date)) { :
  the condition has length > 1 and only the first element will be used
 
 
>  
 


Thanks.
__
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] The way giving the suitable data structure to the obtained data for the use of "prospectr"

2019-09-19 Thread rhotuser
Dear Sir,
    I want to use the "prospectr" for the obtained spectra like the attached 
file, "Nirspectra".
  However, my understanding level of the data structure of "NIRsoil" is not yet 
enough.
  reference:  
https://cran.r-project.org/web/packages/prospectr/vignettes/prospectr-intro.pdf
data(NIRsoil)str(NIRsoil) ->  A little complicated for me.
I have 2 questions.
 I want to make the data structure of "Nirspectra" to be applied directly for 
"prospectre".
1. Please tell me the detail way for giving suitable data structure toward  
"Nirspectra".
  abc<-read.csv('Nirspectra.csv')

  
--- 
 My estimation of the final data sturucture of "Nirspectra"  for the direct use 
of "prospectr"
 'data.frame':   57 obs. of  3 variables:   $ train: num  1 1 0 1 1 0 1 1 0 1 
...   $ dep  : num  87.33 87 87.08 89.67 84.92 84.67 
89.33...   $ spc  : num [2:58, 1:36] ...
2. Which is right, num [2:58, 1:36] or num [1:58, 1:36] ?
Best Regards,name,900,920,940,960,980,1000,1020,1040,1060,1080,1100,1120,1140,1160,1180,1200,1220,1240,1260,1280,1300,1320,1340,1360,1380,1400,1420,1440,1460,1480,1500,1520,1540,1560,1580,1600,train,dep
S001,0.214597,0.236415,0.211047,0.197936,0.197101,0.205909,0.218597,0.210746,0.206544,0.201538,0.19935,0.212085,0.32697,0.392692,0.538561,0.718793,0.47983,0.303287,0.249064,0.219941,0.217121,0.216288,0.227625,0.361691,0.589986,0.645988,0.538654,0.461594,0.370164,0.337078,0.309021,0.262839,0.240016,0.232166,0.239428,0.25571,1,87.33
S002,0.219759,0.240202,0.216255,0.20359,0.202788,0.211104,0.223096,0.216162,0.212126,0.206907,0.205559,0.22059,0.358809,0.403105,0.529755,0.705452,0.478242,0.303177,0.250955,0.22484,0.222792,0.222059,0.234679,0.3573,0.570629,0.627256,0.532968,0.456798,0.369587,0.338996,0.307965,0.266983,0.246177,0.237545,0.243874,0.259296,1,87
S003,0.216448,0.237912,0.212937,0.199969,0.199241,0.207898,0.220397,0.212948,0.20867,0.203514,0.201652,0.215234,0.339215,0.39652,0.535325,0.715063,0.481792,0.303144,0.249639,0.221632,0.219309,0.218484,0.230227,0.359782,0.582296,0.638856,0.537278,0.459966,0.370002,0.337218,0.308021,0.264629,0.242777,0.23415,0.240941,0.256484,0,87.08
S004,0.220137,0.24033,0.215534,0.203717,0.203114,0.211853,0.224111,0.216032,0.212141,0.207164,0.205407,0.220011,0.357912,0.402045,0.53232,0.698932,0.459365,0.300909,0.250722,0.223777,0.222507,0.71,0.234684,0.366456,0.585544,0.636199,0.530064,0.457917,0.370126,0.340554,0.311672,0.265992,0.244098,0.237214,0.244729,0.26158,1,89.67
S005,0.213751,0.236162,0.211233,0.197211,0.196165,0.204683,0.217337,0.210582,0.206133,0.200935,0.198995,0.211744,0.325616,0.391914,0.536607,0.727977,0.501762,0.304779,0.248992,0.220078,0.217065,0.2156,0.226918,0.352821,0.57746,0.639063,0.542465,0.461136,0.369268,0.334596,0.304883,0.263436,0.241922,0.231888,0.237418,0.252461,1,84.92
S006,0.21427,0.236772,0.211726,0.197763,0.196623,0.205152,0.21774,0.22,0.206719,0.201552,0.199555,0.212188,0.323773,0.392939,0.538359,0.73038,0.502552,0.306028,0.249741,0.220786,0.217647,0.21612,0.227467,0.353544,0.578485,0.640407,0.543936,0.461733,0.37023,0.335319,0.305446,0.263784,0.242209,0.232352,0.238188,0.253036,0,84.67
S007,0.220322,0.240446,0.215729,0.203858,0.203282,0.212007,0.224077,0.216113,0.212196,0.207214,0.205509,0.220134,0.357886,0.402104,0.5323,0.698869,0.459471,0.300931,0.250607,0.224062,0.222468,0.04,0.234656,0.366339,0.585453,0.636356,0.530152,0.457866,0.370131,0.340759,0.311858,0.265952,0.244148,0.237362,0.244701,0.261598,1,89.33
S008,0.21666,0.238323,0.212925,0.199978,0.199124,0.208058,0.220728,0.21285,0.208632,0.203682,0.201468,0.214403,0.331459,0.394867,0.539399,0.718464,0.479842,0.304914,0.250765,0.221781,0.219198,0.218318,0.229903,0.363731,0.590924,0.646568,0.539432,0.462627,0.371589,0.339133,0.310847,0.264532,0.242019,0.234185,0.241428,0.257564,1,87.58
S009,0.213867,0.236291,0.211363,0.197503,0.196582,0.205172,0.217888,0.211136,0.20664,0.201458,0.199525,0.212273,0.325596,0.392099,0.536894,0.728243,0.501776,0.304886,0.249364,0.220533,0.217685,0.216221,0.227548,0.353467,0.577907,0.639687,0.543177,0.461614,0.369762,0.334909,0.305169,0.263891,0.242408,0.232431,0.23813,0.253083,0,84.5
S010,0.221843,0.241514,0.216588,0.205364,0.204917,0.213712,0.225604,0.217193,0.213514,0.208678,0.207079,0.222416,0.367651,0.406293,0.53057,0.690869,0.444372,0.297233,0.249787,0.224422,0.223518,0.223749,0.236797,0.37012,0.586896,0.633495,0.525145,0.454636,0.369145,0.341177,0.312429,0.265892,0.244512,0.238601,0.246392,0.263583,1,91.67
S011,0.215078,0.236834,0.211281,0.19822,0.197324,0.206206,0.218967,0.29,0.206885,0.201989,0.19972,0.212468,0.326896,0.39312,0.539535,0.71956,0.480494,0.303759,0.249389,0.220238,0.217519,0.216699,0.228127,0.362834,0.591117,0.646457,0.539409,0.46186,0.370534,0.337307,0.309375,0.263084,0.24047,0.23258,0.239658,0.255924,1,87.08

Re: [R] [SPAM] Re: The "--slave" option

2019-09-19 Thread Benjamin Lang
Dear Richard,

Thank you, that’s interesting. There is also something called an “etymological 
fallacy”. I think current usage is more useful here than the “science of 
truth”, i.e. the Ancient Greek idea that the (sometimes inferred) derivation of 
a word allows us to grasp “the truth of it”. 

In current usage, a “server” is someone who brings you dishes in a restaurant. 
A “client” is a customer. A “slave” is a human being forced to perform work 
under duress and considered nothing more than a machine, say a dishwasher or a 
tractor. And in some regions, this echoes on and is offensive and hurtful to 
some.

A new user, wanting to reduce output from R, would probably reach for “-q” or 
“—quiet”. This makes sense in the same way that “—stentorian” is not a good 
alternative to “—verbose”. 

Best,
Ben

> On 19 Sep 2019, at 10:55, Richard O'Keefe  wrote:
> 
> One of my grandfathers was from Croatia.  Guess what the word "slave" is 
> derived
> from?  That's right, Slavs.  This goes back to the 9th century.  And then of 
> course
> my grandfather's people were enslaved by the Ottoman empire, which was only 
> defeated
> a little over a hundred years ago.  My other grandfather was from the British 
> isles,
> where to this day followers of the same prophet are enslaving people like me
> (except for being female).  So I'm sorry, but I'm not impressed.
> 
> How many computers are "servers"?  There's that whole client-server thing.
> Guess what "server" comes from?  That's right, the Latin word "servus", which
> means guess what?  You got it again: "slave".  Are we to abolish the word
> "server"?  What about the word "client"?  Ah, that's part of the client-patron
> system from Rome, so what about the patriarchy, eh?
> 
> We are dealing with something called "the genetic fallacy".
> "The genetic fallacy (also known as the fallacy of origins ...)
>  is a fallacy of irrelevance that is based solely on someone's
>  or something's history, origin, or source rather than its
>  current meaning or context."  (Wikipedia.)
> 
> Context matters.
> 
> 
> 
>> On Thu, 19 Sep 2019 at 17:10, Abby Spurdle  wrote:
>> > Personally I much prefer backwards compatibility to political correctness.
>> 
>> I agree with Rolf, here.
>> And as someone that's planning to write a Linux Terminal Emulator, in
>> the medium-term future, I *strongly* defend this approach.
>> 
>> And to the original poster.
>> Haven't you seen The Matrix?
>> (Second best movie ever, after the Shawshank Redemption).
>> 
>> I would prefer the technology to be my slave, than I be a
>> prisoner/slave to the technology.
>> 
>> __
>> 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.

[[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] The "--slave" option

2019-09-19 Thread Maksim Fomin
> How, in late 2019, is there an option called "--slave" to "make R run as
quietly as possible"?

The word "slave" is fine for computer science because a) none tries to make a 
real person slave and b) historical reasons and backwards compability. You may 
be against b), but this is your problem.

What is wrong here, is that some minor group striking for political correctness 
tries to impose its behavior in technical field. It's a shame that sometimes 
such group wins (for example, as in the Python case).

Best regards,
Maxim Fomin

__
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] Conversion of multivariate time series to functional time series

2019-09-19 Thread Faheem Jan via R-help
Hi, i am try to generalize the Functional autoregressive model of order one 
FAR(1) to FAR(p) through  functional principle component by  choosing a 
particular amount of variation, then using the functional scores of functional 
principle component  for the prediction of vector autoregressive model i.e 
VAR(p) time series through VAR package, now i want to transform these 
prediction into functional form, this can be done through karhunen loeve 
transformation but how i could do this R. Can any body help me in this regard

[[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-es] ggplot con gradientes complejos

2019-09-19 Thread Manuel Mendoza
Muy buenas. Quiero hacer un mapa que me pinte en azul los valores negativos
y en rojo los positivos. Los negativos llegan hasta -400 y los positivos
hasta 200. Si pongo  limits=c(-200, 200), me colorea bien los positivos
(rojo), pero los negativos por debajo de -200 me los pone gris.  Si pongo
limits=c(-400, 200), me colorea bien los negativos (azul), pero los
positivos apenas se ven. Necesito que me pinte los azules como el primero,
y los azules como el segundo.
Gracias

Este es el código:
   ggplot(legend=FALSE)+
   theme(panel.background=element_blank())+
   theme(panel.grid.major = element_blank())+
   theme(panel.grid.minor = element_blank())+

 theme(axis.text.x=element_blank(),axis.text.y=element_blank())+
   theme(axis.ticks = element_blank()) + xlab("") + ylab("")+

 geom_point(data=SGData2,aes(x=lon,y=lat,color=Ch7085),shape=15,size=1.5) +
  * scale_colour_gradient2(limits=c(-400, 200),low =
"blue",high="red",midpoint=0*,
   guide="colourbar")+geom_path(data=world, aes(x=long,
y=lat,group=group))+
   labs(title =  "ch7085")

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] [EXTERNAL] Re: The "--slave" option

2019-09-19 Thread Sicotte, Hugues, Ph.D. via R-help
I prefer backward compatibility to PC too, but since we're on the topic,

My personal PC advocacy  is against the term blacklist always being associated 
with some "negatives".

A search of CRAN found several packages using this term.
I advocate using a more descriptive term, such.

Falsepositivelist
truenegativelist
forbiddenlist
etc..

Package maintainers can keep the old term, but please mark it as deprecated.
Thank you for your consideration.

Hugues Sicotte 

-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rolf Turner
Sent: Wednesday, September 18, 2019 6:10 PM
To: Benjamin Lang
Cc: r-help@r-project.org
Subject: [EXTERNAL] Re: [R] The "--slave" option


On 18/09/19 6:00 PM, Benjamin Lang wrote:

> Dear R project,
> 
> I have a very simple question:
> 
> How, in late 2019, is there an option called "--slave" to "make R run as
> quietly as possible"?
> 
> Let me reiterate that it is 2019, i.e. "The Future", rather than 1970 when
> R was presumably developed, based on its atrocious syntax, documentation
> and usability (I think I only need to say "NaN", "NULL", and "NA").
> 
> This is a disgrace and it should have been addressed one or two decades
> ago. Why not just "--quiet"?
> 
> Please do not mention "backwards compatibility".

Personally I much prefer backwards compatibility to political correctness.

> For the historically
> inclined, it does not make much of a difference whether the term evokes the
> Roman, Greek, American or modern kind of slavery for you: it is as
> disgusting as it gets.

IMHO this is a precious PC quibble, taking offence where no offence is 
intended.

If you are really concerned about literal slavery --- as everyone should 
be --- then join/contribute to an appropriate activist organisation 
(e.g. Amnesty International, which is my personal choice).

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-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] The "--slave" option

2019-09-19 Thread Patrick Connolly
On Wed, 18-Sep-2019 at 02:58PM -0700, Jeff Newmiller wrote:

|> I think there is no confusion except in the minds of those with
|> nothing better to do. I agree with Antirez, quoted in [1], which
|> nevertheless indicates that perspective lost the debate.

I agree with Jeff.  Automotive hydraulics have used terms such as
'master-cylinders' and 'slave-cylinders' without such an issue for a
century or more.  

If we have nothing else to do, we might want to purge ESS of its
so-called 'inferior processes', but it ain't me, Babe.

BTW: I've used R for 20+ years and never used a --slave option.
Should I get an award?


|> Any accurate alternative notation will have similar connotations
|> because in fact the "slave" side of that relationship is completely
|> subordinate to the "master" side... there is no escaping that
|> fact. It requires a very different and more complicated
|> architecture to achieve a "peer" relationship, which often is not
|> worth the effort or even appropriate.


|> So while Dr Lang may be mollified by a change in notation, someone
|> else is going to find the new words offensive and make the same PC
|> argument since the implications of the architecture have not
|> changed. In fact there should never have been a parallel drawn
|> between the morality of human slavery and computing architectures
|> to begin with.



|> [1] 
https://www.vice.com/en_us/article/8x7akv/masterslave-terminology-was-removed-from-python-programming-language
|> 
|> On September 18, 2019 11:57:32 AM PDT, "Patrick (Malone Quantitative)" 
 wrote:
|> >For what it's worth, this is an ongoing conversation in computer
|> >science and engineering. And has been so for decades.
|> >
|> >Not R, but related to this it's only in the past few months that a
|> >fork of the photo-manipulation software GIMP (slur for handicapped)
|> >renames it (GLIMPSE).
|> >
|> >Note, I am not saying this isn't a battle worth fighting.
|> >
|> >On Wed, Sep 18, 2019 at 1:52 PM Benjamin Lang 
|> >wrote:
|> >>
|> >> Dear R project,
|> >>
|> >> I have a very simple question:
|> >>
|> >> How, in late 2019, is there an option called "--slave" to "make R run
|> >as
|> >> quietly as possible"?
|> >>
|> >> Let me reiterate that it is 2019, i.e. "The Future", rather than 1970
|> >when
|> >> R was presumably developed, based on its atrocious syntax,
|> >documentation
|> >> and usability (I think I only need to say "NaN", "NULL", and "NA").
|> >>
|> >> This is a disgrace and it should have been addressed one or two
|> >decades
|> >> ago. Why not just "--quiet"?
|> >>
|> >> Please do not mention "backwards compatibility". For the historically
|> >> inclined, it does not make much of a difference whether the term
|> >evokes the
|> >> Roman, Greek, American or modern kind of slavery for you: it is as
|> >> disgusting as it gets.
|> >>
|> >> Thank you,
|> >> Ben
|> >>
|> >> --
|> >> Benjamin Lang, PhD
|> >> http://orcid.org/-0001-6358-8380
|> >>
|> >> Marie Sklodowska-Curie Postdoctoral Fellow (MSCA-IF)
|> >> Gene Function and Evolution (Dr. Gian Tartaglia)
|> >> Centre for Genomic Regulation (CRG), Barcelona, Spain
|> >>
|> >> [[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-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 my phone. Please excuse my brevity.
|> 
|> __
|> 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.

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~}   Great minds discuss ideas
 _( Y )_ Average minds discuss events 
(:_~*~_:)  Small minds discuss people  
 (_)-(_)  . Eleanor Roosevelt
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
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] The "--slave" option

2019-09-19 Thread Richard O'Keefe
One of my grandfathers was from Croatia.  Guess what the word "slave" is
derived
from?  That's right, Slavs.  This goes back to the 9th century.  And then
of course
my grandfather's people were enslaved by the Ottoman empire, which was only
defeated
a little over a hundred years ago.  My other grandfather was from the
British isles,
where to this day followers of the same prophet are enslaving people like me
(except for being female).  So I'm sorry, but I'm not impressed.

How many computers are "servers"?  There's that whole client-server thing.
Guess what "server" comes from?  That's right, the Latin word "servus",
which
means guess what?  You got it again: "slave".  Are we to abolish the word
"server"?  What about the word "client"?  Ah, that's part of the
client-patron
system from Rome, so what about the patriarchy, eh?

We are dealing with something called "the genetic fallacy".
"The genetic *fallacy* (also known as the *fallacy of origins* ...)
 is a *fallacy* of irrelevance that is based solely on someone's
 or something's history, *origin*, or source rather than its
 current meaning or context."  (Wikipedia.)

Context matters.



On Thu, 19 Sep 2019 at 17:10, Abby Spurdle  wrote:

> > Personally I much prefer backwards compatibility to political
> correctness.
>
> I agree with Rolf, here.
> And as someone that's planning to write a Linux Terminal Emulator, in
> the medium-term future, I *strongly* defend this approach.
>
> And to the original poster.
> Haven't you seen The Matrix?
> (Second best movie ever, after the Shawshank Redemption).
>
> I would prefer the technology to be my slave, than I be a
> prisoner/slave to the technology.
>
> __
> 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.
>

[[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] problem with pyramid.plot

2019-09-19 Thread Jim Lemon
Hi Christophe,
Your call to pyramid.plot is okay. I would make a couple of suggestions:

par(mar=pyramid.plot(males.overweight,females.overweight,
 top.labels=c("Males","Labels","Females"),laxlab=seq(0,60,by=10),
 raxlab=seq(0,30,by=10),labels=agelabels,lxcol="#74c476",rxcol="#9e9ac8",
 gap=11,show.values=TRUE))

However, I do not have shiny nor do I know how to use it. I suspect that
you may have to ask shiny for a replot rather than update. Winston
Chang (winston
at rstudio.com) is the maintainer and probably the best person to ask.

Jim

On Thu, Sep 19, 2019 at 5:55 PM Christophe greaume 
wrote:

> Hello Jim,
>
>
>
> I’ve got a problem with using pyramid.plot in shiny.
>
> I’ve made an example (PyramidOK.R) that’s working. When user change the
> value on the slider the pyramid and the exceltable change.
>
> But in my application, pyramid doesn’t change while values are ok.
>
> When I cut excelOutput("AirlineByAircraft") in UI.R, pyramid change when
> user change the value of the slider.
>
> Please consider data as non public
>  shiny.zip
> 
>
> Could you help me?
>

[[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] Problem loading packages in R 3.6.1

2019-09-19 Thread Jeff Newmiller
Since no answer has been forthcoming, my advice is to read the Posting Guide. 
There is a more appropriate list for your question, and you should take the 
warning about posting using plain text format on all r-project mailing lists 
seriously.

On September 17, 2019 9:55:31 AM PDT, Thomas Knox  wrote:
>I have recently installed R 3.6.1 on my MacBook running Mac OS Mojave
>10.14.5 in order to run a custom package called MH1823 (probability of
>detection).  This package requires me to load the following packages
>from CRAN, tcltk, tcltk2, survival and xlsx.
>
>I have installed survival, xlsx and tlctk2 (i believe tcltk is
>embedded).  When I look at Package Manager i see that although the
>above packages are installed they are not loaded.  I can load survival
>but when I try to load “xlsx” i get the following  error message is:
>
>Error: package or namespace load failed for ‘xlsx’:
> .onLoad failed in loadNamespace() for 'rJava', details:
>  call: dyn.load(file, DLLpath = DLLpath, ...)
>error: unable to load shared object
>'/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':
>dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so,
>6): Library not loaded:
>/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
>Referenced from:
>/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so
>  Reason: image not found
>starting httpd help server … done
>
>
>there may be a couple of hints in here.
>
>.onLoad failed in loadNamespace() for 'rJava', details  suggests the
>problem starts with calling rJava.
>
>the next line in the error:
>error: unable to load shared object
>'/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':
>I have checked this path and see no problems, everything seems to stack
>up and I find jJava.so where it is supposed to be.  However in the next
>line:
>dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so,
>6): Library not loaded:
>/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
>I don’t know what the number , 6 after Java.so means but have presumed
>version number and may be why Java8 is not working.  I also note the
>path …. /JavaVirtualMachines/jdk-11.0.1.jdk/ appears as .
>/JavaVirtualMachines/1.6.0.jdk/
>suggesting a different build
>
>the same occurs when I try to load the local source package MH1823
>
>When I try to load HM1823 I get the error message:
>* installing *source* package ‘mh1823’ ...
>** using staged installation
>** R
>** data
>** inst
>** byte-compile and prepare package for lazy loading
>Error: package or namespace load failed for ‘xlsx’:
> .onLoad failed in loadNamespace() for 'rJava', details:
>  call: dyn.load(file, DLLpath = DLLpath, ...)
>error: unable to load shared object
>'/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':
>dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so,
>6): Library not loaded:
>/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
>Referenced from:
>/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so
>  Reason: image not found
>Error: package ‘xlsx’ could not be loaded
>Execution halted
>ERROR: lazy loading failed for package ‘mh1823’
>* removing
>‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/mh1823’
>> 
>
>I find that the error message is substantially the same suggesting
>rJava and/or the version of Java.  I have tried removing Java 8 from my
>machine and installing Java 6 but don’t see any difference.  It is easy
>to see that Java 8 has been removed but not easy to see that 6 is
>installed properly as the path names are still the same.
>
>When I try to load either tcltk or tcltk2, my instance of R stops
>responding entirely.
>
>I have also installed Xquartz as I believe this is needed for Mac OS X
>
>Can anyone provide some advice on what the issue might be?  I have
>tried reading through the FAQ’s but not found anything to point me in
>the right direction.
>
>Regards,
>
>Tom Knox
>   [[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 my phone. Please excuse my brevity.

__
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-es] "Grupo de Usuarios de R de Madrid". Meetup conjunto con "R-Ladies"....

2019-09-19 Thread Carlos Ortega
Buenas a todos,

Gracias a todos los que pudieron venir ayer al Meetup.

Los videos de las presentaciones ya están disponibles aquí:

http://madrid.r-es.org/62-miercoles-18-de-septiembre-2019/

Gracias de nuevo!
Carlos.

El vie., 13 sept. 2019 a las 10:23, 
escribió:

> Gracias por el aviso, Carlos.
>
> Como siempre, muy buenas iniciativas.
>
> Un saludo,
> Miguel.
>
>
>
> 
> De: R-help-es  en nombre de Carlos
> Ortega 
> Enviado: viernes, 13 de septiembre de 2019 9:25
> Para: Lista R
> Asunto: [R-es] "Grupo de Usuarios de R de Madrid". Meetup conjunto con
> "R-Ladies"
>
> Buenas a todos,
>
> Aunque os puede llegar el aviso por otros medios, os anuncio por aquí el
> Meetup que estamos organizando conjuntamente el "Grupo de R de Madrid" y
> las "R-Ladies" para el miércoles de la semana que viene (18-Sep).
>
> Los detalles del evento los podéis encontrar aquí:
>
>
> https://www.meetup.com/es-ES/Grupo-de-Usuarios-de-R-de-Madrid/events/264807287/
>
> Gracias,
> Carlos Ortega
> www.qualityexcellence.es
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>
> 
>
> 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,
> por favor elimínea. A distribución ou copia desta mensaxe non está
> autorizada.
>
> Nota: La información contenida en este mensaje y sus posibles documentos
> adjuntos es privada y confidencial y está dirigida únicamente a su
> destinatario/a. Si usted no es el/la destinatario/a original de este
> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
> está autorizada.
>
> See more languages: http://www.sergas.es/aviso-confidencialidad
>


-- 
Saludos,
Carlos Ortega
www.qualityexcellence.es

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es