Re: [R] Testing installed package of rJava in Linux

2016-03-08 Thread Uwe Ligges
On 09.03.2016 02:19, Santosh wrote: Dear Rxperts.. I installed rJava on 64-bit Linux system and apparently it installed without errors.However, I got the following error message when I tried to test the installed package. Err

[R] Error en makebin(data, file) : 'sid' invalid

2016-03-08 Thread
recently I began to use the package "arulesSequences" but the algorithm cspade give me this error: Error en makebin(data, file) : 'sid' invalid when I did executed this script, > data<-read.table("E:/zaki.txt",header=TRUE,sep=',') data : "seqid","eventid","page" "1","1","2211" "1","2","2488

[R] QuACN package: getLargestSubgraph -> .validateGraph error

2016-03-08 Thread Raphael Prates
I am trying to create a network from the matrix that is attached. > matrixSelecionada <- read.csv("matrix.csv", header = FALSE) > matrixSelecionada <- data.matrix(matrixSelecionada) ## changing the values of the matrix > for (i in 1:nrow(matrixSelecionada)) { for (j in 1:ncol

[R] ivreg with two endogenous variables and 1 instrument respectively

2016-03-08 Thread stefania innocenti
Hello, I am trying to use the ivregress function to estimate a second stage model which looks like the following: LogGDP=GEO+RULE+OPENNESS I would like to instrument Rule (RULE) with Settler mortality (SETTLER) and Openness (OPENNESS) with logFrankelRomer (FR). I thus have one instrument per

[R] Testing installed package of rJava in Linux

2016-03-08 Thread Santosh
Dear Rxperts.. I installed rJava on 64-bit Linux system and apparently it installed without errors.However, I got the following error message when I tried to test the installed package. Error in .jcall("RJavaTools", "Ljava/lang/O

Re: [R] How to avoid endless loop in shiny

2016-03-08 Thread Greg Snow
You need to use `isolate` on one of the assignments so that it does not register as an update. Here are a few lines of code from the server.R file for an example that I use that has a slider for r (correlation) and another slider for r^2 and whenever one is changed, I want the other to update:

Re: [R] replace text in table R?

2016-03-08 Thread Sarah Goslee
Thanks for the complete reproducible example. Here's one way to approach the problem; there are many others. recodeDat <- function(x, invals, outvals) { x <- as.character(x) invals <- as.character(invals) outvals <- as.character(outvals) # a loop is the most understandable approach for(i in seq_a

Re: [R] Slow CRAN Mirror Action

2016-03-08 Thread Uwe Ligges
On 08.03.2016 11:01, Justace Clutter wrote: I have been creating a local mirror of the CRAN for my works servers. After a review of the CRAN mirror literature, I settled on the following command to perform the mirror: rsync -rtlzv --delete --exclude-from u:\CRANRSYNCFilterRules cran.r-project.

[R] replace text in table R?

2016-03-08 Thread Marna Wagley
Hi R Users, I have been struggling to replace texts in a table by new text. but it seems crazy as of I am doing it manually in R. I have very big files and some of the text has to be replaced by another class based on another file if the name corresponds. I was able to perform following example but

Re: [R] How to avoid endless loop in shiny

2016-03-08 Thread Doran, Harold
Michael It is not possible to answer this question without seeing reproducible code. More importantly, it is better to ask Shiny-related questions on stackoverflow using the Shiny tag or on the Shiny google group. -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] O

[R] How to avoid endless loop in shiny

2016-03-08 Thread Michael Peng
Hi, I added two sliderInput into the app with package "shiny": sliderA and sliderB. The values in the two sliders are correlated. If I change sliderA, I used updateSliderInput to update the value in sliderB. And also If I change sliderB, I used updateSliderInput to update the value in slideA. Th

[R] Slow CRAN Mirror Action

2016-03-08 Thread Justace Clutter
I have been creating a local mirror of the CRAN for my works servers. After a review of the CRAN mirror literature, I settled on the following command to perform the mirror: rsync -rtlzv --delete --exclude-from u:\CRANRSYNCFilterRules cran.r-project.org::CRAN . Where the CRANRSYNCFilterRules file

[R] R-package rmgarch

2016-03-08 Thread Stefanos charalampopoulos
Hi all, The following questions is regarding to the statistical software R. Specifically refers to the rmgarch package for time series analysis. I have a dataset of [1520,34]. I am trying to fit a dcc. I am using multispec because i want to include many univariate (c(spec1,spec2,spec3) etc)models

[R] Revolutions blog: February 2016 roundup

2016-03-08 Thread David Smith
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog: http://blog.revolutionanalytics.com and every month I post a summary of articles from the previous month of particular interest to readers of r-help. And in case you

Re: [R] using factor variable in the "DO" function

2016-03-08 Thread Jeff Newmiller
You have competing non-standard evaluation tools in play. I would decouple them with a function (untested): my fit <- function( DF ) { data.frame( HOSP_NRD = .$HOSP_NRD[1] , fitHosp = lm(log(y)~ log(x)+I(log(x)^2)+NCHRONIC+AGE+sex , data=DF) ) } dfhosp <- ( dat.2.wide.sub

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Erich Neuwirth
cutree is a function available in stats. So it might be worth a try to just replace .Call("R_cutree", tree$merge, k, PACKAGE = "stats”) by cutree(tree$merge,k) and see what happens. checking the source of cutree shows the following call ans <- .Call(C_cutree, tree$merge, k) so replacing

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Uwe Ligges
On 08.03.2016 14:55, Sebastien Moretti wrote: Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call(

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Sebastien Moretti
Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats") "R_

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Uwe Ligges
On 08.03.2016 12:01, Sebastien Moretti wrote: Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call(

Re: [R] Wooden Christmas Tree freezing when reading in files in El Capitan OS X

2016-03-08 Thread Lauri Torgerson
Thank you! On Tuesday, March 8, 2016, peter dalgaard wrote: > (Please keep r-help in the loop. Rerouting it there.) > > So not read.csv, but Finder interaction is the issue, and you have the > obvious workaround. I believe something like this was fixed in the patch > versions, but you might as w

[R] .Call works in R 2 not in R 3

2016-03-08 Thread Sebastien Moretti
Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats")

Re: [R] Wooden Christmas Tree freezing when reading in files in El Capitan OS X

2016-03-08 Thread peter dalgaard
(Please keep r-help in the loop. Rerouting it there.) So not read.csv, but Finder interaction is the issue, and you have the obvious workaround. I believe something like this was fixed in the patch versions, but you might as well wait for 3.2.4 on Thursday and retry. -pd > On 08 Mar 2016, at 0