I am using dcast
function to rshape datframe in R
,
but while using large dataframe. I converted that into ffdf dataframe
unable to use dcast
function please help me if any alternatives. Find the below example i used for small dataframe and what i want to do for ffdf dataframe
:
- hdsample <- read.csv("C:/Users/PK5016573/Desktop/hdsample.csv")
- View(hdsample)
hd<-dcast(hhpsample,MemberID~Year+Specialty+ProcedureGroup+Vendor+PlaceSvc+PCP+PrimaryConditionGroup+CharlsonIndex)
This is working but:
hhp<-read.ffdf("C:/Users/PK5016573/Desktop/hdsample.csv")
hd<-dcast(hhpsample,MemberID~Year+Specialty+ProcedureGroup+Vendor+PlaceSvc+PCP+PrimaryConditionGroup+CharlsonIndex)
This gives me error please help
thanks in advance pavan kancharala
I got answer for this question but it may not work largely factored data
All the data was taken from kaggle competition added one more column "rep.x..each...2668990." which contains 1 in every row used for aggregation purpose