Re: [R] Converting characters back to Date and Time

2021-08-31 Thread Enrico Schumann
On Tue, 31 Aug 2021, Eliza Botto writes: > DeaR useR, > > I read an excel column in R having Date and time (written in the same cell) > as follow, > > 06/18/18 10:00 > > 06/18/18 11:00 > > 06/18/18 12:00 > > In R environment, they are read as > > 43269.42 > > 43269.46 > > 43269.50 > > Is there a

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

2021-08-31 Thread Richard O'Keefe
I wrote: > > 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. Rich Shepard replied: > The data are important because they show what's happened in that period of > record. Don't physicians take a medical histor

[R] What if there's nothing to dispatch on?

2021-08-31 Thread Rolf Turner
I'm trying to build a pair of (S3) methods, a "formula" method and a "default" method. The methods have a "data" argument. If the variables in question cannot be found in "data" then they should be sought in the global environment. My problem is that the generic dispatches on its first argumen

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

2021-08-31 Thread Jeff Newmiller
Never use stringsAsFactors on uncleaned data. For one thing you give a factor to as.Date and it tries to make sense of the integer representation, not the character representation. library(dplyr) dta <- read.csv( text = "sampdate,samptime,cfs 2020-08-26,09:30,136000 2020-08-26,09:35,126000 2020-

Re: [R] How to solve this?

2021-08-31 Thread William Michels via R-help
Hello, You may have more luck posting your question to the R-SIG-Geo mailing-list: https://stat.ethz.ch/mailman/listinfo/R-SIG-Geo/ Be sure to use an appropriate "Subject" line, for example, the particular package/function that seems problematic. HTH, Bill. W. Michels, Ph.D. On Mon, Aug 30,

Re: [R] Converting characters back to Date and Time

2021-08-31 Thread Andrew Simmons
Hello, I'm assuming you're reading from an "*.xlsx" file. I'm not sure which package you're using for this scenario, but my preference is 'openxlsx'. If this is the package you're using, you could set argument 'detectDates' to 'TRUE', and then it should read them correctly. FILE <- tempfile(fil

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

2021-08-31 Thread Rich Shepard
On Sun, 29 Aug 2021, Jeff Newmiller wrote: The general idea is to create a "grouping" column with repeated values for each day, and then to use aggregate to compute your combined results. The dplyr package's group_by/summarise functions can also do this, and there are also proponents of the data

[R] Converting characters back to Date and Time

2021-08-31 Thread Eliza Botto
DeaR useR, I read an excel column in R having Date and time (written in the same cell) as follow, 06/18/18 10:00 06/18/18 11:00 06/18/18 12:00 In R environment, they are read as 43269.42 43269.46 43269.50 Is there a way to covert these characters back to the original format? Thank-you ve

[R] [R-pkgs] Announcing R package 'fedmatch'

2021-08-31 Thread Chris Webster
Hello all, We have just released the R package 'fedmatch' to CRAN. Following is a brief description and some links for more information: With an ever-expanding set of financial data providers, each covering many of the same firms and entities, matching data sets that do not share common identifiers

Re: [R] A glitch (???) in tools::texi2pf.

2021-08-31 Thread Eric Berger
Thanks Greg! On Tue, Aug 31, 2021 at 1:49 PM Greg Minshall wrote: > by the way, and "fwiw", the emacs org mode community seems to like using > latexmk for moving latex files towards .pdf'ishness: > > https://mg.readthedocs.io/latexmk.html > > cheers, Greg > > ___

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

2021-08-31 Thread Rich Shepard
On Tue, 31 Aug 2021, Richard O'Keefe wrote: 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. Richard, The data are important because they show what's happened in that period of record. Don't physicians take a med

Re: [R] A glitch (???) in tools::texi2pf.

2021-08-31 Thread Greg Minshall
by the way, and "fwiw", the emacs org mode community seems to like using latexmk for moving latex files towards .pdf'ishness: https://mg.readthedocs.io/latexmk.html cheers, Greg __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see h