p <- unlist(Map(f, 1:nrow(df)))
df2 <- df[rowindex_rep, ]
Regards,
radmuzom
From: R-help on behalf of Eric Berger
Sent: Sunday, July 8, 2018 3:21 PM
To: catalin roibu
Cc: R Project Help
Subject: Re: [R] replicate rows
Hi Catalin,
This should work. I set the number of repetitions
The package appears to be referenced in the package "agridat" -
ftp://cran.r-project.org/pub/R/web/packages/agridat/agridat.pdf (Pg 55).
However, even I tried searching for it and there seems to be no reference other
than this source.
Regards,
radmuzom
From: R-help on behal
2 matches
Mail list logo