[R] Warning message when starting RStudio

2015-04-22 Thread Sun Shine
Hi list Recently, when starting up RStudio, the following warning is being displayed: "Error in tools:::httpdPort <= 0L : comparison (4) is possible only for atomic and list types" I think that this is specific to RStudio because starting R in a terminal window doesn't produce this message.

Re: [R] Suggest method

2015-04-22 Thread Boris Steipe
Please keep the conversation on the list ... Here is a toy example to help you think this through: set.seed(11235) # artifical random data ... # miles: normalized between 0 and 1 # flights: number of flights within last year # since: how many days ago was the last flight booked # score: just pl

[R] R and S+ Courses: Sydney, Melbourne, Brisbane in May 2015

2015-04-22 Thread Kris Angelovski
Hi, (apologies for cross-posting) SolutionMetrics is presenting R and S+ courses in Sydney, Melbourne & Brisbane - May, 2015 To book, please email enquir...@solutionmetrics.com.au or call +61 2 9233 6888 Getting Started with R (1 Day) Confidently use

[R] vegan-help

2015-04-22 Thread Chitra Baniya
Hi, Greetings from Nepal. I am using R version 3.1.3 (2015-03-09) -- "Smooth Sidewalk" and vegan 2.2-1 I have been using and teaching R to my students some years. I am more used to with simple vegetation data sets. Now I am facing difficulties to handle with temporal scale, site wise variation

Re: [R] R lattice bwplot: Fill boxplots with specific color depending on factor level

2015-04-22 Thread Richard M. Heiberger
Pablo, I would do it similarly. I would also place the box and whiskers in the specified colors. ## install.packages(HH) ## if you don't have it library(HH) bwplot(mydata$Col1~mydata$Col3 | mydata$Col2,data=mydata, groups = Col3, as.table = TRUE, # added to make it easier for fac

Re: [R] How numerical data is stored inside ts time series objects

2015-04-22 Thread Paul
William Dunlap tibco.com> writes: > I think we can call this a bug in stl(). I used what I learned from the responses to this thread, I looked at the code for stl. As they say in Microsoft, "this is expected behaviour" according to the code. And it doesn't look like an inadvertent coding oversi

[R] Having trouble with twitter API

2015-04-22 Thread Erin Hodgess
Hello one more time! I'm switching over one of my packages from Ubuntu to Windows. Part of it uses twitter data, as gathered by the twitteR program. So this is what I have so far: library(twitteR) library(ROAuth) requestURL <- "https://api.twitter.com/oauth/request_token"; accessURL = "htt

Re: [R] high density plots using lattice dotplot()

