[R] CentOS 8: installing R

2021-05-24 Thread Roger Bos
Dear all, I seem to be having an impossible time install R on my centos 8 virtual machine (I know centos 8 is no longer maintained, but it is a work server so I have no choice in the matter.). I installed EPEL and enabled PowerTools, but I cannot install R due to conflicts in the requirements for

Re: [R] [External] Re: mpfr function in Rmpfr crashes R

2021-03-07 Thread Roger Bos
a Mac M1. > The problem and potential solution is described here: > > https://stat.ethz.ch/pipermail/r-sig-mac/2021-February/014003.html > > > From: R-help on behalf of Duncan Murdoch < > murdoch.dun...@gmail.com> > Sent: Sunday,

[R] mpfr function in Rmpfr crashes R

2021-03-07 Thread Roger Bos
All, The following code crashes by R on my mac with a message "R session aborted. A fatal error occured". ``` library(Rmpfr) Rmpfr::mpfr(pi, 120) ``` Does anyone have any suggestions? My session info is below: R version 4.0.3 (2020-10-10) Platform: x86_64-apple-darwin17.0 (64-bit) Running un

Re: [R] Looping through a dataframe

2020-07-21 Thread Roger Bos
What you are asking is one area where the package data.table really shines. You didn't provide an example, but based on your question you would do something like: library(data.table) dt <- as.data.table(All_companies) dt[, .N, by=COMPANY_NAME] You will have to read up on data.table, but .N gives

[R] error when installing zoo package on macos: file 'DESCRIPTION' does not exist

2019-05-30 Thread Roger Bos
I was able to upgrade to the latest version of the zoo package on my linux machine, but my mac is given an error message that the DESCRIPTION does not exist. I am sure that is not the real problem, but I don't know how to debug or figure out what the real problem is. The output is below and my se