Re: [R] Fwd: Re: Setting .Rprofile for RStudio on a Windows 7 x64bit / Windows file extension hiding

2017-04-18 Thread Troels Ring
Here it is how to make extensions visible before Windows 10 https://support.microsoft.com/en-us/help/865219/how-to-show-or-hide-file-name-extensions-in-windows-explorer BW Troels Den 18-04-2017 kl. 23:44 skrev John C Frain: At the risk of adding again to the noise on this point I would

Re: [R] Unknown anomaly

2017-04-18 Thread Rolf Turner
On 19/04/17 13:55, Benjamin Robira wrote: Dear Sir, I writting to you as I am facing an irregularity in R that I do not know the origin. When doing a sequence from 0 to 1 by 0.02 and assigning it to a vector (i.e. code: a <- seq(from=0, to=1, by=0.02)) then, when I try to use the 36th element

Re: [R] r codes

2017-04-18 Thread Boris Steipe
Here you go: https://www.google.ca/search?q=r+partial+least+squares https://www.google.ca/search?q=r+ridge+regression > On Apr 18, 2017, at 3:45 PM, SAIRA SALEEM wrote: > > i required r codes to calculate partial least squares and ridge regression >

Re: [R] Unknown anomaly

2017-04-18 Thread Boris Steipe
The concept of equality for numbers that are represented on a computer is frequently misapplied. Consider: a <- seq(from=0, to=1, by=0.02) print(a[36]) [1] 0.7 a[36] == 0.7 [1] FALSE print(a[36], digits=22) [1] 0.7000666134 a[36] == 0.7001 [1] TRUE All clear? B.

[R] Unknown anomaly

2017-04-18 Thread Benjamin Robira
Dear Sir, I writting to you as I am facing an irregularity in R that I do not know the origin. When doing a sequence from 0 to 1 by 0.02 and assigning it to a vector (i.e. code: a <- seq(from=0, to=1, by=0.02)) then, when I try to use the 36th element (and two others behave the same way) it is

[R] r codes

2017-04-18 Thread SAIRA SALEEM
i required r codes to calculate partial least squares and ridge regression __ 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

Re: [R] Fwd: Re: Setting .Rprofile for RStudio on a Windows 7 x64bit / Windows file extension hiding

2017-04-18 Thread John C Frain
At the risk of adding again to the noise on this point I would recommend that all users of MS Windows enable the display of file name extensions. This can be done in Windows 10 by opening Windows explorer under the view item on the ribbon tick file name extensions. At least this will then display

Re: [R] Twitter Analytics Using streamR - subscript out of bounds

2017-04-18 Thread Raquel D .
I have tried this. Same error. Att; De: Jeff Newmiller Enviado: ter�a-feira, 18 de abril de 2017 19:23 Para: r-help@r-project.org; Raquel D.; r-help@r-project.org Assunto: Re: [R] Twitter Analytics Using streamR - subscript out of

Re: [R] Twitter Analytics Using streamR - subscript out of bounds

2017-04-18 Thread Jeff Newmiller
I am no expert, but I think any attempt to save your OAuth data is doomed to fail. Solution is don't do it. -- Sent from my phone. Please excuse my brevity. On April 18, 2017 11:38:10 AM PDT, "Raquel D." wrote: >can someone help me? How fix this error? > >My code:

[R] Twitter Analytics Using streamR - subscript out of bounds

2017-04-18 Thread Raquel D .
can someone help me? How fix this error? My code: library("ROAuth") library("streamR") library("rjson") library("twitteR") apiKey <- "xxx" apiSecret <- "xxx" accessToken <- "xxx" accessSecret <- "xxx" requestURL <- "https://api.twitter.com/oauth/request_token; accessURL <-

[R] difference-in-difference method for estimating causal impact,

2017-04-18 Thread Ralf Pfeiffer via R-help
Hello, i want to estimate the causal impact on a scale variable, using the difference-in-difference-method and the following 4 groups - control- and treatment group (counterfactual analysis) - two periods, measurement before and after treatment.  After discovering and estimating the

[R] Prediction plots

2017-04-18 Thread Santiago Bueno
Thanks Boris, the following is an extract of my data. I have developed biomass models using codes like: start <- coef (lm(log(Btot)~I(log(dbh**2*haut)),data=dat[dat$Btot>0,])) start[1] <- exp(start[1]) names(start) <- c("a","b") M1 <-

Re: [ESS] interacting with Docker

2017-04-18 Thread Stephen Eglen
hi Ista, I'm not sure I follow what you mean here for starting an R session within a docker container such that its available to ESS? On Tue, Apr 18 2017, Ista Zahn wrote: > Set your container to run ssh and then connect as normal following the > documentation at >

[R] Safeguarded Newton method for function minimization

2017-04-18 Thread J C Nash
Recently Marie Boehnstedt reported a bug in the nlm() function for function minimization when both gradient and hessian are provided. She has provided a work-around for some cases and it seems this will get incorporated into the R function eventually. However, despite the great number of

Re: [R] Quantmod cant download data

2017-04-18 Thread Nordlund, Dan (DSHS/RDA)
The download works for me without any warning message. The following is my session info. > sessionInfo() R version 3.3.3 (2017-03-06) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=English_United States.1252 [2]

[R] ggplot2: ..n.. and ..count.. in geom_text

