Re: [R] Change the position of label when using R package eulerr

2018-09-14 Thread David Winsemius
> On Sep 14, 2018, at 2:03 PM, Aimin Yan wrote: > > Thank you, > > I figure out a way like this: > > fit1 <- euler(c("ciLAD" = 785, "LAD" = 565, "nonXL_MEF" = 167, > "ciLAD&LAD" = 3, "ciLAD&nonXL_MEF" = 101, "LAD&nonXL_MEF" > = 541, > "ciLAD&LAD&nonXL_

Re: [R] New to R

2018-09-14 Thread David Winsemius
> On Sep 14, 2018, at 2:15 PM, MacQueen, Don via R-help > wrote: > > If l.out is not a data frame, what is it? A list? A matrix? Some other > structure? Try I thought it would be one of those variants of a zoo object. Matrix structure with specialized row.names that can handle time-date ran

Re: [R] Problem with lm.resid() when weights are provided

2018-09-14 Thread Fox, John
Dear Hamed, When you post a question to r-help, generally you should cc subsequent messages there as well, as I've done to this response. The algorithm that lm() uses is much more numerically stable than inverting the weighted sum-of-squares-and-product matrix. If you want to see how the compu

Re: [R] New to R

2018-09-14 Thread MacQueen, Don via R-help
If l.out is not a data frame, what is it? A list? A matrix? Some other structure? Try str(l.out) class(l.out) and see what you get. Can't help you convert it to a data frame without knowing what it is. After you have a data frame, then write.table(), write.csv(), or write.csv2() will "con

Re: [R] New to R

2018-09-14 Thread Bert Gunter
Others may help, but I suggest first going through an R tutorial or two to learn about R's basic data structures, i/o, etc. This list can help, but cannot substitute for such homework. Some tutorial recommendations can be found here: https://www.rstudio.com/online-learning/#r-programming There are

Re: [R] Change the position of label when using R package eulerr

2018-09-14 Thread Aimin Yan
Thank you, I figure out a way like this: fit1 <- euler(c("ciLAD" = 785, "LAD" = 565, "nonXL_MEF" = 167, "ciLAD&LAD" = 3, "ciLAD&nonXL_MEF" = 101, "LAD&nonXL_MEF" = 541, "ciLAD&LAD&nonXL_MEF" = 2),shape = "ellipse") plot(fit1,quantities = TRUE,fill = rainbo

[R] New to R

2018-09-14 Thread Jim Blackburn
I am newly subscribed to r-project. I have recently plunged into R on a totally self-taught basis (may not have been the smartest decision!) I am attempting to download tickers as a time series. I can successfully create RDA files but I want to convert them to CVS. Following is the code I

[R] label and font problems in Vennerable

2018-09-14 Thread greg holly
Hi everyone; I am running Vennerable with 7 sets of variables. The labels are not very clear and the font size is not very visible. Does anyone know how I can change the label colors and font sizes? Regards, Greg [[alternative HTML version deleted]]

Re: [R] [FORGED] Question on Binom.Confint

2018-09-14 Thread Spencer Graves
On 2018-09-14 08:52, Guo, Fang (Associate) wrote: It's method="lrt" and I used the "binom" package.   The ultimate answer can be obtained as follows: > debug(binom.confint) > binom.confint(x = 0, n = 100, tol = 1e-8, method='lrt')   Then walk through the code line by line.    

Re: [R] Help with setting locale

2018-09-14 Thread Kim Titcombe
Thanks for the tip! Kim On Fri, 14 Sep 2018, 17:51 David Winsemius, wrote: > > > On Sep 14, 2018, at 8:44 AM, David Winsemius > wrote: > > > > > >> On Sep 14, 2018, at 1:02 AM, Kim Titcombe > wrote: > >> > >> *Query or Set Aspects of the Locale* > >> > >> I have an issue with setting LOCALE in

Re: [R] Question on Binom.Confint

2018-09-14 Thread Göran Broström
On 2018-09-14 17:04, Guo, Fang (Associate) wrote: I did use library(binom). However, I was able to use the method "lrt" which is short for likelihood ratio test. You are right, there is a method "lrt", but it is not mentioned in the documentation. (Look at the code.) Göran -Origina

Re: [R] Help with setting locale

2018-09-14 Thread David Winsemius
> On Sep 14, 2018, at 8:44 AM, David Winsemius wrote: > > >> On Sep 14, 2018, at 1:02 AM, Kim Titcombe wrote: >> >> *Query or Set Aspects of the Locale* >> >> I have an issue with setting LOCALE in installation (new installation on >> new computer but have installed and used R before). >>

Re: [R] Help with setting locale

2018-09-14 Thread David Winsemius
> On Sep 14, 2018, at 1:02 AM, Kim Titcombe wrote: > > *Query or Set Aspects of the Locale* > > I have an issue with setting LOCALE in installation (new installation on > new computer but have installed and used R before). > > I am based in Switzerland but work in English (Windows in English

Re: [R] Question on Binom.Confint

2018-09-14 Thread Guo, Fang (Associate)
I did use library(binom). However, I was able to use the method "lrt" which is short for likelihood ratio test. -Original Message- From: Jim Lemon [mailto:drjimle...@gmail.com] Sent: Thursday, September 13, 2018 11:50 PM To: Guo, Fang (Associate) ; r-help mailing list Subject: Re: [R]

Re: [R] Question on Binom.Confint

2018-09-14 Thread Guo, Fang (Associate)
I used library(binom). -Original Message- From: Bert Gunter [mailto:bgunter.4...@gmail.com] Sent: Thursday, September 13, 2018 10:04 PM To: Guo, Fang (Associate) Cc: r-help-requ...@r-project.org; R-help Subject: Re: [R] Question on Binom.Confint In what package? Binomial confidence in

Re: [R] [FORGED] Question on Binom.Confint

2018-09-14 Thread Guo, Fang (Associate)
It's method="lrt" and I used the "binom" package. -Original Message- From: Rolf Turner [mailto:r.tur...@auckland.ac.nz] Sent: Thursday, September 13, 2018 10:02 PM To: Guo, Fang (Associate) Cc: r-help@R-project.org Subject: Re: [FORGED] [R] Question on Binom.Confint On 09/14/2018 08:15

Re: [R] Question on Binom.Confint

2018-09-14 Thread Bert Gunter
Then it's binom.confint (case matters in R -- PLEASE DO A TUTORIAL OR TWO!) and there is no "lrt" option. So no idea what you're referring to. -- Bert On Fri, Sep 14, 2018 at 6:53 AM Guo, Fang (Associate) wrote: > > I used library(binom). > > -Original Message- > From: Bert Gunter [mai

Re: [R] ddply (or other suitable solution) question

2018-09-14 Thread Andras Farkas via R-help
thank you all, Bert's idea will get it done... good question also re what if 1 row: have a separate plan for that... Anyhow, finishing up Bert's lines with  z<-lapply(ix, function(i)   df[i,]) lapply(z, function(x) split(x, rep(1:ceiling(nrow(x)/2), each=2)[1:nrow(x)])) seems to do what I need,

Re: [R] sink() output to another directory

2018-09-14 Thread Rich Shepard
On Fri, 14 Sep 2018, Ivan Krylov wrote: Just remove the slash from your print command (line 25 of rainfall-dubois-crk-all.r) because it's a syntax error (must be a typo). I.e. the above should be print(summary(estacada_wnw_wx)), not print(/summary(estacada_wnw_wx)) (do you notice the difference?

Re: [R] sink() output to another directory

2018-09-14 Thread Ivan Krylov
В Thu, 13 Sep 2018 15:49:52 -0700 (PDT) Rich Shepard пишет: > sink('stat-summaries/estacada-wnw-precip.txt') > print(/summary(estacada_wnw_wx)) > sink() Just remove the slash from your print command (line 25 of rainfall-dubois-crk-all.r) because it's a syntax error (must be a typo). I.e. the abo

Re: [R] sink() output to another directory [RESOLVED]

2018-09-14 Thread Rich Shepard
On Thu, 13 Sep 2018, Rich Shepard wrote: sink('stat-summary/example-output.txt') print(summary(df)) sink() My apologies to everyone for not seeing a typo further in the script. I had the path to the appropriate directory in the sink() function and the print() function had only the comm

Re: [R] sink() output to another directory

2018-09-14 Thread Sorkin, John
As has been pointed out, the correct way to direct printing to a given location is using sink( . . . put path here . . . ) then print() and then sink() without any argument to turn off print direction. A helpful addition to this strategy is to use the file.path function to define a variable that

Re: [R] sink() output to another directory

2018-09-14 Thread Rich Shepard
On Thu, 13 Sep 2018, Bert Gunter wrote: I find your "explanation" confusing. You appear to be misusing print(). Please read ?print carefully. You print objects in R, not files. Objects in R do not have "/" in their names (without some trickery). See ?make.names . Bert, I had read both ?prin

Re: [R] Problem with lm.resid() when weights are provided

2018-09-14 Thread Fox, John
Dear Hamed, I don't think that anyone has picked up on this problem. What's peculiar about your weights is that several are 0 within rounding error but not exactly 0: > head(df) y x weight 1 1.5115614 0.5520924 2.117337e-34 2 -0.6365313 -0.1259932 2.117337e-34 3 0.3

[R] Help with setting locale

2018-09-14 Thread Kim Titcombe
*Query or Set Aspects of the Locale* I have an issue with setting LOCALE in installation (new installation on new computer but have installed and used R before). I am based in Switzerland but work in English (Windows in English), hence want English as default. Console contains following messag

Re: [R] [FORGED] modify the supposed return value of a function during evaluation?

2018-09-14 Thread Rolf Turner
On 09/14/2018 08:33 PM, Jeremie Juste wrote: Hello, I'm wondering it is possible and if yes would it be desirable to modify the return value of functions during evaluation. I supposed this would be very useful during debugging myfun <- function(x) {res <- x+3 ; browser() ; res} let say I ru

[R] modify the supposed return value of a function during evaluation?

2018-09-14 Thread Jeremie Juste
Hello, I'm wondering it is possible and if yes would it be desirable to modify the return value of functions during evaluation. I supposed this would be very useful during debugging myfun <- function(x) {res <- x+3 ; browser() ; res} let say I run the following function myfun(3) and drop in

[R] [R-sig-Geo] Help with simple Map of US states with predefined regions Version 2 (Solved)

2018-09-14 Thread Bill Poling
Good morning Don, I cannot thank you enough for your support and the trouble you went to. I am novice useR and the only analyst in the shop asked to learn R and the demands are growing faster than my knowledge intake, lots of laughs! Best regards WHP From: MacQueen, Don Sent: Thursday, Septem