I basically want to perform the below Python operation, but in R
train['annotation']=train['annotation'].apply(eval)
So, I tried this:
train$annotation <- lapply(train$annotation, eval)
However, I am getting incorrect output. The output in Python for the annotation column is:
And in R, I am getting:
What is wrong with my R code?