search for: mainali

Displaying 14 results from an estimated 14 matches for "mainali".

2018 Feb 23
4
change location of temporary files
...ve in my iMac. This is important because the temporary files R creates are huge and I do not have enough available space in my internal HD. Again, this is for macOS. This change has to be temporary. Later I need to use the usual location for temp files in the internal HD. Thanks in advance, Kumar Mainali -- Postdoctoral Associate Department of Biology University of Maryland, College Park ? [[alternative HTML version deleted]]
2018 Feb 23
0
change location of temporary files
...1] "/tmp/RTMP-BILL/Rtmppgowz4" > tempfile() [1] "/tmp/RTMP-BILL/Rtmppgowz4/file7ce36ec5cb1e" I don't know if there is an R-specific environment variable or startup flag for this. Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Feb 23, 2018 at 10:52 AM, Kumar Mainali <kpmainali at gmail.com> wrote: > I would like to change where R stores the temporary files to my external > hard drive in my iMac. This is important because the temporary files R > creates are huge and I do not have enough available space in my internal > HD. Again, this is for...
2013 Jan 30
2
Programmatically give file name to a matrix
I have a situation when I need to save matrix with file names that are programmatically created. for (i in levels(mergeTrn$Continent)) { matrix here.... # I want to save this matrix with a file name that carries "i" from for loop. The following does not work. paste("plotroc_GBM_Trn_", i, sep="") <- matrix } Thanks, Kumar -- Section of Integrative
2011 Jul 25
2
Selecting unique values
Greetings I have a dataset with occurrence records of multiple species. I need to get rid of multiple listings of the same occurrence point for a species (as you see below in red and blue typeface). How do I create a dataset only with unique set of longitude and latitude for each species? Thanks in advance. Species_name Longitude Latitude Abies concolor -106.601 35.868 Abies concolor -106.493
2017 Dec 07
0
parallel computing with foreach()
...ou may be inadvertently calling utils::stack which would produce this kind of error: > stack(1:25, RAT = FALSE) Error in data.frame(values = unlist(unname(x)), ind, stringsAsFactors = FALSE) : arguments imply differing number of rows: 25, 0 HTH, Peter On Wed, Dec 6, 2017 at 10:03 PM, Kumar Mainali <kpmainali at gmail.com> wrote: > I have used foreach() for parallel computing but in the current problem, it > is not working. Given the volume and type of the data involved in the > analysis, I will try to give below the complete code without reproducible > example. > > In...
2017 Dec 07
2
parallel computing with foreach()
I have used foreach() for parallel computing but in the current problem, it is not working. Given the volume and type of the data involved in the analysis, I will try to give below the complete code without reproducible example. In short, each R environment will draw a set of separate files, perform the analysis and dump in separate folders. splist <- c("juoc", "juos",
2011 Jan 16
1
Displaying ylab in mfrow
Dear R users, I cannot display ylab with the following code while trying to stack 7 rows of 3 histograms each. Thanks in advance! par(mfrow=c(7,3)) par(mar=c(2,2,2,2)) par(oma=c(5,5,0,0)) with (newdata <- subset(table, Month1 == "1"), hist(newdata$CarapWid, breaks=5*(0:80), col="gray80", main="All individuals", xlab="", xlim =c(15,85), ylab="April
2012 Apr 01
1
Selecting files with a particular string in filename
I am trying to find an efficient way to select certain text files from a folder with thousands of text files. I used file.list function with a specific "pattern" to obtain 70 files for each of the i's in 1:100. Next, I need to select some files from this list of 70 files. The files to be selected do have a unique "pattern" in their file name. However, I cannot use
2017 Oct 05
0
fraction of null deviance explained by each node/variable in regression trees
...he tree. For instance, at the first split, this would be (1 - (sum of residual deviance in each of the two leaves)/deviance at the root). In the subsequent splits, this formula is slightly different. There probably is a function to get this done within R. Any help is appreciated. Thank you, Kumar Mainali -- Postdoctoral Associate Department of Biology University of Maryland, College Park ? [[alternative HTML version deleted]]
2013 Feb 15
1
file copy to password protected network drive
I am trying to copy files to a password protected drive which is "Ranch" at TACC from another network drive. I am logged in to the source drive and can run R there. The following code does not even find the destination folder. file.copy("sourcedrive/file.tar", " username@ranch.tacc.utexas.edu/uniqueID/destinationfolder/file.tar", overwrite = FALSE) Thanks in
2013 Apr 26
1
NMDS in Vegan: problems in stressplot, best solution
Hello, I can draw a basic stress plot for NMDS with the following code in package Vegan. > stressplot(parth.mds, parth.dis) When I try to specify the line and point types, it gives me error message. > stressplot(parth.mds, parth.dis, pch=1, p.col="gray", lwd=2, l.col="red") Error in plot.xy(xy, type, ...) : invalid plot type In the above code, if I removed line type,
2011 Jan 17
2
How to still processing despite bug errors?
...inding NAs in DF (Ivan Calandra) > 71. Re: median by geometric mean (S Ellison) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 16 Jan 2011 03:40:40 -0800 > From: Peter Ehlers <ehlers@ucalgary.ca> > To: Kumar Mainali <kpmainali@gmail.com> > Cc: "r-help@r-project.org" <r-help@r-project.org> > Subject: Re: [R] Displaying ylab in mfrow > Message-ID: <4D32D938.4080908@ucalgary.ca> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 2011-01-15 18:54, Kum...
2012 Mar 25
2
avoiding for loops
I have data that looks like this: > df1 group id 1 red A 2 red B 3 red C 4 blue D 5 blue E 6 blue F I want a list of the groups containing vectors with the ids. I am avoiding subset(), as it is only recommended for interactive use. Here's what I have so far: df1 <- data.frame(group=c("red", "red", "red", "blue",
2012 Apr 06
4
Legend based on levels of a variable
I have a bivariate plot of axis2 against axis1 (data below). I would like to use different size, type and color for points in the plot for the point coming from different region. For some reasons, I cannot get it done. Below is my code. col <- rep(c("blue", "red", "darkgreen"), c(16, 16, 16)) ## Choose different size of points cex <- rep(c(1, 1.2, 1), c(16, 16,