Re: [R] Paper on Analytics using R

2014-07-10 Thread jwd
On Fri, 11 Jul 2014 14:17:23 +0800 Katherine Gobin wrote: > Dear R Forum, > > I am looking for some write-up or paper on Use of R for Analytics or > why R should be preferred over others for Analytics purpose. Tried > google but got some info about some commercial vendors using R for > analytics

Re: [R] Installing RMySQL on Debian

2014-07-10 Thread David Winsemius
On Jul 10, 2014, at 1:07 PM, Federico Razzoli wrote: >> Just to check, are you loading the package using >> >> library(RMySQL) >> >> before trying to use it? >> >> If so, is it giving you any errors? > > Hi, > It was my first attempt, but since it didn't work I tried the other > suggested met

[R] Paper on Analytics using R

2014-07-10 Thread Katherine Gobin
Dear R Forum, I am looking for some write-up or paper on Use of R for Analytics or why R should be preferred over others for Analytics purpose. Tried google but got some info about some commercial vendors using R for analytics. I am looking for some paper where no commercial flavor is given, I

Re: [R] Decision Tree

2014-07-10 Thread Abhinaba Roy
Hi Jean, I'd looked at the help for 'prp' but couldn't find the argument for changing box colours. Am I missing something? On Thu, Jul 10, 2014 at 8:01 PM, Adams, Jean wrote: > The function fancyRpartPlot() is actually in the rattle package, and it is > a wrapper for the prp() function in the

[R] Build and install of Rstudio on ARMv7/Linux freezes

2014-07-10 Thread Chris Feigl
I have been trying to build RStudio (Desktop) from the source code in 'rstudio-rstudio-v0.98.952-0-g47edc6d.tar.gz' on a machine running Ubuntu 14.04 with an ARMv7 processor. I have successfully installed all the dependencies, except for Pandoc (I think). I configured the build environment in acc

[R] Porting GHC neccessary to install RStudio on ARM/Linux?

2014-07-10 Thread Chris Feigl
I'm trying to get RStudio (Desktop) up and running on a Samsung XE303C12 running Ubuntu 14.04. This machine has a duel-core ARM processor inside. This is the process I have followed so far. - Installed R using the Ubuntu Software Centre. - Downloaded RStudio source code in the form of 'rstudio-

[R] Installing RStudio for ARM architecture

2014-07-10 Thread Chris Feigl
I'm trying to get RStudio (Desktop) up and running on a Samsung XE303C12. It has a duel-core ARM processor. - Installed R using Ubuntu Software Centre. - Downloaded source code in the form of 'rstudio-rstudio-v0.98.952-0-g47edc6d.tar.gz' from rstudio.com/products/rstudio/download and unpacked i

Re: [R] linearHypothesis() ERROR-Message

2014-07-10 Thread John Fox
Dear Katharina, There's no specific method for linearHypothesis() for objects produced by plm(), but as you say, the default method seems to work. For example, following example(plm): -- snip --- > linearHypothesis(zz, names(coef(zz)), test="F") Linear hypothesis test Hypothes

Re: [R] quantmod: How could I change the name in chartSeries

2014-07-10 Thread Duncan Mackay
Hi I have not used quantmod before so I got the stock.name <- getSymbols(stock.code, from = "2010-01-01", to = Sys.Date(), src = "yahoo", auto.assign=FALSE) chartSeries(stock.name, theme = theme.white, # subset = 'last 12 months

Re: [R] R Studio v3.0.3 for Windows 32bits is too slow

2014-07-10 Thread Phan, Truong Q
Hi All, Thanks for all comments/suggestions. I would like to clarify a few things for some of your questions/doubts. 1) Matt Peeples' K-Clusters R scripts has covered some of pre-requisite steps for the K-Clusters algorithm. I would recommend for those who has not done K-Clusters to read it.

Re: [R] R on Windows crashes when source'ing UTF-8 file

