Displaying 1 result from an estimated 1 matches for "pdatafram".
Did you mean:
datafram
2012 Jun 01
1
Converting a pdataframe into dataframe
> a <- data.frame(name=c(rep("a",5), rep("b",5)), year=c(1989:1993, 1989:1993), var=c(1:10))
> str(a)
> b <- pdata.frame(a, index=c("name","year"))
> str(b)
Now, I want to convert b into a data frame and have a structure
similar to a. How do I do that?
--
Apoorva Gupta
Consultant
National Institute of Public Finance and Policy