Data <- data.frame(country = c("Cambodia", "Camnodia", "Japan", "Japan"),
year = c(1990, 2001, 1994, 2012))
ExpandedData <- TimeExpand(Data, GroupVar = 'country', TimeVar = 'year')
Run the code above in your browser using DataLab