Re: [R] Plotting quarterly time series

2018-01-28 Thread Gabor Grothendieck
Using Achim's d this also works to generate z where FUN is a function used to transform the index column and format is also passed to FUN. z <- read.zoo(d, index = "time", FUN = as.yearqtr, format = "Q%q %Y") On Sun, Jan 28, 2018 at 4:53 PM, Achim Zeileis wrote: > On Sun, 28 Jan 2018, p...@phili

Re: [R] Plotting quarterly time series

2018-01-28 Thread Achim Zeileis
On Sun, 28 Jan 2018, p...@philipsmith.ca wrote: I have a data set with quarterly time series for several variables. The time index is recorded in column 1 of the dataframe as a character vector "Q1 1961", "Q2 1961","Q3 1961", "Q4 1961", "Q1 1962", etc. I want to produce line plots with ggplot2

[R] Plotting quarterly time series

2018-01-28 Thread phil
I have a data set with quarterly time series for several variables. The time index is recorded in column 1 of the dataframe as a character vector "Q1 1961", "Q2 1961","Q3 1961", "Q4 1961", "Q1 1962", etc. I want to produce line plots with ggplot2, but it seems I need to convert the time index from

Re: [R] semPLS package will not load seems to be failing on loading package lattice

2018-01-28 Thread David Winsemius
> On Jan 28, 2018, at 4:50 AM, Michael Lane wrote: > > Hi R Help Team > > I recently updated my R installation to R 3.4.3 and updated to later version > of R Studio and I found that the package semPLS will not load even though > installed and it seems to be failing on loading package lattice

Re: [R] Newbie wants to compare 2 huge RDSs row by row.

2018-01-28 Thread Eric Berger
Hi Henrik, Thanks for pointing out the diffobj package and the clear example. Nice! On Sun, Jan 28, 2018 at 6:22 PM, Marsh Hardy ARA/RISK wrote: > Thanks, I think I've found the most succinct expression of differences in > two data.frames... > > length(which( rowSums( x1 != x2 ) > 0)) > > gives

Re: [R] Newbie wants to compare 2 huge RDSs row by row.

2018-01-28 Thread Marsh Hardy ARA/RISK
Thanks, I think I've found the most succinct expression of differences in two data.frames... length(which( rowSums( x1 != x2 ) > 0)) gives a count of the # of records in two data.frames that do not match. // From: Henrik Bengtsson [henrik.bengts...@gmai

Re: [R] Newbie wants to compare 2 huge RDSs row by row.

2018-01-28 Thread Henrik Bengtsson
The diffobj package (https://cran.r-project.org/package=diffobj) is really helpful here. It provides "diff" functions diffPrint(), diffStr(), and diffChr() to compare two object 'x' and 'y' and provide neat colorized summary output. Example: > iris2 <- iris > iris2[122:125,4] <- iris2[122:125,4]

[R] semPLS package will not load seems to be failing on loading package lattice

2018-01-28 Thread Michael Lane
Hi R Help Team I recently updated my R installation to R 3.4.3 and updated to later version of R Studio and I found that the package semPLS will not load even though installed and it seems to be failing on loading package lattice Getting the following error message: library(semPLS) Loading req

Re: [R] Newbie wants to compare 2 huge RDSs row by row.

2018-01-28 Thread Ulrik Stervbo
The anti_join from the package dplyr might also be handy. install.package("dplyr") library(dplyr) anti_join (x1, x2) You can get help on the different functions by ?function.name(), so ?anti_join() will bring you help - and examples - on the anti_join function. It might be worth testing your app