I have a database in which I use reshape package. The variables are Date
, Company.Name
, Price
I did data.frame
and call Price.Per.Share
. My programming was the following:
md<-melt(Price.Per.Share,id=c("Company.Name","Date"))
a<-cast(md,Date~Company.Name)
However the result of a
are only zeros and ones, and not the reorganized data of the data.frame Price.Per.Share