Try this.
dfsub <- df[df$deps %in% c("CC", "DD", "FF"), ]
names(dfsub) <- c("Subject", "newdate", "origdep")
final <- merge(df, dfsub)
Jean
On Wed, Aug 10, 2016 at 10:58 AM, Farnoosh Sheikhi via R-help <
r-help@r-project.org> wrote:
> blockquote, div.yahoo_quoted { margin-left: 0 !important; b
Getting the dates of the departments CC, DD, FF can be done with
subset(df, deps %in% c("CC", "DD", "FF"))
I am not sure how you intend to match these identified dates with other
departments? From your example you sometimes replace earlier dates,
sometimes later dates.
HTH
Ulrik
On Mon, 8 Aug 2
2 matches
Mail list logo