Why does the cast on r function return 1 and 0 instead of the corresponding values?

0

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

    
asked by Elvira Durán Martínez 30.11.2018 в 21:06
source

0 answers