OH thanks a lot. The solutions here are cool
But the problem is . I have this datasets in a excel. When I import it, Column B is actually a List/Character/Factor data types here.
In your case, when I create a dataframe, Column B datatype is Asis and hence it is working.
In my dataset, the solution is not working. Since it "asis"
Here is the dput. (Sorry I should have put earlier only)
structure(list(A = c("da", "fsd"), B = c("list(off= c(\"Ove\",\"fdsdf\"), rou = \"Int\", br = \"MS\", act = list(list(name = \"Pen\", dost = \"Unk\", dor = \"1\", do1r = \"1\", dor_unit = \"Unknown\")), usel = \"fse\", d = \"Soon\", code = \"QJ009\", mn = \"MSK\", mnr = \"5010\")",
"list(rou = \"Int1\", br = \"MS1\", act = list(list(name = \"Pe1n\", dost = \"U1nk\", dor = \"11\", do1r = \"11\", dor_unit = \"Un1known\")), usel = \"1fse\", d = \"1Soon\", code = \"Q1J009\", mn = \"MK\")"
)), row.names = c(NA, -2L), class = c("tbl_df", "tbl", "data.frame"
))