Not sure how to do this:
I have a something stored like this (in a):
[
"MULTIPOLYGON (((-95.0000000372529 40.999989970587194, -94.5000000372529 40.999989970587194, -94.5000000372529 40.499989970587194, -95.0000000372529 40.499989970587194)))"
]
typeof(a) # prints "character"
class(a) # prints "json"
And I would like to convert it to a data.frame that looks like this (no need to round the numbers, it was just easier to type that)
X1 X2
1 -95 40
2 -94 40
3 -94 40
4 -95 40
I tried
a.df<-as.data.frame(as.matrix(a))
but that prints
V1
1 [\n "MULTIPOLYGON (((-95.0000000372529 40.999989970587194, -94.5000000372529 40.999989970587194, -94.5000000372529 40.499989970587194, -95.0000000372529 40.499989970587194)))"\n]\n