Re: [R] How to access https page

2015-03-10 Thread Prof Brian Ripley
On 09/03/2015 22:39, Hui Du wrote: Hi All, I am trying to parse some information from website, say, a linkedin page. The linkedin url was url = http://www.linkedin.com/in/huidu; I had no problem to use readLines and XML package to collect the information I need. However, that url became

[R] pcrfit model for qpcR package

2015-03-10 Thread Luigi Marongiu
Dear all, I have been trying to apply the Cy0 algorithm of the package qpcR by creating an object obj with the normalized fluorescent data from a 384 plate whose characteristics were TaqMan chemistry and 45 cycles. The import of the object was successful but when I implemented the pcrfit model

[R] Are there any implemented function for A/B testing?

2015-03-10 Thread Namratha K
Is there any method or built-in function for implementing a/b testing using R language Are there any function developed to implement a/b testing in R language? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To

[R] C#

2015-03-10 Thread Keith S Weintraub
I will keep this short as this might be the wrong list: I have found one (beta) project that allows R to interface with C#. Are there others? Any favorites. Best, KW __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] logit in car package

2015-03-10 Thread kat123
I have run a logit data transformation in R using the logit function in the package car. http://cran.r-project.org/web/packages/car/car.pdf If i run logit on a column of data that contains a 0 value it makes and adjustment according to the literature of 0.025. I thought this meant that it was

Re: [R] Add sum line to plot of multiple x values

2015-03-10 Thread PIKAL Petr
Hi Yes, your understanding is correct the same can be achieved by: p+geom_point(data=d.ag,aes(x=Group.1,y=x), size=5)+ geom_line(data=d.ag,aes(x=1:3, y=x)) as factors are treated from 1 to number of levels if given as x aestetics. The whole code is library(ggplot2) people -

Re: [R] Alpha not working in geom_rect

2015-03-10 Thread adel daoud
Thanks for the info Jeff. I will stick to using annotate() -- Adel Daoud, PhD, Researcher The New School for Social Research, Visiting Scholar in the Economics Department, 6 East 16th Street New York, NY 10003, dao...@newschool.edu University of Gothenburg Department of Sociology

Re: [R] Add sum line to plot of multiple x values

2015-03-10 Thread Loris Bennett
Loris Bennett loris.benn...@fu-berlin.de writes: Hi Petr, See inline. PIKAL Petr petr.pi...@precheza.cz writes: Hi see inline -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Loris Bennett Sent: Monday, March 09, 2015 4:35 PM To:

Re: [R] svg2swf - controlling the looping of flash files

2015-03-10 Thread Yixuan Qiu
Hello Paul, So far there is no way to stop the animation after its first run. If this feature is needed I could try to implement it in the future version of R2SWF. Best, Yixuan 2015-03-09 18:33 GMT-04:00 Paul Sweeting paul.j.sweet...@gmail.com: Hi I'm using svg2swf to collate a number of

[R] Error: cannot allocate vector of size 64.0 Mb When Using Read.zoo()

2015-03-10 Thread 李倩雯
Hi all, *Problem Description* I encountered the *Error: cannot allocate vector of size 64.0 Mb* when I was using read.zoo to convert a data.frame called 'origin' to zoo object named 'target' *About the Data Code* My data frame(origin) contains 5340191 obs. of 3 variables[Data,

Re: [R] logit in car package

2015-03-10 Thread John Fox
Dear Kathryn, On Tue, 10 Mar 2015 03:24:03 -0700 (PDT) kat123 kathryn.harr...@northampton.ac.uk wrote: I have run a logit data transformation in R using the logit function in the package car. http://cran.r-project.org/web/packages/car/car.pdf If i run logit on a column of data that

Re: [R] Help with optim() to maximize log-likelihood

2015-03-10 Thread Prof J C Nash (U30A)
1) It helps to include the require statements for those of us who work outside your particular box. lme4 and (as far as I can guess) fastGHQuad are needed. 2) Most nonlinear functions have domains where they cannot be evaluated. I'd be richer than Warren Buffett if I got $5 for each time

