Re: [R] Connect to postgreSQL

2017-08-26 Thread Ira Sharenow via R-help
I went to the Start menu and opened a psql shell. I entered some information, but when I entered the password, it said authentication failed. Server localhost, the default Database the file previously mentioned pg_dump-sfpg-2017-08-18 Port 5432 Username Ira Password sql1--  Fatal error When

Re: [R] Connect to postgreSQL

2017-08-26 Thread John
On Sat, 26 Aug 2017 18:35:31 -0700 Ira Sharenow via R-help wrote: Can you access the postgres database through psql or some other route? Also, do you require a password to access the database from these alternatives? JWDougherty

Re: [R] about multi-optimal points

2017-08-26 Thread John
On Sat, 26 Aug 2017 12:38:35 -0600 lily li wrote: > Hi Ulrik, > > Thanks for your suggestion, but it was not what I meant. I tried to > use the rPref package but just got a very small sample and felt > clueless. > Lily, It would help if you could provide some additional

Re: [R] How to get CI from surfit object in survival

2017-08-26 Thread Adrian Johnson
Thank you. I checked everything else but my own argument. :-) that is silly. Thanks On Sat, Aug 26, 2017 at 8:38 PM, Bert Gunter wrote: > Did you not notice the conf.type = "none" argument to your survfit > call and the associated documentation in the survfit help? >

[R] Connect to postgreSQL

2017-08-26 Thread Ira Sharenow via R-help
I am using RStudio Version1.0.143 on a Windows 7 machine. R version 3.4.0 I am trying to connect to a postgreSQL database with the following command, but I receive an error message that says my password is incorrect. Since I saved my password in a file, I think I remember it. I searched for a

[R-es] Raiz de cualquier numero

2017-08-26 Thread Eduardo Trujillo
Buenas noches. Soy nuevo en programar en R Quiero calcular la raiz de cualquier numero apartir de la imagen seleccionando que la formula nos establece como irme acercando a ese valor de la raiz. Agradezco su colaboración. Saludos. ___ R-help-es mailing

Re: [R] How to get CI from surfit object in survival

2017-08-26 Thread Bert Gunter
Did you not notice the conf.type = "none" argument to your survfit call and the associated documentation in the survfit help? -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom

Re: [R] How to get CI from surfit object in survival

2017-08-26 Thread Adrian Johnson
Dear Bert, thank you for suggestion. I am aware of R-help function. I must apologize, my earlier question could lead to assumptions otherwise. As you can see below, I only get Std. error but not lower and Upper CIs. I was wondering if there is another argument or method, could give CIs which I

Re: [R] How to get CI from surfit object in survival

2017-08-26 Thread Bert Gunter
??? Both ?survit.object (linked in the see also section of ?survfit) and ?summary.survfit give you this information. Do you not know how to use R's help faciities -- in which case you should learn them now; see ?help -- or have I misunderstood your query? Cheers, Bert Bert Gunter "The trouble

[R] How to get CI from surfit object in survival

2017-08-26 Thread Adrian Johnson
Hi I am not sure hiw to get thr CI from summary function on the survfit object. I can get the percent survival for 2 years from survfit object but I dont get Confidence intervals Could anyone suggest a hint Thanks Adrian [[alternative HTML version deleted]]

Re: [R] Find maxima of a function

2017-08-26 Thread David Winsemius
> On Aug 26, 2017, at 12:13 PM, Ismail SEZEN wrote: > > >> On 26 Aug 2017, at 16:39, niharika singhal >> wrote: >> >> Hi, >> >> Thanks for your mail, and time >> >> It is not working for some arguments, when mean value is like >6. >>

Re: [R] Find maxima of a function

2017-08-26 Thread Ismail SEZEN
> On 26 Aug 2017, at 16:39, niharika singhal > wrote: > > Hi, > > Thanks for your mail, and time > > It is not working for some arguments, when mean value is like >6. > > > case > > mc0 <- c(0.0886,0.1744455,0.1379778,0.1209769,0.1573065,0. >

Re: [R] about multi-optimal points

2017-08-26 Thread lily li
Hi Ulrik, Thanks for your suggestion, but it was not what I meant. I tried to use the rPref package but just got a very small sample and felt clueless. On Sat, Aug 26, 2017 at 12:37 AM, Ulrik Stervbo wrote: > HI lily, > > for the colouring of individual points you can

[R] Fwd: Find maxima of a function

2017-08-26 Thread niharika singhal
Hi, Thanks for your mail, and time It is not working for some arguments, when mean value is like >6. case mc0 <- c(0.0886,0.1744455,0.1379778,0.1209769,0.1573065,0. 1134463,0.2074027) rv <-UnivarMixingDistribution(Norm(486.4255, 53.24133), Norm(664.0713,

[R] Difficulty Installing Packages

2017-08-26 Thread Bill Denney
Hi, When installing packages in Windows (currently using Windows 10 with all service packs), occasionally, I get a warning similar to the following: package 'Rcpp' successfully unpacked and MD5 sums checked Warning in install.packages : unable to move temporary installation

Re: [R] Find maxima of a function

2017-08-26 Thread Ismail SEZEN
> On 26 Aug 2017, at 14:18, Ulrik Stervbo wrote: > > Please keep the list in cc. > > Sorry, it didn't work as expected. Maybe someone else have an appropriate > solution. > > Best, > Ulrik > > On Sa., 26. Aug. 2017, 12:57 niharika singhal

Re: [R] Find maxima of a function

2017-08-26 Thread Ulrik Stervbo
Please keep the list in cc. Sorry, it didn't work as expected. Maybe someone else have an appropriate solution. Best, Ulrik On Sa., 26. Aug. 2017, 12:57 niharika singhal wrote: > Hi > > Thanks for you mail, > I really appreciate your time on my problem > > I

Re: [R] Find maxima of a function

2017-08-26 Thread Ulrik Stervbo
Hi, I once found this somewhere on stackoverflow: values <- rnorm(20, mean = c(2.15,2.0,2.9), sd = c(0.1,0.1,0.1)) v_dens <- density(values) v_dens_y <- v_dens$y r <- rle(v_dens_y) # These functions ignore the extremes if they are the first or last point maxima_index <- which(rep(x =

Re: [R] splitting a dataframe in R based on multiple gene names in a specific column

2017-08-26 Thread Jim Lemon
Very tidy. Amazing what is hidden away in R packages. Jim On Sat, Aug 26, 2017 at 5:26 AM, Jeff Newmiller wrote: > If row numbers can be dispensed with, then tidyr makes this easy with the > unnest function: > > # > library(dplyr) > #> > #> Attaching package:

[R] Find maxima of a function

2017-08-26 Thread niharika singhal
I have a Gaussian mixture model with some parameters mean=(506.8644,672.8448,829.902) sigma=(61.02859,9.149168,74.84682) c=(0.1241933, 0.6329082, 0.2428986) And the plot look something like below.[image: enter image description here] Also, if I change my

Re: [R] about multi-optimal points

2017-08-26 Thread Ulrik Stervbo
HI lily, for the colouring of individual points you can set the colour aesthetic. The ID is numeric so ggplot applies a colour scale. If we cast ID to a factor we get the appropriate colouring. test_df <- data.frame(ID = 1:20, v1 = rnorm(20), v2 = rnorm(20), v3 = rnorm(20)) ggplot(data=test_df,