Re: [R] dplyr - add/expand rows

2017-11-26 Thread jim holtman
try this: ## library(dplyr) input <- tribble( ~station, ~from, ~to, ~record, "07EA001" ,1960 , 1960 , "QMS", "07EA001" , 1961 , 1970 , "QMC", "07EA001" ,1971 , 1971 , "QMM", "07EA001" ,1972 , 1976 , "QMC", "07EA001" ,1

Re: [R] installing "rgl" package

2017-11-26 Thread Duncan Murdoch
On 26/11/2017 3:05 PM, Santosh wrote: Hi Rxperts, I tried with r-cran-rgl (based on the default installation of Ubuntu) with reinstalled rgl package from R-forge.. I get the missing GL/gl.h header. Didn't reinstall Mesa libraries per recommendations of Duncan. None of your messages have indi

Re: [R] installing "rgl" package

2017-11-26 Thread Santosh
Hi Rxperts, I tried with r-cran-rgl (based on the default installation of Ubuntu) with reinstalled rgl package from R-forge.. I get the missing GL/gl.h header. Didn't reinstall Mesa libraries per recommendations of Duncan. * installing *source* package ‘rgl’ ...** package ‘rgl’ successfully unpac

Re: [R] dplyr - add/expand rows

2017-11-26 Thread Bert Gunter
To David W.'s point about lack of a suitable reprex ("reproducible example"), Bill's solution seems to be for only one station. Here is a reprex and modification that I think does what was requested for multiple stations, again using base R and data frames, not dplyr and tibbles. First the reprex

[R] withTimeout does not timeout nlme anymore

2017-11-26 Thread Ramiro Barrantes
Hello, I was relying on withTimeout (from R.utils) to help me stop nlme when it “hangs”. However, recently this stopped working. I am pasting a reproducible example below: withTimeout should stop nlme after 10 seconds but in this example it does not. I tried this both on a linux (64 bit, Cen

Re: [R] dplyr - add/expand rows

2017-11-26 Thread David Winsemius
> On Nov 25, 2017, at 11:18 AM, Hutchinson, David (EC) > wrote: > > I have a returned tibble of station operational record similar to the > following: > >> data.collection > # A tibble: 5 x 4 > STATION_NUMBER YEAR_FROM YEAR_TO RECORD > > 107EA001 1960196