Re: [R] Calculate daily means from 5-minute interval data

2021-08-30 Thread Richard O'Keefe
By the time you get the data from the USGS, you are already far past the point where what the instruments can write is important. (Obviously an instrument can be sufficiently broken that it cannot write anything.) The data for Rogue River that I just downloaded include this comment: # Data for the

[R] R-lang.epub is invalid according to epubcheck

2021-08-30 Thread Mstislav Elagin
Hello R folks, when validating the epub version of "The R language definition" from https://cran.r-project.org/doc/manuals/r-release/R-lang.epub with epubcheck (https://github.com/w3c/epubcheck), the latter reports 490 errors. According to the Makefile in R sources, epubs are being produced usin

Re: [R] Calculate daily means from 5-minute interval data

2021-08-30 Thread Bert Gunter
I do not wish to express any opinion on what should be done or how. But... 1. I assume that when data are missing, they are missing -- i.e. simply not present in the data. So there will be possibly several/many in succession missing rows of data corresponding to those times, right? (Apologies for

Re: [R] Calculate daily means from 5-minute interval data

2021-08-30 Thread Avi Gross via R-help
Am I seeing an odd aspect to this discussion. There are many ways to solve problems and some may be favored by some more than others. All require some examination of the data so it can be massaged into shape for the processes that follow. If you insist on using the matrix method to arrange that

Re: [R] Calculate daily means from 5-minute interval data

2021-08-30 Thread Rich Shepard
On Tue, 31 Aug 2021, Richard O'Keefe wrote: I made up fake data in order to avoid showing untested code. It's not part of the process I was recommending. I expect data recorded every N minutes to use NA when something is missing, not to simply not be recorded. Well and good, all that means is th

Re: [R] Calculate daily means from 5-minute interval data

2021-08-30 Thread Richard O'Keefe
I made up fake data in order to avoid showing untested code. It's not part of the process I was recommending. I expect data recorded every N minutes to use NA when something is missing, not to simply not be recorded. Well and good, all that means is that reshaping the data is not a trivial call to

Re: [R] bookdown: build using pdflatex from source directory

2021-08-30 Thread Rich Shepard
On Mon, 30 Aug 2021, Rui Barradas wrote: Assuming the file index.Rmd is in R/r4ds-master, try bookdown::render_book("R/r4ds-master/index.Rmd", output_format = "bookdown::pdf_book") Rui, The build needs to run it from the r4ds-master/ directory. I wondered if index.rmd was the entry, but didn

Re: [R] Gene Set Enrichment Analysis and plots

2021-08-30 Thread Bert Gunter
Please read the posting guide linked below for how to post questions that are likely to receive useful responses. "Help me do a gene enrichment analysis" does not conform to the pg. We usually expect posters to offer their best attempts, preferably in a reproducible example ("a reprex" -- see here

Re: [R] bookdown: build using pdflatex from source directory

2021-08-30 Thread Rui Barradas
Hello, Assuming the file index.Rmd is in R/r4ds-master, try bookdown::render_book("R/r4ds-master/index.Rmd", output_format = "bookdown::pdf_book") Hope this helps, Rui Barradas Às 19:28 de 30/08/21, Rich Shepard escreveu: I have a dead tree copy of 'R for Data Science' and want a PDF that

[R] bookdown: build using pdflatex from source directory

2021-08-30 Thread Rich Shepard
I have a dead tree copy of 'R for Data Science' and want a PDF that's more efficiently accessed when I'm working with R. Installed here are all the files in r4ds-master/. Reading the online copy of 'bookdown: Authoring Books and Technical Documents with R Markdown' I'm not seeing how to build the

[R] Gene Set Enrichment Analysis and plots

2021-08-30 Thread Anas Jamshed
I have done this analysis: #You can select Working Directory according to your choice setwd("D:") #Check Working Directory getwd() #Creation of object(folder) exdir exdir <- path.expand("~/GSE162562_RAW") dir.create(exdir, showWarnings = FALSE) URL <- " https://ftp.ncbi.nlm.nih.gov/geo/series/G

Re: [R] [EXT] R codes/functions for test procedures

2021-08-30 Thread David K Stevens
Dr. Abou - check into the R package NADA, written by Dennis Helsel and colleagues of the USGS and Practical Stats. It may include what you want. Best regards, David On 8/30/2021 3:28 AM, AbouEl-Makarim Aboueissa wrote: Dear All: I am wondering if someone have an R codes (R functions) to

Re: [R] Upgraded to 4.1.1 assignment operator keys not working [RESOLVED]

2021-08-30 Thread Dr Eberhard Lisse
Or using RStudio :-)-O el On 29/08/2021 21:37, Rich Shepard wrote: On Sun, 29 Aug 2021, Rich Shepard wrote: But, ... help. Sigh. It helps to start ESS in emacs first. Rich -- To email me replace 'nospam' with 'el' __ R-help@r-project.org mai

Re: [R] Calculate daily means from 5-minute interval data

2021-08-30 Thread Rich Shepard
On Mon, 30 Aug 2021, Richard O'Keefe wrote: Why would you need a package for this? samples.per.day <- 12*24 That's 12 5-minute intervals per hour and 24 hours per day. Generate some fake data. Richard, The problem is that there are days with fewer than 12 recorded values for various reason

Re: [R] Calculate daily means from 5-minute interval data

2021-08-30 Thread Richard O'Keefe
It is not clear to me who Jeff Newmiller's comment about periodicity is addressed to. The original poster, for asking for daily summaries? A summary of what I wrote: - daily means and standard deviations are a very poor choice for river flow data - if you insist on doing that anyway, no fancy packa

Re: [R] R codes/functions for test procedures

2021-08-30 Thread Eric Berger
You might also try asking the author directly if he knows of any implementations of his procedures. I searched online and found his website at: https://www.unic.ac.cy/pouloukas-stavros/ You can also find his email there. On Mon, Aug 30, 2021 at 12:29 PM AbouEl-Makarim Aboueissa < abouelmakarim1..

[R] R codes/functions for test procedures

2021-08-30 Thread AbouEl-Makarim Aboueissa
Dear All: I am wondering if someone have an R codes (R functions) to run the test procedures described in the paper titled “ESTIMATION AND COMPARISON OF LOGNORMAL PARAMETERS IN THE PRESENCE OF CENSORED DATA” by STAVROS POULOUKAS 2004, Journal of Statistical Computation & Simulation, Vol. 74, N

[R] How to solve this?

2021-08-30 Thread SITI AISYAH ZAKARIA
Dear all, Can anyone help me? I'm using this coding to get the spatial gev model and plotting the quantile plot to justify the model is fit but the plot look like not fit.. How can I solve this? It is I need to change in the any value at the coding.For example I want to change form.shape <-shape ~

Re: [R] Configure error: checking if libcurl supports https... no

2021-08-30 Thread Adam Wysokiński via R-help
Hi, What you need is the libcurl library, not the program curl (which you have installed): sudo apt-get install libcurl4 and probably (if not installed automatically by apt): sudo apt-get install libcurl4-openssl-dev Now it should work. PS. you may always check which package provide