I created hashes with key, value pair. mydata is dataframe
myhash<-list(
slno= c('a','b','c'),
code= c('AKS','STU','RMS')
)
for (key in names(thisdict)){
for (value in thisdict[key]){
for (i in value){
print(mydata$key)
sum(mydata[mydata$key == value[i],'W'], na.rm=TRUE)
}
}
}
so while using mydata$key
i'm not able to acccess as mydata$slno
is there any solution for this.