[R] how to add comma to string vector?
Rasmus Liland
jr@| @end|ng |rom po@teo@no
Fri Jun 10 13:15:37 CEST 2022
> raws <- c("field_1", "field_2", "field_3")
> reticulate::r_to_py(x=raws)
No non-system installation of Python could be found.
Would you like to download and install Miniconda?
Miniconda is an open source environment management system for Python.
See https://docs.conda.io/en/latest/miniconda.html for more details.
Would you like to install Miniconda? [Y/n]: n
Installation aborted.
['field_1', 'field_2', 'field_3']
> reticulate::py_config()
python: /usr/bin/python3
libpython: /usr/lib/libpython3.10.so
pythonhome: //usr://usr
version: 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0]
numpy: /usr/lib/python3.10/site-packages/numpy
numpy_version: 1.22.4
python versions found:
/usr/bin/python3
/usr/bin/python
> reticulate::py_run_string('print(1+1)')
2
> reticulate::r_to_py(x=raws)
['field_1', 'field_2', 'field_3']
More information about the R-help
mailing list