r - json parsing for inconsistent data -
i have excel file downloaded json database. here sample:
df = data.frame("name" = c("john","jane"), "city" = c("la","ny"), "attributes" = c("edu: abc; gender: male;language: english","edu: def; hobby: cycling; gender: female"))
the 'attributes' column contains multiple attributes. not attributes present in rows/observations , not attributes in same order.
how can parse data data frame looks this?
https://drive.google.com/file/d/0bxgpxv4cwusrc2fodlfuckw2y2s/view?usp=sharing
(this dummy data .the actual client data confidential share in forum) in advance
you may consider working "list wise". create data frames each list , try rbind.fill
hope works
Comments
Post a Comment