[R] cygwin1.dll problems when installing packages from source

2017-06-03 Thread Vivek Sutradhara
Hi all, I am having some problems in updating some packages from source. I start with : install.packages("Boom",lib="C:/RownLib",type="source") I get the following error message : * installing *source* package 'Boom' ... ** package 'Boom' successfully unpacked and MD5 sums checked ** libs *** ar

[R] Fwd: cygwin1.dll problems when installing packages from source

2017-06-03 Thread Vivek Sutradhara
Hi all, I would just like to add that I have installed R3.4.0patched and again run the same commands. This does not help. I get essentially the same error message. It is just a lot more longer with multiple repetitions of essentially the following : c:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/R

Re: [R] cygwin1.dll problems when installing packages from source

2017-06-03 Thread Vivek Sutradhara
Hi, As far as I can see, no. On checking, I have confirmed that the only location of cygwin1.dll is : C:\Rtools\bin Thanks Vivek 2017-06-03 12:57 GMT+02:00 Duncan Murdoch : > On 03/06/2017 6:31 AM, Vivek Sutradhara wrote: > >> Hi all, >> I am having some problems in updating

Re: [R] cygwin1.dll problems when installing packages from source

2017-06-03 Thread Vivek Sutradhara
Hi, I have now re-installed Rtools. This has solved my problem. Even previously, Rtools was the first on the path. However, thanks a lot for this help. I can now move on. Thanks, Vivek 2017-06-03 13:09 GMT+02:00 Duncan Murdoch : > On 03/06/2017 7:00 AM, Vivek Sutradhara wrote: > >&g

[R] Annotation Ticks on the axis

2017-08-11 Thread Vivek Sutradhara
Hi all, I would like to have help in getting annotation ticks (corresponding to the minor grid) on my plot. Here is my toy example : par(mar=c(5, 6, 5, 5) + 0.1) x<-1:10 y<-x^2 plot(x,y,log="xy",xlab="log(x)",ylab="log(y)") par(new=T) plot(log(x),log(y),type='n',col="red",xaxt="n",yaxt="n",

Re: [R] Annotation Ticks on the axis

2017-08-11 Thread Vivek Sutradhara
ere as well? Would appreciate continued help. Thanks 2017-08-11 11:49 GMT+02:00 PIKAL Petr : > Hi > > see in line > > -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Vivek > > Sutradhara > > Sent: Friday, August

[R] symbolic computing example with Ryacas

2017-09-19 Thread Vivek Sutradhara
Hi all, I am trying to implement the following matlab code with Ryacas : syms U x x0 C d1=diff(U/(1+exp(-(x-x0)/C)),x); pretty(d1) d2=diff(U/(1+exp(-(x-x0)/C)),x,2); pretty(d2) solx2 = solve(d2 == 0, x, 'Real', true) pretty(solx2) slope2=subs(d1,solx2) I have tried the following : librar

Re: [R] symbolic computing example with Ryacas

2017-09-19 Thread Vivek Sutradhara
> Bert > > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > On Tue, Sep 19, 2017 at 2:37 AM, Vivek Su

[R] overlaying points and lines on a surface3d rgl plot with axes

2017-10-19 Thread Vivek Sutradhara
Hi R users and experts, I am interested in learning more about the use of 3D plots. Specifically, I want to add points and lines to a surface plot. And get the axes and labels plotted also. Here is what I have tried with an example data set : library(rgl) vol2 <- 2*volcano # Exaggerate the relief

Re: [R] overlaying points and lines on a surface3d rgl plot with axes

2017-10-19 Thread Vivek Sutradhara
ot;, "y+", "z")) surface3d(x, y, vol2, color = col, back = "lines") grid3d(c("x", "y+", "z")) surface3d(x, y, vol2, color = col, back = "lines") 2017-10-19 16:47 GMT+02:00 Vivek Sutradhara : > Hi R users and experts, > I am

[R] exporting tables from an access database using parallel foreach

2015-11-20 Thread Vivek Sutradhara
Hi I want to extract data from a Microsoft access database having many tables with more than 1e7 rows. I find that the following code works to export a table to a rds file : # setwd('C:/sFolder') library(RODBC);library(DBI) ch<-odbcConnect("sample") #No. of rows in the table no

Re: [R] exporting tables from an access database using parallel foreach

2015-11-20 Thread Vivek Sutradhara
t; namedRegion A named region in the Workbook. If not NULL startRow, rows and > cols paramters are ignored. > > > On Fri, Nov 20, 2015 at 11:38 AM, Vivek Sutradhara > wrote: > >> Hi >> I want to extract data from a Microsoft access database havi

Re: [R] exporting tables from an access database using parallel foreach

2015-11-21 Thread Vivek Sutradhara
t; > This looks like a good topic for the R-sig-db mailing list if you have > further questions about R and databases, or find a SQL support forum if you > need to learn more about using SQL in general. > > On November 20, 2015 10:32:31 AM PST, Vivek Sutradhara < > viveksu...@gm

Re: [R] exporting tables from an access database using parallel foreach

2015-11-22 Thread Vivek Sutradhara
Hi Rainer and John, Thanks once again for your continued help. I have actually tried out mdbtools. I was able to get going on ubuntu. Unfortunately, to my disappointment, it was not helpful in my specific case. Because the access database is on a server which can be accessed only on windows and not

[R] problem with the use of parallel foreach

2015-12-22 Thread Vivek Sutradhara
Hi, I am having a problem with the use of the foreach package. It is strange that my code works when i use the %do% function but not with %dopar%. Let me explain. I am new to parallel and foreach packages. I have data in the form of very large files, and they are in the form of data tables. I have

[R] converting image formats

2021-03-24 Thread Vivek Sutradhara
Hi, I would like to have help in converting from one image format to another (between the packages EBImage, magick and imager). The magick package has functions for this. But the EBImage and imager packages do not have in-built functions for the conversion. It is, of course, possible to save the im

Re: [R] converting image formats

2021-03-24 Thread Vivek Sutradhara
ot;images", "nuclei.tif", package="EBImage")) writeImage(nucEBo, "C:/Rfiles/nuclei-3.jpg") # to convert nuc_EB_o nucEB_to_IMG <- nucEB_to_MAG <- #convert from imager library(imager) nuc_IMG_o <- load.image("C:/Rfiles/nuclei-3.jpg") # to convert nuc_

[R] Interactive paint corrections on a raster image

2020-08-11 Thread Vivek Sutradhara
Hi, I have tried to develop a simple method of correcting some artefacts in an image with R. Before proceeding further with image analysis. An example of my attempt: library(imager) im <- load.example('coins') imr <- as.raster(im) plot(imr) sel <- locator(n=1) sel x1 <- floor(sel$x) x2 <-

[R] fusion of two matrices (numerical and logical)

2020-09-05 Thread Vivek Sutradhara
Hi I would like to get help in combining two matrices. Here is my example: A <- 1:20 B <- matrix(A,nrow=5,ncol=4) # B is a numerical matrix C <- B<7 C[4,4] <- TRUE # C is a logical matrix # if I combine A and C, I get a vector D1 <- A[C==TRUE] D1 D2 <- A[C==FALSE] D2 I want to get a matrix with th

Re: [R] fusion of two matrices (numerical and logical)

2020-09-05 Thread Vivek Sutradhara
The result that I want to get is this: for (i in 1:5) { for (j in 1:4) { B[i,j] <- ifelse(C[i,j]==FALSE,0,B[i,j]) } } I would like to know if I can do this without loops. Den lör 5 sep. 2020 kl 20:18 skrev Vivek Sutradhara : > Hi > I would like to get help in combining two matri