Re: [R] Installing Cardinal Workflows

2017-04-18 Thread Jeff Newmiller
See http://bfy.tw/BIkn For next time I recommend reading the Posting Guide mentioned in the footer of this and every post on this list. -- Sent from my phone. Please excuse my brevity. On April 18, 2017 8:18:01 PM PDT, Shadrack Mutuku wrote: >I have successfully installed the cardinal package

[R] Installing Cardinal Workflows

2017-04-18 Thread Shadrack Mutuku
I have successfully installed the cardinal package but having issues installing cardinal workflows. I am getting the following error message on my console: > source("http://bioconductor.org/biocLite.R";) Bioconductor version 3.4 (BiocInstaller 1.24.0), ?biocLite for help > biocLite("CardinalWor

Re: [R] Unknown anomaly

2017-04-18 Thread Richard M. Heiberger
This is the standard behavior of floating point arithmetic on a digital computer. Computers use 53-bit finite precision arithmetic. They do not use infinite precision real numbers. Please see FAQ 7.31 for details. The FAQ is in the R documentation on your computer in file system.file("../../do

Re: [R] Unknown anomaly

2017-04-18 Thread Bert Gunter
FAQ 7.31. -- Bert (The FAQ's exist for a reason. You should read them!) 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 County" comic strip ) On Tue, Apr 18, 2017 at 7:53 PM, Boris St

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 reco

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 (a

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 not

[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 http://www.R-project.org/posting

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 a

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 bounds I am no expert, but I

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: > >library("ROAuth") >librar

[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 <- "https://api.twitter.

[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 causal

[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 <- nls(Btot~a*(dbh**2*haut)**b,data=dat,start=start,weights=1/d

[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 packag

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] LC_CTYP

[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 3

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 wh

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 > Source file is available. > >

[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 issue,

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, prob=0.05)

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. THANK

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 p

[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 my

[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]] ___