[R] what happened when copying a function definition into R prompt then press Enter?

2014-08-30 Thread PO SU
Dear expeRts,     That's to say,what happened when loading source code  into memory? what's the difference between it and loading installed code into memory? Do they related with .Rdata?             -- PO SU mail: desolato...@163.com Majored in Statistics from SJTU

Re: [R] Unexpected behavior when giving a value to a new variable basedon the value of another variable

2014-08-30 Thread David Winsemius
On Aug 30, 2014, at 7:38 PM, David Winsemius wrote: On Aug 29, 2014, at 8:54 PM, David McPearson wrote: On Fri, 29 Aug 2014 06:33:01 -0700 Jeff Newmiller > wrote One clue is the help file for "$"... ?" $" In particular there see the discussion of character indices and the "exact" argu

Re: [R] Split PVClust plot

2014-08-30 Thread Tal Galili
Hi Tom, There is a "as.dendrogram.pvclust" function in the package dendextend. (it is on CRAN: http://cran.r-project.org/web/packages/dendextend/) You can run: install.packages('dendextend') library(dendextend) result2 <- as.dendrogram(result) # You can then also use the "prune" function in den

Re: [R] Unexpected behavior when giving a value to a new variable basedon the value of another variable

2014-08-30 Thread David Winsemius
On Aug 29, 2014, at 8:54 PM, David McPearson wrote: On Fri, 29 Aug 2014 06:33:01 -0700 Jeff Newmiller > wrote One clue is the help file for "$"... ?" $" In particular there see the discussion of character indices and the "exact" argument. <...snip...> On August 29, 2014 1:53:47 AM P

Re: [R] posterior probabilities from lda.predict

2014-08-30 Thread David L Carlson
Function predict.lda() is just answering a different question from the one you are posing. It is answering the question, given the values on this object what is the probability of membership in each of the groups used to construct the discriminant functions in the first place. Those probabilitie

Re: [R] new error with QuantMod getSymbols

2014-08-30 Thread adolfoyanes
Thank you very much Joshua. Pardon me for confusing loadSymbols with getSymbols and not sending the file lista.csv .. Apparently the issue was with Yahoo Finance that day. The next day it worked perfectlty. Best Regards, Adolfo Yanes Enviado desde mi BlackBerry de Movistar -Original Messa

[R] Error in inDL(x, as.logical(local), as.logical(now), ...)

2014-08-30 Thread Girija Kalyani
Dear Group, I get this error when loadin RCurl. What could be the reason? My configuration: R-version : 3.1.1 Windows- 32, Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Program Files/R/R-3.1.1/library/RCurl/libs/i386/RCurl.dll': LoadLibrary failu

[R] ddply question

2014-08-30 Thread Felipe Carrillo
I apologize about cross posting but my question keeps bouncing back from the list How come pct doesn't work in this ddply call? I am trying to get a percent of 'TotalCount' by SampleDate and Age library(plyr) b <- structure(list(SampleDate = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .La

[R] clean email addresses?

2014-08-30 Thread Spencer Graves
Does anyone have suggestions for cleaning a list of email addresses? I ask, because I can read into R data on registered voters that includes an "email address" field. I wondered if anyone had experience doing such, especially in R. (I found an article on "How to Clean Large Ema

Re: [R] Bus stop sequence matching problem

2014-08-30 Thread Charles Berry
Adam Lawrence gmail.com> writes: > > I am hoping someone can help me with a bus stop sequencing problem in R, > where I need to match counts of people getting on and off a bus to the > correct stop in the bus route stop sequence. I have tried looking > online/forums for sequence matching but see

Re: [R] new error with QuantMod getSymbols

2014-08-30 Thread Joshua Ulrich
You didn't provide the file "lista.csv", so it's not possible to reproduce any of these errors. And there's no call to getSymbols in your code. You use loadSymbols, and I am not familiar with that function. That said, this sounds like an issue with some of the data being sent by Yahoo Finance. -

Re: [R] Problem with sapa package and spectral density function (SDF)

2014-08-30 Thread G
Hello, Did you find a solution to this problem in the R mailing list ? I am having the same problem but there were apparently no replies to your question or didnt find them ? Thanks Anusha [[alternative HTML version deleted]] __ R-help@r-proje

Re: [R] Bus stop sequence matching problem

2014-08-30 Thread David McPearson
Homework? The list has a no homework policy - but perhaps I'll be forgiven por posting hints. In general terms, this is how I appraoched the problem: * Loop through the rows of stop_onoff - for (idx in ...someething...) {... * For each row, find the first of "ref" in a suitably filtered subset of s

Re: [R] Bus stop sequence matching problem

2014-08-30 Thread Gabor Grothendieck
Try dtw. First convert ref to numeric since dtw does not handle character input. Then align using dtw and NA out repeated values in the alignment. Finally zap ugly row names and calculate loading: library(dtw) s1 <- as.numeric(stop_sequence$ref) s2 <- as.numeric(factor(as.character(stop_onoff$r