Displaying 1 result from an estimated 1 matches for "wdata1".
Did you mean:
data1
2011 Jul 06
3
Reshape from long to wide format with date variable
Hi,
I need to reshape my dataframe from a long format to a wide format.
Unfortunately, I have a continuous date variable which gives me headaches.
Consider the following example:
> id=c("034","034","016","016","016","340","340")
> date=as.Date(c("1997-09-28", "1997-10-06", "1997-11-04",