2015-04-22 Thread Duncan Mackay
Hi Luigi Try set.seed(1) PLATE <- data.frame(Delta.Rn = rnorm(500), Cycle = rnorm(500), Delta2 = rnorm(500)+1, Well = rep(1:50, each = 10)) head(PLATE,10) xyplot(Delta.Rn+Delta2 ~ Cycle | Well, data = subset(PLATE, Well %in% 1:49), allow.multi

Re: [R] R lattice bwplot: Fill boxplots with specific color depending on factor level

2015-04-22 Thread Duncan Mackay
hi Pablo set.seed(1) # for reproducibility of data.frame mydata <- rbind(data.frame(Col1 = rnorm(2*1000),Col2 =rep(c("A", "C"), each=1000),Col3=factor(rep(c("YY","NN"), 1000))),data.frame(Col1 = rnorm(1000),Col2 =rep(c("B")),Col3=factor(rep(c("YY","YN"), 500 mydata$Col2 <- factor(mydata$Col2)

Re: [R] Script to workflow conversion

2015-04-22 Thread Adams, Jean
Santosh, I know nothing about this personally, but I found this site with an internet search. http://www.ef-prime.com/products/ranalyticflow_en/features.html Jean On Wed, Apr 22, 2015 at 5:20 PM, Santosh wrote: > Dear Rxperts.. > > Sorry.. i don't have data for my query.. > > Is there a way th

[R] Possible bug in CRAN mirror selection.

2015-04-22 Thread bioprogrammer
Hi all. Using R 3.2.0 on a WinXP machine, I attempted to update my installed packages. After selecting the nearest mirror, I was again prompted to select a mirror. This process repeated itself 2 additional times before I cancelled the most recent mirror selection thereby allowing the packages t

Re: [R] R_Calculating Thiessen weights for an area with irregular boundary

2015-04-22 Thread Rolf Turner
On 22/04/15 22:43, Manoranjan Muthusamy wrote: 4. How can I show the Dirichlet tile names (i.e. 1,2,3,,8) in the plot? There's no built-in way at the moment as far as I can tell. One way to get the tiles to be labelled/numbered in the plot would be: plot(dX) text(X,labels=1:npoin

Re: [R] Random Forest in Caret

2015-04-22 Thread Suzen, Mehmet
Can you post your memory profile and codes? __ 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-guide.html and provide comment

Re: [R] Multinomial Fitting Distrbution

2015-04-22 Thread Suzen, Mehmet
mixtools package has mixture of Gaussian fitting, maybe that might help? __ 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-g

Re: [R] Question on CCA and RDA analysis

2015-04-22 Thread Gavin Simpson
You didn't look that hard... Start with the Environmetrics Task View: http://cran.r-project.org/web/views/Environmetrics.html That might point you to the **vegan** pkg: http://cran.r-project.org/web/packages/vegan/index.html And that has a vignette on ordination which you might find useful. I

[R] Script to workflow conversion

2015-04-22 Thread Santosh
Dear Rxperts.. Sorry.. i don't have data for my query.. Is there a way that an R script can be converted to a workflow? or if not a workflow, converted into a flowchart or anything close to that effect. Regards, Santosh [[alternative HTML version deleted]]

[R] weird behavior when starting R-3.2.0 in Windows 8

2015-04-22 Thread Erin Hodgess
Hello again! First this afternoon, I attempted to install R-3.2.0 from source on Windows 8. I thought it went fine. Then when I tried to start it, it starts for a second, and closes. Ok. I figured that I had done something wrong with the source installation. Now I just installed the binary.

Re: [R] converting Twitter data from txt file

2015-04-22 Thread Hasan Diwan
On 22 April 2015 at 13:05, Erin Hodgess wrote: > Hello! > > Someone gave me a text file of Twitter data to look at. I've used the > twitter package to do the actual downloading and getting the data into nice > R form. > > Is anyone familiar with a function to convert the twitter text into that >

[R] converting Twitter data from txt file

2015-04-22 Thread Erin Hodgess
Hello! Someone gave me a text file of Twitter data to look at. I've used the twitter package to do the actual downloading and getting the data into nice R form. Is anyone familiar with a function to convert the twitter text into that good form please? Thanks, Sincerely, Erin -- Erin Hodgess

[R] R installation issues

2015-04-22 Thread Kalsbab
Hi, Please help me on this. I have installed "R" 3.1.2 version (64 bit) and receiving the follwowing error message while launching the Rx64 desktop icon. "R for Windows GUI front-end has stopped working. Close the program. The application was unable to start correctly (0xc005) " I tried

[R] Why is removeSparseTerms() not doing anything?

2015-04-22 Thread Mike
Here's the code and results.  The corpus is the text version of a single book.   (r vs. 3.2) > docs <- tm_map(docs, stemDocument) > dtm <- DocumentTermMatrix(docs) > freq <- colSums(as.matrix(dtm)) > ord <- order(freq) > freq[tail(ord)] one experi will can lucid dream 287 312 363 452 1

[R] R lattice bwplot: Fill boxplots with specific color depending on factor level

2015-04-22 Thread Pablo Fleurquin
Hi, I thoroughly looked for an answer to this problem with no luck. I have a dataframe with 3 factor levels: YY, NN, YN *>mydata <- rbind(data.frame(Col1 = rnorm(2*1000),Col2 =rep(c("A", "C"), each=1000),Col3=factor(rep(c("YY","NN"), 1000))),data.frame(Col1 = rnorm(1000),Col2 =rep(c("B")),Col3=f

Re: [R] R_Calculating Thiessen weights for an area with irregular boundary

2015-04-22 Thread Manoranjan Muthusamy
1. Apologies for the lousy presentation of the data and thank you for your feedback. I promise it will not happen again. 2. Thank you 3. Yes, exactly! 4. Exactly what I wanted without much hassle. Thank you very much. Time to explore the package 'spatstat'. How can I show the Dirichlet tile

[R] Basic structural time series

2015-04-22 Thread Temel İspanyolca
Hello I try to forecast with BSM. My data is in the annex. I dont understand why my forecasting result very interesting. You can see in annex (result.png) I expect that forecasting result must be increasing my code ; (fit <- StructTS(log10(x), type = "BSM")) plot(cbind(fitted(fit), resids=resid

Re: [R] Exhaustive CHAID package

2015-04-22 Thread Michael Grant
Many thanks for your response, sir. Here are two of the references to which I referred. I've also personally explored several data sets in which the outcomes are 'known' and have seen high variability in the topology of the trees being produced but, typically Exhaustive CHAID predictions match

Re: [R] Predict in glmnet for Cox family

2015-04-22 Thread jitvis
Dear Terry, Thank you for your reply, I understood its difficult to predict survival time, in general. I have tried another approach and I would like to know whether my approach is correct. I have clustered my dataset based on some similarity and reduced the number of variables using LASSO and

Re: [R] Exhaustive CHAID package

2015-04-22 Thread Achim Zeileis
On Wed, 22 Apr 2015, Michael Grant wrote: Many thanks for your response, sir. Here are two of the references to which I referred. I've also personally explored several data sets in which the outcomes are 'known' and have seen high variability in the topology of the trees being produced but,

Re: [R] rgdal installation with two versions of GDAL

2015-04-22 Thread Rob Skelly
> > You can *really* confirm where things are found via R CMD ldd ... see > the manual. > > Yes of course. I had done that, and received the hoped-for response: libgdal.so.1 => /opt/gdal-1.11.2/lib/libgdal.so.1 (0x7fd9e0175000) But I realize now that this was with LD_LIBRARY_PATH set. Of cour

Re: [R] How numerical data is stored inside ts time series objects

2015-04-22 Thread David R Forrest
> On Apr 21, 2015, at 9:39 PM, Paul wrote: ... > I rummaged around the help files for str, summary, dput, args. This > seems like a more complicated language than Matlab, VBA, or even C++'s > STL of old (which was pretty thoroughly documented). A function like > str() returns an object descript

Re: [R] rgdal installation with two versions of GDAL

2015-04-22 Thread Prof Brian Ripley
On 22/04/2015 05:43, Rob Skelly wrote: Hello, I am using GDAL 2.0 for most of my work, but rgdal depends on GDAL < 2. I have built and installed GDAL 1.11.2 in /opt/gdal-1.11.2, and rgdal compiles and installs into R, using the following command: sudo R CMD INSTALL --configure-args="--with-gdal

Re: [R] Suggest method

2015-04-22 Thread Boris Steipe
That does not sound like a clustering problem at all since you already know the desired characteristics and are not trying to discover structure in your data. Simply define a score as a suitably weighted sum of individual features, order your passengers by that score, and pick the top few, or an

Re: [R] How numerical data is stored inside ts time series objects

2015-04-22 Thread Martin Maechler
> Paul > on Wed, 22 Apr 2015 01:39:16 + writes: > William Dunlap tibco.com> writes: >> Use the str() function to see the internal structure of most >> objects. In your case it would show something like: >> >> > Data <- data.frame(theData=round(sin(1:38),1))

Re: [R] modifications using “stat_summary” in ggplot

2015-04-22 Thread John Kane
It would really help to have some sample data to see what is happening. The best way to supply data to the help group is to use dput(). Type >dput for some basic information on using it Have a look at and/or http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Re: [R] rgdal installation with two versions of GDAL

2015-04-22 Thread Roger Bivand
Rob Skelly dijital.ca> writes: > > Hello, > > I am using GDAL 2.0 for most of my work, but rgdal depends on GDAL < 2. I > have built and installed GDAL 1.11.2 in /opt/gdal-1.11.2, and rgdal > compiles and installs into R, using the following command: > > sudo R CMD INSTALL > --configure-args="

[R] - dunn.test gives strange output

2015-04-22 Thread Joachim Audenaert
Dear all, I have a question concerning my output of the dunn.test function in R. I like to compare different datasets, which are not distributed normally, so I use the Dunn.test to do pairwise comparison. I have 2 questions concerning the output: - why are my groupnames changed, the output giv

[R] Random Forest in Caret

2015-04-22 Thread Lorenzo Isella
Dear All, I am a bit concerned about the memory consumption of randomForest in caret. This seems to e due to the fact that the option keep.forest=FALSE does not work in caret. Does anybody know a workaround for that? Many thanks Lorenzo __ R-help@r-pro

[R] modifications using “stat_summary” in ggplot

2015-04-22 Thread michael.eisenring
Dear R-list members I am using �stat_summary� in ggplot to plot a error bar graph comparing three treatmens (damage, see code below). I would like to change the shape of the three symbols displaying the mean values (e.g one symbol should be a point (default) one should be a triangle and one sho

Re: [R] Exhaustive CHAID package

2015-04-22 Thread Achim Zeileis
On Tue, 21 Apr 2015, Michael Grant wrote: Dear R-Help: From multiple sources comparing methods of tree classification and tree regressions on various data sets, it seems that Exhaustive CHAID (distinct from CHAID), most commonly generates the most useful tree results and, in particular, is m