Re: [R] dplyr - add/expand rows

2017-11-28 Thread Bert Gunter
Bill et al.: Yes, I see it now. Thank you for the correction. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Nov 28, 2017 at 1:42 PM, William D

Re: [R] dplyr - add/expand rows

2017-11-28 Thread William Dunlap via R-help
Bert wrote ... Bill's solution seems to be for only one station. No, it works for any number of stations. Bill Dunlap TIBCO Software wdunlap tibco.com On Sun, Nov 26, 2017 at 11:10 AM, Bert Gunter wrote: > To David W.'s point about lack of a suitable reprex ("reproducible > example"), Bill's

Re: [R] dplyr - add/expand rows

2017-11-28 Thread Michael Lawrence
Or with the Bioconductor IRanges package: df <- with(input, DataFrame(station, year=IRanges(from, to), record)) expand(df, "year") DataFrame with 24 rows and 3 columns station year record 1 07EA001 1960 QMS 2 07EA001 1961 QMC 3 0

Re: [R] Thiel's Uncertainty Coefficient

2017-11-28 Thread Marc Schwartz
Hi Jose, Just be aware that you sent an e-mail, with a salutation to me specifically, to a large e-mail distribution list. It would have been better to simply send it directly to me via the e-mail in the post that you link to below. The code in question has been available for a number of years

Re: [R] Repeated measures Tukey

2017-11-28 Thread Bert Gunter
This list is about R programming help, not statistics, although they do sometimes overlap. However, as this appears to be entirely a statistics issue, it really belongs on a statistics list like stats.stackexchange.com , not here. Cheers, Bert Bert Gunter "The trouble with having an open mind

Re: [R] Thiel's Uncertainty Coefficient

2017-11-28 Thread Snoep, Jose
Dear sir Schwartz, In response to a granted online request to receive R code in order to generate Theil's Uncertainty coefficient, I was hoping I could receive the same favor. https://stat.ethz.ch/pipermail/r-help/2011-May/279210.html Thank you in advance, I hope to hear from you. Kind regard

[R] Repeated measures Tukey

2017-11-28 Thread Francesc Pla Juncà
Thanks in advance for your help. I am running a repeated measures ANOVA in r. The same group undergoes to four different treatment conditions. So, all individuals are treated with treatments A, B, C and D in four different occasions. Once I get a significant ANOVA, I first run a paired samples t-t

Re: [R] dplyr - add/expand rows

2017-11-28 Thread Martin Morgan
On 11/26/2017 08:42 PM, jim holtman wrote: try this: ## library(dplyr) input <- tribble( ~station, ~from, ~to, ~record, "07EA001" ,1960 , 1960 , "QMS", "07EA001" , 1961 , 1970 , "QMC", "07EA001" ,1971 , 1971 , "QMM", "07EA0

Re: [R] Scatterplot of many variables against a single variable

2017-11-28 Thread Engin YILMAZ
Thanks all users Virus-free. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9F

[R] Extract all point in a quadrats by spatstat package

2017-11-28 Thread Mohammad Tanvir Ahamed via R-help
Hi, With the following code i can divides window into quadrats and counts the numbers of points in each quadrat. library(spatstat) X <- runifpoint(50) quadratcount(X) quadratcount(X, 4, 5) quadratcount(X, xbreaks=c(0, 0.3, 1), ybreaks=c(0, 0.4, 0.8, 1)) qX <-  quadratcount(X, 4, 5) plot(X) plot(