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 paul.domas...@gmail.com 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

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

2015-04-22 Thread Martin Maechler
Paul paul.domas...@gmail.com on Wed, 22 Apr 2015 01:39:16 + writes: William Dunlap wdunlap at tibco.com writes: Use the str() function to see the internal structure of most objects. In your case it would show something like: Data -

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

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

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 course R

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

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

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

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

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

2015-04-22 Thread Paul
William Dunlap wdunlap at 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

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) In future

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 santosh2...@gmail.com wrote: Dear Rxperts.. Sorry.. i don't have data for my query..

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

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

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),

[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

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

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.

[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

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: SNIP 4. SNIP 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)

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

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

[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.aumailto:enquir...@solutionmetrics.com.au or call +61 2 9233 6888 Getting Started with R (1 Day) Confidently use R

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

[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

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

Re: [R] converting Twitter data from txt file

2015-04-22 Thread Hasan Diwan
On 22 April 2015 at 13:05, Erin Hodgess erinm.hodg...@gmail.com 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

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

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

Re: [R-es] distribucion de IRWIN HALL

2015-04-22 Thread Olivier Nuñez
N=1000 # tamaño simulación Monte Carlo n=5 # numero de uniformes cdf.IH -function(x,n,N) mean(replicate(N,sum(runif(n)))=x) x=seq(0,5,.1) y=sapply(x,FUN=cdf.IH,n=n,N=N) plot(x,y,type=l) - Mensaje original - De: Genaro Llusco gellu...@gmail.com Para: r-help-es@r-project.org Enviados:

[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

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

2015-04-22 Thread Roger Bivand
Rob Skelly rob at 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

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

[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