[R] replicating dataframe rows
wwwhsd at gmail.com
Mon Sep 29 19:45:11 CEST 2008
my.df <- data.frame(Place = rep(place, population), Population =
On Mon, Sep 29, 2008 at 2:26 PM, milton ruser <milton.ruser at gmail.com> wrote:
> Dear all,
> I have a data.frame like the sample below, and I would
> like to expand my data.frame using "population" variable.
> So, for each line of my data.frame I would like that
> the new data.frame have many rows as the population collumn.
> place<-c("place1", "place2", "place3", "place4", "place5")
> best wishes,
> miltinho astronauta
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
25° 25' 40" S 49° 16' 22" O
More information about the R-help