Re: [R] [External] R rounding problem?

2020-09-03 Thread array chip via R-help
Thanks Richard. Got it now... On Thursday, September 3, 2020, 10:12:36 PM PDT, Richard M. Heiberger wrote: FAQ 7.31 On Fri, Sep 4, 2020 at 12:47 AM array chip via R-help wrote: > > Hello, > > I made a mistake today on simple counting in R, that almost got me into > trouble. After trying m

Re: [R] [External] R rounding problem?

2020-09-03 Thread Richard M. Heiberger
FAQ 7.31 On Fri, Sep 4, 2020 at 12:47 AM array chip via R-help wrote: > > Hello, > > I made a mistake today on simple counting in R, that almost got me into > trouble. After trying multiple times, I finally figured out it's rounding > issue in R. > > For exmaple, when I just simply type: > > >

Re: [R] R rounding problem?

2020-09-03 Thread JRG via R-help
On 2020-09-04 00:46, array chip via R-help wrote: > Hello, > > I made a mistake today on simple counting in R, that almost got me into > trouble. After trying multiple times, I finally figured out it's rounding > issue in R. > > For exmaple, when I just simply type: > >> (6.9-6.3) > 0.6 > [1] TRU

[R] R rounding problem?

2020-09-03 Thread array chip via R-help
Hello, I made a mistake today on simple counting in R, that almost got me into trouble. After trying multiple times, I finally figured out it's rounding issue in R. For exmaple, when I just simply type: > (6.9-6.3) > 0.6 [1] TRUE 6.9-6.3 should be 0.6 exactly, but R thinks that it's greater t

Re: [R] find number of consecutive days in NC files by R

2020-09-03 Thread Jim Lemon
Hi Ahmet, I really can't work out what your problem is. I don't have access to the data you are using and so cannot inspect "a" to see what might be in it. Jim On Wed, Sep 2, 2020 at 8:54 AM ahmet varlı wrote: > > Hi jim, > > > > I have a new question. I have 71 years raster data from 1949 to 20

Re: [R] Assigning cores

2020-09-03 Thread Peter Langfelder
The big question is whether each worker or thread uses parallel processing itself, or whether it uses resources like cache in which case 20 threads fighting over the cache would slow you down substantially. If your simulations use operations implemented in BLAS or LAPACK, be aware that some R insta

Re: [R] Assigning cores

2020-09-03 Thread Rasmus Liland
On 2020-09-03 13:44 -0400, Leslie Rutkowski wrote: > Hi all, > > I'm working on a large simulation and > I'm using the doParallel package to > parallelize my work. I have 20 cores > on my machine and would like to > preserve some for day-to-day > activities - word processing, sending > email

Re: [R] Assigning cores

2020-09-03 Thread Jeff Newmiller
Do you have 20 actual cores or 10 cores/20 threads? detectCores() doesn't usually know the difference but the CPU may be too busy accessing memory to let that last thread get any useful work done. I often find that allocating real cores is more practical than thinking in terms of thread so try a

[R] calculating linear regression for each word cell

2020-09-03 Thread ahmet varlı
Hi all, I have 71 raster for each year. I am trying to convert all raster layer to 1 array (94 ,192 , 71) and then � would calculate for each word cell a linear regression that shows the change but i dont know how � can do this For creating array with rasters between 1949 and 2019 library(r

Re: [R] Assigning cores

2020-09-03 Thread Tom Woolman
Hi Leslie and all. You may want to investigate using SparklyR on a cloud environment like AWS, where you have more packages that are designed to work on cluster computing environments and you have more control over those types of parallel operations. V/r, Tom W. Quoting Leslie Rutkows

[R] Assigning cores

2020-09-03 Thread Leslie Rutkowski
Hi all, I'm working on a large simulation and I'm using the doParallel package to parallelize my work. I have 20 cores on my machine and would like to preserve some for day-to-day activities - word processing, sending emails, etc. I started by saving 1 core and it was clear that *everything* was

[R] [R-pkgs] new ivreg package for 2SLS regression with diagnostics

2020-09-03 Thread John Fox
Dear list members, Christian Kleiber, Achim Zeileis, and I would like to announce a new CRAN package, ivreg, which provides a comprehensive implementation of instrumental variables estimation using two-stage least-squares (2SLS) regression. The standard regression functionality (parameter es

Re: [R] Why does a 2 GB RData file exceed my 16GB memory limit when reading it in?

2020-09-03 Thread Ista Zahn
On Wed, Sep 2, 2020 at 7:22 PM Leandro Marino wrote: > > David, > > If the ".Rdata" contains more than one object you could (and maybe should > use) the SOAR package (from Venables). This package helps you to split the > objects over multiple RData files. It's useful when you have numerous > mediu

Re: [R] Error in running diffcoexp

2020-09-03 Thread PIKAL Petr
Hi. See inline > -Original Message- > From: R-help On Behalf Of Dr Priyanka Jain > Sent: Wednesday, September 2, 2020 1:12 PM > To: r-help@r-project.org > Subject: [R] Error in running diffcoexp > > Dear Sir/ Madam, > I am getting the following error: > >

[R] Error in running diffcoexp

2020-09-03 Thread Dr Priyanka Jain
Dear Sir/ Madam, I am getting the following error: geneExp <- read.table("DV_control_FPKM.txt",header=T, sep="\t",row.names=1) geneExp=as.matrix(as.data.frame(geneExp)) head(geneExp) geneExp2 <- read.table("DV_introgressed_line_FPKM.txt",header=T, sep="\t",row.names=1