Re: [R] Add sum line to plot of multiple x values

2015-03-10 Thread Loris Bennett
Hi Petr, See inline. PIKAL Petr petr.pi...@precheza.cz writes: Hi see inline -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Loris Bennett Sent: Monday, March 09, 2015 4:35 PM To: r-h...@stat.math.ethz.ch Subject: Re: [R] Add sum line to plot

Re: [R] Are there any implemented function for A/B testing?

2015-03-10 Thread Sarah Goslee
You already asked this, and show no signs of having either read the responses or out any effort into trying to find out yourself. Go to http://rseek.org and search for a/b testing Read the results, try out the examples. After that, if you still have specific R questions, this list is the place

Re: [R] svg2swf - controlling the looping of flash files

2015-03-10 Thread Yixuan Qiu
Hi Paul, One workaround for this problem is to manually edit the HTML that contains the Flash animation, by adding a loop parameter in the embed tag: embed width=480 height=480 name=plugin loop=false src=a.swf type=application/x-shockwave-flash This works for Firefox at least. Best, Yixuan

Re: [R] svg2swf - controlling the looping of flash files

2015-03-10 Thread Paul Sweeting
Hi Yixuan Thanks for your reply. I think it would be useful to have the option of a “loop = FALSE” option in this function. However, I’m not sure how long a shelf life swf files will have, given everything seems to be moving away from flash… Paul From: Yixuan Qiu

