rserve-php icon indicating copy to clipboard operation
rserve-php copied to clipboard

how to change a php array to R array or list

Open DaisyLuooo opened this issue 6 years ago • 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) }

DaisyLuooo avatar Sep 10 '19 11:09 DaisyLuooo