cturbelin/rserve-php

how to change a php array to R array or list

Opened this issue · 0 comments

how to change a php array to R array or list?
example:
$arr=['EF', 3, 0.05,];
$parser = new NativeArray($arr);
but error: array_values() expects parameter 1 to be array, object given [ROOT/vendor/Rserver/cturbelin/rserve-php/src/REXP/RList.php, line 29];

and var_dump($parser),just get object(Sentiweb\Rserve\Parser\NativeArray)#73 (2) { ["use_wrapper":protected]=> bool(false) ["factor_as_string":protected]=> bool(true) }