2014-07-10 Thread Kenn Konstabel
I confirm that the original problem doesn't happen in R 3.1.1. in Windows (XP, this time). That is, source("http://psych.ut.ee/~R/test-utf8.txt";) .. no longer crashes R but gives a sensible (i.e., understandable, after this discussion) error. ... and adding encoding="UTF-8-BOM" reads in the file

Re: [R] Installing RMySQL on Debian

2014-07-10 Thread Federico Razzoli
> Just to check, are you loading the package using > > library(RMySQL) > > before trying to use it? > > If so, is it giving you any errors? Hi, It was my first attempt, but since it didn't work I tried the other suggested method. By the way, here is what I get: > install.packages("RMySQL") Insta

Re: [R] Installing RMySQL on Debian

2014-07-10 Thread Sarah Goslee
Hi, On Thu, Jul 10, 2014 at 3:34 PM, Federico Razzoli wrote: > Hello. I am trying to install RMySQL. My Os is Debian and I have MariaDB > installed from the tar package (not deb). After downloading RMySQL, I ran > the following commands, and I see DONE. Hoewever, I don't think that the > package

[R] Installing RMySQL on Debian

2014-07-10 Thread Federico Razzoli
Hello. I am trying to install RMySQL. My Os is Debian and I have MariaDB installed from the tar package (not deb). After downloading RMySQL, I ran the following commands, and I see DONE. Hoewever, I don't think that the package is installed, because the dbConnect() function cannot be found. Probabl

Re: [R] Survival Analysis with an Historical Control

2014-07-10 Thread Paul Miller
Hi Chris, Thanks for pointing out the use of "View page source". Very helpful to know. Do you happen to know anything about how to perform the analysis itself? I haven't been able to find anything confirming that the approach described in my original email (below) is correct. Thanks, Paul

[R] nScree

2014-07-10 Thread atramon
I'm trying to determine the number of factors to extract for a factor analysis, but am having trouble with the nS/nScree function. I did this successfully earlier today but with the wrong matrix/dataframe, and for some reason it won't work with the corrected one even though I've entered the same c

Re: [R] table over a matrix dimension...

