Re: [R] POSIX system oddities

2020-03-29 Thread Sebastien Bihorel via R-help
Duh !!! Thanks. From: Peter Langfelder Sent: Sunday, March 29, 2020 20:12 To: Sebastien Bihorel Cc: r-help@r-project.org Subject: Re: [R] POSIX system oddities The time has changed from "standard" (EST) to "Daylight saving" (EDT) which shaves off 1 hour. Pet

Re: [R] POSIX system oddities

2020-03-29 Thread Peter Langfelder
The time has changed from "standard" (EST) to "Daylight saving" (EDT) which shaves off 1 hour. Peter On Sun, Mar 29, 2020 at 5:03 PM Sebastien Bihorel via R-help < r-help@r-project.org> wrote: > Hi, > > Why is there less number of seconds on 03/10/2019 in the internal POSIX > system? The differe

[R] POSIX system oddities

2020-03-29 Thread Sebastien Bihorel via R-help
Hi, Why is there less number of seconds on 03/10/2019 in the internal POSIX system? The difference between the previous or the next day eems to be exactly 1 hour. I could not find anything in the manuals on CRAN. > dates <- as.POSIXct(sprintf('03/%s/2019',9:12), format = '%m/%d/%Y') > dates [1]

Re: [R] Error message using boot.ci function

2020-03-29 Thread David Winsemius
On 3/28/20 12:25 PM, varin sacha via R-help wrote: Dear R-experts, Here below my "toy" reproducible example showing many warnings and an error message. What I am interested in is the error message. Of course I can access and view the results doing : summary(results$t) to give me an idea of w

Re: [R] Duplicate names in the pivot column

2020-03-29 Thread phil
Thank you very much, Jim and Jeff. Both of your solutions work splendidly. Philip On 2020-03-29 02:25, Jim Lemon wrote: Hi Phil, Sorry it's not in the environment you are using, but perhaps this will help: taby<-table(df$y) ynames<-names(taby) for(yval in 1:length(taby)) { if(taby[yval] >

[R] GMM twoStep vs Stata's ivreg2 gmm2s or ivregress coefficients

2020-03-29 Thread Peter Lomas
Hi R-Help, I'm replicating IV-GMM models from Stata in R, but get small differences in coefficients (eg 100.0 vs 100.3); I'm hoping somebody can share anything they've learned attempting the same thing. The linear models match exactly, so there isn't a data problem. With both help files I've matc

[R] About package the GNU C++ library into R package

2020-03-29 Thread ζž—δΌŸη’
Dear all Does anyone knwon how to package a GNU C++ library into R package ? Thanks ! WL [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] My ggplot question is more-or-less solved --- whoops.

2020-03-29 Thread Rolf Turner
Whoops. Please ignore those attached *.txt files in my previous email. They pertain to the question that I was *going* to ask, but wound up managing to answer myself, after being careful to formulate the question in a meticulously clear manner. For fear of getting Ripleyed! :-) cheers, R

[R] My ggplot question is more-or-less solved.

2020-03-29 Thread Rolf Turner
Following Jeff Newmiller's advice, I set to work and adjusted the levels of the "extremes" factor in the data, and correspondingly the values of the vectors "shps", "culs" and "tkst" that are used to effect the plotting of points of different types with different shapes and colours. I'd hope

Re: [R] Duplicate names in the pivot column

2020-03-29 Thread Jeff Newmiller
Does this help? df4 <- ( df %>% group_by( time, y ) %>% mutate( lvl = seq.int( n() ) ) %>% ungroup() %>% mutate( y = ifelse( 1==lvl , y , paste( y, "dup" ) ) )