Re: [R] Time intervals is converted into seconds after converting list of dfs into a single Df.

2019-12-24 Thread Allaisone 1
Many thanks Bert for being so cooperative. Deviding the data into small bites would be a good suggestion but I will wait first to see If someone else may have another idea. Many thanks From: Bert Gunter Sent: 24 December 2019 21:03:56 To: Allaisone 1 Cc: Patrick

Re: [R] Time intervals is converted into seconds after converting list of dfs into a single Df.

2019-12-24 Thread David Winsemius
Perhaps some modification of masterList <- list() for( dfnum in seq_along(ListOfDFs)){ masterList <- rbind(masterList, ListOfDFs[[dfnum]])    }  masterList #---    id         dates1          dates2            

Re: [R] Time intervals is converted into seconds after converting list of dfs into a single Df.

2019-12-24 Thread Bert Gunter
1. "Similar" or "same" column names. The former is probably not going to work. 2. Manipulations with data frames can consume a lot of memory. rbinding 8000 data frames is likely to be very slow with lots of time swapping memory around(???). Perhaps try taking smaller bites (say 1000 at a time)

Re: [R] Time intervals is converted into seconds after converting list of dfs into a single Df.

2019-12-24 Thread Allaisone 1
Hi dear Patrick , Thanks for your replay. Below is a reproducible example . First, I generated two similar Dfs with one column contains the interval. Then, I put the 2 dfs in a list. Now, converting this list into df provides different results depending on the code. See below for more

Re: [R] Time intervals is converted into seconds after converting list of dfs into a single Df.

2019-12-24 Thread Patrick (Malone Quantitative)
You didn't provide a reproducible example for testing (or post in plain text), but lubridate has an as.interval() function. You'll need to be able to extract the start time, though, for use in the function. On Tue, Dec 24, 2019 at 11:54 AM Allaisone 1 wrote: > > > Hi dear group , > > I have list

[R] Time intervals is converted into seconds after converting list of dfs into a single Df.

2019-12-24 Thread Allaisone 1
Hi dear group , I have list of datframes with similar column names. I want to rebind all dataframes so I have a single dataframe. One of the column's in each df is of 'interval' time class which was generated from 'lubridate' package. The problem is that when I convert the list of dfs into a

Re: [R] Alignment of the title in a key for xyplot in lattice.

2019-12-24 Thread Deepayan Sarkar
On Tue, Dec 24, 2019 at 6:59 AM Jim Lemon wrote: > > Hi Rolf, > Following the docs back to draw.key, It looks like the ellipsis > argument is ignored. I was hoping for a brilliant solution along the > lines of: > > adj=0 > > that could be passed down the functions like a hot potato, but was >

Re: [R] Alignment of the title in a key for xyplot in lattice.

2019-12-24 Thread Eric Berger
Lovely solution Rolf :-) On Tue, Dec 24, 2019 at 8:42 AM Rolf Turner wrote: > > On 24/12/19 2:29 pm, Jim Lemon wrote: > > > Hi Rolf, > > Following the docs back to draw.key, It looks like the ellipsis > > argument is ignored. I was hoping for a brilliant solution along the > > lines of: > > > >