2014-07-10 Thread William Dunlap
You can make make a factor with a common set of levels out of each slice of the matrix so all the tables are the same size: f <- function (charMatrix, levels = unique(sort(as.vector(charMatrix { apply(charMatrix, 1, function(x) table(factor(x, levels = levels))) } used as > m <- cbind(c("A

Re: [R] table over a matrix dimension...

2014-07-10 Thread Marc Schwartz
On Jul 10, 2014, at 12:03 PM, Jonathan Greenberg wrote: > R-helpers: > > I'm trying to determine the frequency of characters for a matrix > applied to a single dimension, and generate a matrix as an output. > I've come up with a solution, but it appears inelegant -- I was > wondering if there i

[R] table over a matrix dimension...

2014-07-10 Thread Jonathan Greenberg
R-helpers: I'm trying to determine the frequency of characters for a matrix applied to a single dimension, and generate a matrix as an output. I've come up with a solution, but it appears inelegant -- I was wondering if there is an easier way to accomplish this task: # Create a matrix of "factors

Re: [R] Survival Analysis with an Historical Control

2014-07-10 Thread Paul Miller
Hi Dr. Therneau, Thanks for your response. This is very helpful. My historical control value is 16 weeks. I've been having some trouble though determining how this value was obtained. Are you able to indicate how people normally go about determining a value for the historical control? Or do you

Re: [R] find & remove sequences of at least N values for a specific value

2014-07-10 Thread William Dunlap
Here is one way to use rle() to solve the problem: shortRunsOfOnesToNAs <- function(x, n) { r <- rle(x) r$values[r$values==1 & r$lengths < n] <- NA rep(r$values, r$lengths) } E.g., input <- c(0,0,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1) result <- shortRunsOfOnesToNAs(input, 5) de

Re: [R] Cansisc: Error in eigen(eHe, symmetric = TRUE)

2014-07-10 Thread Maria Judith Carmona H
Hello John, Michael and David, I will review Vegan Package. I am very thankful with your help. Best, Judith On Thu, Jul 10, 2014 at 9:04 AM, David L Carlson wrote: > In particular, look at the vegan Vignette, "Introduction to Ordination in > vegan", particularly section 4 on constrained ordin

[R] list of valid R encodings.in source(...,encoding=)

2014-07-10 Thread John McKown
This question was spawned by another thread entitled "R on Windows crashes when source'ing UTF-8 file". The solution to that problem was to use the _proper_ encoding= parameter of the source() function. But where are they documented? Or how do I find them in R itself? I ask because the proper enco

Re: [R] R on Windows crashes when source'ing UTF-8 file

2014-07-10 Thread Duncan Murdoch
On 10/07/2014 9:53 AM, Kenn Konstabel wrote: Wow. Thanks a lot! source("http://psych.ut.ee/~nek/R/test-utf8.txt";, encoding="UTF-8-BOM") # works correctly on my Windows 7 machine # (and without encoding argument it still crashes R) Kenn On Thu, Jul 10, 2014 at 4:33 PM, John McKown wrote: > On

Re: [R] Decision Tree

2014-07-10 Thread Adams, Jean
The function fancyRpartPlot() is actually in the rattle package, and it is a wrapper for the prp() function in the rpart.plot package. If you look at the help for prp(), you should be able to see how to change the color. library(rpart.plot) ?prp Jean On Thu, Jul 10, 2014 at 12:34 AM, Abhinaba

Re: [R] function completing properly

2014-07-10 Thread PIKAL Petr
Hi Works for me after I commented uknown function cal.wyd > version _ platform i386-w64-mingw32 arch i386 os mingw32 system i386, mingw32 status Under development (unstable) major 3 minor 1.0 year 2013 month

Re: [R] Cansisc: Error in eigen(eHe, symmetric = TRUE)

2014-07-10 Thread David L Carlson
In particular, look at the vegan Vignette, "Introduction to Ordination in vegan", particularly section 4 on constrained ordination which describes three approaches that seem relevant to your problem. http://cran.r-project.org/web/packages/vegan/vignettes/intro-vegan.pdf David Carlson -Orig

Re: [R] R on Windows crashes when source'ing UTF-8 file

2014-07-10 Thread Kenn Konstabel
Wow. Thanks a lot! source("http://psych.ut.ee/~nek/R/test-utf8.txt";, encoding="UTF-8-BOM") # works correctly on my Windows 7 machine # (and without encoding argument it still crashes R) Kenn On Thu, Jul 10, 2014 at 4:33 PM, John McKown wrote: > On Thu, Jul 10, 2014 at 7:18 AM, Kenn Konstabel

Re: [R] Survival Analysis with an Historical Control

2014-07-10 Thread Therneau, Terry M., Ph.D.
You are asking for a one sample test. Using your own data: connection <- textConnection(" GD2 1 8 12 GD2 3 -12 10 GD2 6 -52 7 GD2 7 28 10 GD2 8 44 6 GD2 10 14 8 GD2 12 3 8 GD2 14 -52 9 GD2 15 35 11 GD2 18 6 13 GD2 20 12 7 GD2 23 -7 13 GD2 24 -52 9 GD2 26 -52 12

Re: [R] Preserving topology when simplifying Spatial Polygons

2014-07-10 Thread Marcus Schwemmle
Have you got any further with this? I have the same problem... On Wednesday, 4 June 2014 22:17:20 UTC+2, Will Leahy wrote: > > I'm trying to simplify a group of adjacent polygons without gaps and line > overlaps forming between them. Ideally I'd like results similar to what > mapshaper produce

[R] Error in installing package raccumulo for R version 3.1.0

2014-07-10 Thread madhvi.gupta
Dear sir, I am a beginner in R and I am having problem in installing raccumulo package.On trying to install it on RStudio from cran repository it gives error: *Warning in install.packages :** ** package 'raccumulo' is not available (for R version 3.1.0)** *On installing it from github followin

[R] find & remove sequences of at least N values for a specific value

2014-07-10 Thread jeff6868
Hi everybody, I have a small problem in a function, about removing short sequences of identical numeric values. For the example, we can consider this data, containing only some "0" and "1": test <- data.frame(x=c(0,0,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1)) The aim of my purpose here is simply to remove

Re: [R] Information about font

2014-07-10 Thread Sébastien Bihorel
Correction The warnings section in ?png indicate that Helvetica is the default font. Now I need to verify if this is true for my plot and find out where this font is located on my system On Thu, Jul 10, 2014 at 8:54 AM, Sébastien Bihorel wrote: > Hi David, > > Thank you for your response. > >

Re: [R] Information about font

2014-07-10 Thread Sébastien Bihorel
Hi David, Thank you for your response. I use png devices to create my plots. Looking at ?pdfFonts and ?Type1Font, I believe these fonts only apply to pdf devices. Additionally, ?grid::gpar and ?png are not specific about default font options. Any suggestions? Sebastien On Thu, Jul 10, 2014 a

[R] R on Windows crashes when source'ing UTF-8 file

2014-07-10 Thread Kenn Konstabel
Dear all, I found an unexpected behaviour when trying to `source` an utf-8 file on windows 7: source("http://psych.ut.ee/~nek/R/test-utf8.txt";) # Rgui.exe reacts: # R for windows GUI has stopped working. A problem caused the program to stop working correctly. # Windows will close the program an

Re: [R] function completing properly

2014-07-10 Thread Jim Lemon
On Wed, 9 Jul 2014 04:47:39 PM Janet Choate wrote: > Hi R community, > i created a function (mkdate) as follows: > > mkdate = function(x) { > x$date = as.Date(paste(x$year, x$month, x$day, sep="-")) > x$wy = ifelse(x$month >=10, x$year+1, x$year) > x$yd = as.integer(format(as.Date(x$date), format=

Re: [R] Median expected survival

2014-07-10 Thread Marco Barbàra
Hi, Lars. I don't understand well your question. why don't you simply type pred_leuk Call: survfit(formula = leuk.cox, newdata = leuk_new) records n.max n.start events median 0.95LCL 0.95UCL 1 4242 42 30 1 1 23 2 4242 42 30 7

[R] Median expected survival

2014-07-10 Thread Lars Bishop
Hi All, Apologies for the simple question, but I could not find a straightforward answer based on my limited knowledge of survival analysis. I’m trying to obtain the predicted median survival time for each subject on a new dataset from a fitted coxph{survival} or cph{rms} object. Would the quan

[R] linearHypothesis() ERROR-Message

2014-07-10 Thread Katharina Mersmann
Dear Community, unfortunately I can´t give you an reproducable example, because I really do not understand why this messages pops up. I estimate an Fixed Effects Modell, controlling for HAC, because F-statistic changes, I want to compute it, for the other model-specifications it works, But for t

[R] R 3.1.1 is released

2014-07-10 Thread Peter Dalgaard
The build system rolled up R-3.1.1.tar.gz (codename "Sock it to Me") this morning. The list below details the changes in this release. You can get the source code from http://cran.r-project.org/src/base/R-3/R-3.1.1.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries fo

Re: [R] Cansisc: Error in eigen(eHe, symmetric = TRUE)

2014-07-10 Thread Michael Friendly
Maria The variables Araceae,Begoniaceae,Bromeliaceae,Clusiaceae,Cyclanthaceae,Ericaceae,Gesneriaceae, Melastomataceae,Orchidaceae,Piperaceae,Pteridophyta are frequencies (abundances?) of which most are 0 and this is not appropriate as multivariate normal data. There is probably a version of c