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

Html – Read text between two words

I am reading a website with the rvest-package. Here's an extract from the html code: html <- '<a name="idp341456"></a><div class="big bold">Urteilskopf</div> <br>147 IV 65<br><br><br><div class="paraatf">8. Auszug aus dem Urteil der Strafrechtlichen Abteilung i.S. A. gegen Generalstaatsanwaltschaft des Kantons Bern, B.…

VIEW QUESTION
Back To Top
Search