[R] Anchoring Vignettes

2016-10-22 Thread 宋庆宇
Hello dear R-help, I tried to use the code of anchors.mexchn2, but when I tried to trim.data(), I was encountered with the error,more details is as follows: > data(selfan) > fo <- list(self = xsay ~ 1, vign = cbind( xsay1,xsay2) ~ 1) > ra <- anchors( fo, data=selfan, method="C") > selfan.cut

Re: [R] About reshape dataset

2016-10-22 Thread Daniel Nordlund
On 10/22/2016 10:52 AM, lily li wrote: The code I'm using is: require(reshape) DF2 = melt(DF, id.vars = c('year', 'month', 'day'), measure.vars = c('site1_elev', 'site2_elev', 'site1_temp', 'site2_temp')) But it didn't work. On Sat, Oct 22, 2016 at 11:50 AM, lily li

Re: [R] About reshape dataset

2016-10-22 Thread lily li
The code I'm using is: require(reshape) DF2 = melt(DF, id.vars = c('year', 'month', 'day'), measure.vars = c('site1_elev', 'site2_elev', 'site1_temp', 'site2_temp')) But it didn't work. On Sat, Oct 22, 2016 at 11:50 AM, lily li wrote: > Hi R users, > > I want to melt a

[R] About reshape dataset

2016-10-22 Thread lily li
Hi R users, I want to melt a dataframe, but it mixed up the variables. DF is the original dataset: year month day site1_elev site2_elev site1_temp site2_temp 2000 561300 150020 21 2000 571300 1500

Re: [R] cdf in R give probability of random variable

2016-10-22 Thread Martin Maechler
> peter dalgaard > on Fri, 21 Oct 2016 22:10:22 +0200 writes: >> On 21 Oct 2016, at 20:23 , peter dalgaard >> wrote: >> >> In both cases it works out nicer if you do >> >> names(px) <- x >> barplot(px) > Um,

Re: [R] gtools Gator infected...

2016-10-22 Thread Troels Ring
Thanks a lot - I have asked enigmasoftware to go and check up on this - and they'll also see your letter! BW Troels Den 22-10-2016 kl. 13:12 skrev Bob Rudis: I think your tool is a bit overzealous. VirusTotal -

Re: [R] gtools Gator infected...

2016-10-22 Thread Bob Rudis
I think your tool is a bit overzealous. VirusTotal - https://virustotal.com/en/file/5fd1b2fc5c061c0836a70cbad620893a89a27d9251358a5c42c3e49113c9456c/analysis/ & https://virustotal.com/en/file/e133ebf5001e1e991f1f6b425adcfbab170fe3c02656e3a697a5ebea961e909c/analysis/ - shows no sign of any malware

[R] gtools Gator infected...

2016-10-22 Thread Troels Ring
Hi friends - just installed gtools to make rstan run. Was rapidly informed by Spyhunter 4 that gtools.dll harboured Gator. Spyhunter 4 then aggressively removed Gator - and gtools were gone and rstan out of function. Kind of sorry about this. Best wishes Troels Ring Aalborg, Denmark