Re: [R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
Sarah, I realized what I was saying after I pressed send on the email. It makes perfect sense now, thanks so much for your help and patience. On Mar 10, 2015 5:57 PM, Sarah Goslee sarah.gos...@gmail.com wrote: I think you're kind of missing the way this works: the data frame created by

Re: [R] .Rprofile vs. First (more of an opinion question)

2015-03-10 Thread Jeff Newmiller
I concur with Rolf. .RData files (the ones with nothing before the period) are just traps for your future self, with no documentation. I avoid them like the plague. I refer to specifically-named Something.RData files in my .R/.Rnw/.Rmd files to cache results of long computations, but they are

[R] Panel Data--filling in missing dates in a span only

2015-03-10 Thread Steven Archambault
Hi folks, I have this panel data (below), with observations missing in each of the panels. I want to fill in years for the missing data, but only those years within the span of the existing data. For instance, BC-0002 needs on year, 1995. I do not want any years after the last observation.

Re: [R] Error in svychisq and svyttest with svrepdesign

2015-03-10 Thread Anthony Damico
hi anabela, please provide a complete reproducible example. you need to use ?dput -- we are not able to import dadosSPSS.sav so we cannot recreate your problem in order to help you. thanks! http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example On Tue, Mar 10,

[R] Error in svychisq and svyttest with svrepdesign

2015-03-10 Thread Anabela Afonso
Dear Forum, I’m working with a complex sample and with replication weights. I defined my design svrepdesign function. I’m trying to run svychisq and svyttest function from the survey package and I get the error: Error in crossprod(x, y) : requires numeric/complex matrix/vector arguments

Re: [R] Error: cannot allocate vector of size 64.0 Mb When Using Read.zoo()

2015-03-10 Thread Uwe Ligges
On 10.03.2015 04:16, 李倩雯 wrote: Hi all, *Problem Description* I encountered the *Error: cannot allocate vector of size 64.0 Mb* when I was using read.zoo to convert a data.frame called 'origin' to zoo object named 'target' *About the Data Code* My data frame(origin) contains 5340191 obs. of

Re: [R] problem applying the same function twice

2015-03-10 Thread Sarah Goslee
Hi, I didn't work through your code, because it looked overly complicated. Here's a more general approach that does what you appear to want: # use dput() to provide reproducible data please! comAn - structure(list(animals = c(bird, bird, bird, bird, bird, bird, dog, dog, dog, dog, dog, dog, cat,

Re: [R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
William, You say not to use apply here, but what would you use in its place? Thanks On Tue, Mar 10, 2015 at 2:13 PM, William Dunlap wdun...@tibco.com wrote: The key to your problem may be that x-apply(missing,1,genRows) converts 'missing' to a matrix, with the same type for all columns

Re: [R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
Sarah, I have 669 sites and each site has 7 years of data, so if I'm thinking correctly then there should be 4683 possible combinations of site x year. For each year though I need 3 sampling periods so that there is something like the following: site 1 year1 sample 1 site 1 year1

Re: [R] problem applying the same function twice

2015-03-10 Thread Sarah Goslee
Yeah, that's tiny: fullout - expand.grid(site=1:669, year=1:7, sample=1:3) dim(fullout) [1] 14049 3 Almost certainly the problem is that your expand.grid result doesn't have the same column names as your actual data file, so merge() is trying to make an enormous result. Note how when I

Re: [R] Error: cannot allocate vector of size 64.0 Mb When Using Read.zoo()

2015-03-10 Thread 李倩雯
I dont think so. I removed all variables except for the data I was to use and tried gc() to release some memories. But the error still happened. Regards, Jasmine On 10 Mar, 2015 10:49 pm, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: On 10.03.2015 04:16, 李倩雯 wrote: Hi all, *Problem

Re: [R] How to access https page

2015-03-10 Thread Jeroen Ooms
On Mon, Mar 9, 2015 at 3:39 PM, Hui Du hui...@savvyrookies.com wrote: readLines(url) Error in file(con, r) : cannot open the connection In addition: Warning message: In file(con, r) : unsupported URL scheme Try: library(curl) readLines(curl(url)) [[alternative HTML version

[R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
Hey everyone, I've written a function that adds NAs to a dataframe where data is missing and it seems to work great if I only need to run it once, but if I run it two times in a row I run into problems. I've created a workable example to explain what I mean and why I would do this. In my

Re: [R] problem applying the same function twice

2015-03-10 Thread Jeff Newmiller
You may find it beneficial to investigate packages dplyr, data.table, or a combination of the two for handling large data sets in memory. Or, perhaps dplyr with a SQL back end for working on disk (I have not tried that myself yet). I do find your excuse for manufacturing data records

[R] .Rprofile vs. First (more of an opinion question)

2015-03-10 Thread Erin Hodgess
Hello again I am using R-3.1.2 on Windows 7. I am the only one using this particular computer. My question is probably more of an opinion question. I want to set a repos with the options. Also, I want to setwd and load a particular workspace. Am I better off to put everything into .Rprofile,

Re: [R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
Thanks Sarah, one of my column names was missing a letter so it was throwing things off. It works super fast now and is exactly what I needed. My actual data set has about 6 other ancillary response data data columns, is there a way to combine the 'full' data set I just created with the original

Re: [R] .Rprofile vs. First (more of an opinion question)

2015-03-10 Thread Rolf Turner
On 11/03/15 11:17, Erin Hodgess wrote: Hello again I am using R-3.1.2 on Windows 7. I am the only one using this particular computer. My question is probably more of an opinion question. I want to set a repos with the options. Also, I want to setwd and load a particular workspace. Am I

Re: [R] Add sum line to plot of multiple x values

2015-03-10 Thread PIKAL Petr
Hi see inline -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Loris Bennett Sent: Monday, March 09, 2015 4:35 PM To: r-h...@stat.math.ethz.ch Subject: Re: [R] Add sum line to plot of multiple x values PIKAL Petr petr.pi...@precheza.cz writes:

Re: [R] Show all elements

2015-03-10 Thread PIKAL Petr
Hi the source of your problem is most probably that aggregate uses conversion of group variable to factor and therefore empty level is lost. From aggregate help page: by a list of grouping elements, each as long as the variables in the data frame x. The elements are coerced to factors before

Re: [R] problem applying the same function twice

2015-03-10 Thread Sarah Goslee
I think you're kind of missing the way this works: the data frame created by expand.grid() should ONLY have site, year, sample (with the exact names used in the data itself). Then the merged data frame will have the full site,year,sample combinations, along with ALL the data variables. Your