2017-04-18 Thread G . Maubach
Hi All, I have the following code: -- cut (g03_02_p02 <- ggplot(data = d_kzb_input) + geom_bar( mapping = aes(x = v03_02_r01, y = round(..prop.. * 100, 0)), fill = c_ww_palette["blue"]) + scale_y_continuous(limits = c(0, c_y_limit)) + theme_classic() + ggtitle(paste0("Question

Re: [R] Question on accessing foreign files

2017-04-18 Thread William Dunlap via R-help
I've attached data.restore4.txt, containing the function data.restore4(), which has the same argument list as foreign::data.restore() and is mean to be called by the latter if the first line of the file is "## Dump S Version 4 Dump". It can read version 4 of the 'S data dump' format, which for

Re: [R] Quantmod cant download data

2017-04-18 Thread Joshua Ulrich
See https://github.com/joshuaulrich/quantmod/issues/149 On Tue, Apr 18, 2017 at 11:14 AM, Christofer Bogaso wrote: > Hi again, > > I generally use Quantmod package to download stock data. However > recently I observed that it is unable to download the data although >

[R] Quantmod cant download data

2017-04-18 Thread Christofer Bogaso
Hi again, I generally use Quantmod package to download stock data. However recently I observed that it is unable to download the data although Source file is available. Below is Error I found when I use Quantmod : > library(quantmod) > getSymbols("^NSEI") Error in download.file(paste(yahoo.URL,

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-18 Thread Bruce Ratner PhD
Dear John: My pleasure to respond to your request. Problem: Cannot get the .Rprofile file to take affect in either R (or RStudio). As to "what" can be in put into a .Rprofile file is abound, many examples in the manuals, blogs, links, and books. The "how to" write the file was the real

Re: [R] qqplot for binomial distribution

2017-04-18 Thread Boris Steipe
As per the help pages, the data samples are expected in the second argument, "y". So try qqplot(rbinom(n=100, size=100, p=0.05), count1_vector) ... and then plot your qqline() Alternatively, try qqline(count1_vector, distribution = function(probs) { qbinom(probs, size=100,

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-18 Thread Sparks, John James
Bruce, Do you think that you could post the final solution to the problem? That way it would be stored with this thread and the next person who has the same problem would be able to locate the FINAL solution. --JJS On Mon, April 17, 2017 12:47 pm, BR_email wrote: > TO _ALL_: > THANK YOU.

Re: [R] Fwd: Re: Setting .Rprofile for RStudio on a Windows 7 x64bit / Windows file extension hiding

2017-04-18 Thread Duncan Murdoch
On 17/04/2017 6:41 PM, John Nash wrote: The very large amount of noise on this topic seems to be the result of allowing Windows to hide file extensions. We have had to put up with millions of malware infections because someone in M$ thought this would be a nice idea. I've seen it cause lots of

[R] Fwd: Re: Setting .Rprofile for RStudio on a Windows 7 x64bit / Windows file extension hiding

2017-04-18 Thread John Nash
The very large amount of noise on this topic seems to be the result of allowing Windows to hide file extensions. We have had to put up with millions of malware infections because someone in M$ thought this would be a nice idea. I've seen it cause lots of problems over the years, including among

[R] Question on accessing foreign files

2017-04-18 Thread Daniel Molinari
Hi all, I have several data files provided in mtw format (Minitab) and sdd format (S-Plus) and I need to read them in R. I do not have access either to Minitab or to S-Plus. How can I accomplish this task ? Thank you, Daniel [[alternative HTML version deleted]]

Re: [R-es] Error en sql UpDate

2017-04-18 Thread Andres Hirigoyen
Gracias ya me pongo en acción El 18 abr. 2017 8:15 AM, "Javier Marcuzzi" escribió: Por las dudas https://msdn.microsoft.com/en-us/microsoft-r/ Javier Rubén Marcuzzi *De: *Mauricio Monsalvo *Enviado: *martes, 18 de abril de 2017

Re: [R-es] Error en sql UpDate

2017-04-18 Thread Javier Marcuzzi
Por las dudas https://msdn.microsoft.com/en-us/microsoft-r/ Javier Rubén Marcuzzi De: Mauricio Monsalvo Enviado: martes, 18 de abril de 2017 6:39 Para: Andres Hirigoyen CC: Lista R Asunto: Re: [R-es] Error en sql UpDate Hola. Hay unos pocos casos en los que se mencionan errores parecidos:

Re: [R-es] Error en sql UpDate

2017-04-18 Thread Javier Marcuzzi
Estimado Andres Hirigoyen Intenta guardar los datos en una nueva tabla en sql server, yo no recuerdo bien con que sql tuve ese problema, lo solucione guardando en una tabla temporal, luego un procedimiento almacenado realiza el resto y elimina la tabla temporal. Javier Rubén Marcuzzi De:

Re: [R-es] Matriz como producto de vectores.

2017-04-18 Thread rubenfcasal
Hola a todos, Pego un trozo de una práctica de R sobre el tema (como veis está en formato spin: https://yihui.name/knitr/demo/stitch) por si resulta de interés: #' Consideramos datos recogidos en un estudio de mejora de calidad en una fábrica de semiconductores. #' Se obtuvo una muestra

Re: [R-es] Error en sql UpDate

2017-04-18 Thread Mauricio Monsalvo
Hola. Hay unos pocos casos en los que se mencionan errores parecidos: http://stackoverflow.com/search?q=Invalid+character+value+for+cast+specification+RODBC y en todos van en la dirección de tener que asegurar que ambos sistemas estén utilizando el mismo tipo de datos. En particular, las fechas