[R] reticulate + virtual environments

2024-07-14 Thread Sigbert Klinke
Hi, I am using reticulate and a virtual environment (not conda) to run Python scripts from RStudio. However, when I try to use my own (existing) virtual environment, reticulate does not use it. If I run my scripts, the installed modules (e.g., py_install("pandas", "mmstat4.hu.data")) are not

[R] Ps: Reinterpret data without saving it to a file 1st? Check for integer stopping at 1st decimal?

2024-07-14 Thread DynV Montrealer
The answer: https://statisticsglobe.com/change-classes-data-frame-columns-automatically-r On Sun, Jul 14, 2024 at 3:16 AM DynV Montrealer wrote: > A small number of columns in the data I need to work with are strings, the > rest numbers. I'm using read_excel() from the readxl package to get the

Re: [R] Reinterpret data without saving it to a file 1st? Check for integer stopping at 1st decimal?

2024-07-14 Thread Ivan Krylov via R-help
В Sun, 14 Jul 2024 03:16:56 -0400 DynV Montrealer пишет: > Perhaps some way to break the spreadsheet data (eg XLdata <- > read_excel(...)), then put it back together without any writing to a > file (eg XLdataReformed <- reform(XLdata)) ? read_excel() is documented to return objects of class tibb

Re: [R] Problem loading BiodiversityR, Error: package ‘tcltk’ could not be loaded

2024-07-14 Thread Ivan Krylov via R-help
В Sat, 13 Jul 2024 16:04:17 +0100 Adam Hillier пишет: > error: X11 library is missing: install XQuartz from www.xquartz.org Does the problem go away if you install XQuartz from www.xquartz.org? "R installation and administration" section 4 also documents the requirement to have XQuartz instal

[R] Problem loading BiodiversityR, Error: package ‘tcltk’ could not be loaded

2024-07-14 Thread Adam Hillier
Hi, I get the following error when trying to load the BiodiversityR package > library(> library(BiodiversityR) Loading required package: tcltk tcltk DLL is linked to '/opt/X11/lib/libX11.6.dylib' Error: package or namespace load failed for ‘tcltk’: .onLoad failed in loadNamespace() for 'tcltk',

[R] Reinterpret data without saving it to a file 1st? Check for integer stopping at 1st decimal?

2024-07-14 Thread DynV Montrealer
A small number of columns in the data I need to work with are strings, the rest numbers. I'm using read_excel() from the readxl package to get the data ; right after it, the string columns are of type chr and the rest num. I'm tasked with finding out which columns are integers. From an advice, I t