Quantcast

How to unserialize php-serialized data in R?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to unserialize php-serialized data in R?

nabblegirl
In mysql database, have data serialized by php as below:

"a:564:{s:13:\"caltime\";s:6:\"65.26\";  
I use Rmysql to query these data, but donot know how to unserialize them in
R.



--
View this message in context: http://r.789695.n4.nabble.com/How-to-unserialize-php-serialized-data-in-R-tp4728943.html
Sent from the datatable-help mailing list archive at Nabble.com.
_______________________________________________
datatable-help mailing list
[hidden email]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to unserialize php-serialized data in R?

Serdar Akin-3
It looks like jsonlite::fromJSON function should do the trick.
sön 19 feb. 2017 kl. 08:51 skrev nabblegirl <[hidden email]>:
In mysql database, have data serialized by php as below:

"a:564:{s:13:\"caltime\";s:6:\"65.26\";
I use Rmysql to query these data, but donot know how to unserialize them in
R.



--
View this message in context: http://r.789695.n4.nabble.com/How-to-unserialize-php-serialized-data-in-R-tp4728943.html
Sent from the datatable-help mailing list archive at Nabble.com.
_______________________________________________
datatable-help mailing list
[hidden email]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

_______________________________________________
datatable-help mailing list
[hidden email]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
Loading...