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
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
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
> 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
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
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
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]
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
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
9 matches
Mail list logo