skip to Main Content

how to convert text to proper JSON in R

i have this code in php: $n = '[{"area":30,"ind":[5,5,4,5,4.14,3.75],"isCluster":true},{"area":31,"ind":[],"isCluster":false}]'; $command = ""C:Program FilesRR-4.3.0binRscript.exe" C:\xampp\htdocs\CKmeans1D.R $n"; exec($command, $output); print_r($output); it execute the CKmeans1D.R to run R file, and in R i have this code: library(jsonlite) args <- commandArgs(trailingOnly = TRUE) x…

VIEW QUESTION
Back To Top
Search