[R] Modificatio of function body within a function

2022-04-01 Thread Grzegorz SmoliƄski
Hi, I'm working on a presentation regarding the modification of the function body on-the-fly and just discovered something I don't understand. I would like to modify a body of the function within a function, but I see that it is possible only when explicitly referring to the environment where the

[R] Recommended Statistics Papers and Packages

2022-04-01 Thread Stephen H. Dawson, DSL via R-help
Good Morning, I have been doing some further reading on the topic of statistics lately. I enjoyed reading the following material. I am writing to share the material with the list as recommended reading on the respective topics. Estimating the number of clusters in a data set via the gap sta

Re: [R] Violin plots in R

2022-04-01 Thread PIKAL Petr
Hi. Beside advice of others, at least str(yourdata) and the ggplot code is minimum for us to be able to offer some advice. Preferable way how to send your data is output from dput(yourdata) or dput(head(yourdata)) Just copy paste to your email. Cheers Petr > -Original Message- > Fro

[R] Violin plots in R

2022-04-01 Thread pooja sinha
Hi All, I need your help in making the violin plot in R using the data which is attached herewith. I am new to R and having issues in tidying my data for R. I am trying the code but I am not able to tidy my data for violin plot in ggplot. Any help will be highly appreciated. Thanks, Puja ___

Re: [R] readxl, read_excel: how colon (:) is read ?

2022-04-01 Thread Jeff Newmiller
Why not simply let readxl read the timestamp as it will naturally and use dta$Arrival_time_c <- as.character( dta$Arrival_time, format = "%H:%M" ) ... though time data in such a form is remarkably useless for data analysis. On April 1, 2022 12:09:02 AM PDT, Rui Barradas wrote: >Hello, > >Th

Re: [R] readxl, read_excel: how colon (:) is read ?

2022-04-01 Thread Rui Barradas
Hello, The following function is probably not very solid, to work with dates and times is not trivial, but it converts those Excel numbers correctly. I don't know with what numbers it fails. xl_fracday_to_time <- function(x, digits = 0L) { old_opts <- options(digits = 20) on.exit(options