similar to: Save/Load function()-result to file in a loop

Displaying 20 results from an estimated 1100 matches similar to: "Save/Load function()-result to file in a loop"

2012 Jun 08
4
Sort 1-column dataframe with rownames
Hi, I have a 1-column dataframe with rownames and I want to sort it based on the single column. The typical procedure that is recommended in diverse posts is to use order in the index. But that "destroys" my dataframe structure. Probabaly it is a very simple solution. Here is a short reproducable example: x <- c(1,3,51,2,34,44,12,33,2,8) df <- data.frame(x) rownames(df) <-
2012 May 31
3
Remove columns from dataframe based on their statistics
Hi, I have a dataframe and want to remove columns from it that are populated with a similar value (for the total column) (the variation of that column is 0). Is there an easier way than to calculate the statistics and then remove them by hand? A <- runif(100) B <- rep(1,100) C <- rep(2.42,100) D <- runif(100) df <- data.frame(A,B,C,D) # if want to conditionally remove column B and
2012 May 04
1
Generate strings from multiple variables
Hi, it is easiest to explain what I want to do by an example: lets assume there are two factors/variables: A <- c(1,2,3) B <- c(1,3,3) Now I would like to generate a list of strings that should look like ("A1_B1","A1_B2","A2_B1","A2_B2"). So actually the string contains all possible combinations of A and B (separated by _). This should be also
2012 Jun 11
2
question about changing certificate
Good day! I'm having trouble changing certificate/keys for my dovecot(version 1.2.9). When I set up the server (unbuntu lts 10.4.4) I did it with a self-signed certificate. I can't remember exactly what I did, just that I followed the wiki and it worked fine =) Now I have to change the certificate because a friend bought an official one (from thawte) and I'm a bit stumped. As dovecot
2012 Feb 03
2
Assigning objects to variable and variable to list in a for loop
Hello, I want to use a for loop for repeadely calculating a maxent model (package dismo, function maxent()) which creates an object of the class maxent (S4). I want to collect all the resulting object in a list. I tried to simplify my for loop to explain what I want. There are two problems/questions: 1) How can I create the new variables in the loop (using paste) and assign the objects 2) How
2008 Nov 10
4
PathFindExtension and wide strings
Hi, What''s happening here? require ''windows/path'' require ''windows/unicode'' include Windows::Path include Windows::Unicode file_a = ''bar.txt'' file_w = multi_to_wide(file_a) p PathFindExtensionA(file_a) # ''.txt'' => OK p PathFindExtensionW(file_w) # ''.'' => WRONG Is Ruby chopping the
2014 Dec 05
1
functionality to rsync from dir to dir(gzip)
Dear all is it possible to rsync in a master-slave scenario saving to slave gzip content? i'm not talking about compression during transfer, i'm talking about -saving- the destination in a compressed format. Example: FROM: -folder_A --file_A --file_B TO: -folder_A --file_A.gz --file_B.gz I know that this won't be a "real" rsync between two folder, but it will be an
2018 Jun 19
3
Paquete dismo, cálculo coeficiente de variación
Estimados erreros, Estoy intentando entender como calcula el paquete dismo ( https://cran.r-project.org/web/packages/dismo/index.html) un coeficiente de variación. Os pongo un ejemplo: tmin <- c(10,12,14,16,18,20,22,21,19,17,15,12) # temperatura mínima media mensual de un año tmax <- tmin + 5 # temperatura máxima media mensual de un año prec <- c(0,2,10,30,80,160,80,20,40,60,20,0)
2018 Jun 19
2
Paquete dismo, cálculo coeficiente de variación
Hola, en la misma definici?n de la funci?n: # P15. Precipitation Seasonality(Coefficient of Variation) # the "1 +" is to avoid strange CVs for areas where mean rainfaill is < 1) p[,15] <- apply(prec+1, 1, cv) Un saludo, Jorge On Martes, 19 de Junio de 2018 13:07:27 Marcelino de la Cruz Rot escribi?: > Hola Jaume: > > Si miras el c?digo de biovars() ver?s que la
2011 Nov 14
1
.jinit() : Cannot create Java virtual machine
Dear all, when using .jinit() I get the message .jinit() : Cannot create Java virtual machine (-1). The details: I am using the Dismo package.Dismo has a function 'maxent' that communi-cates with this program(MaxEnt).MaxEnt is available as a stand-alone Java program. It is normal when I execute the command : "jar <- paste(system.file(package="dismo"),
2005 May 25
2
rsync file sync by priority
Hello All - I'm looking for a switch(es) to ensure rsync indexes the pull of files from remotedir, LIFO (last in first out) and then by .ext type where file basenames are similar. example) file_a.xml ctime of 09:01:07 file_a.jar ctime of 09:01:02 get transfered before file_b.xml ctime of 09:01:45 file_b.jar ctime of 09:01:45 and the .xml of basename $file would always be transferred
2011 Jan 27
1
Can not invoke maxent() of library(dismo) in GNU linux
Dear R-helpers and Dr. Hijmans, I can not invoke maxent() in GNU Linux. Could you give me any directions on that? There is maxent.jar in version 3.3.3e in the right folder. ######################################## R: > jar <- paste(system.file(package="dismo"), "/java/maxent.jar", sep='') > jar [1] "/ebio/abt6/jmao/rpacks/dismo/java/maxent.jar"
2011 Nov 14
1
Error .jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, : java.lang.NoSuchMethodError: density.Params.readFromArgs([Ljava/lang/String; )Ljava/lang/String;
Dear all, I get the error when I use maxent.jar: Error .jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, : java.lang.NoSuchMethodError: density.Params.readFromArgs([Ljava/lang/String;)Ljava/lang/String; sessionInfo() result: R version 2.14.0 (2011-10-31)Platform: i386-pc-mingw32/i386 (32-bit)locale:[1]
2012 Apr 05
2
random sample from list
random selection of cells in raster based on distance from xy locations Hi, I am trying to sample a raster for random cells that occur within a specific distance of point locations. I have successfully found multiple ways of doing this but have memory issues with very large datasets. To overcome this problem I am working with lists. I am now stuck on how to randomlly sample the correct elements
2014 May 20
1
[patch] Add support for editor function in edit.default
Regarding the following extract of ?options: ?editor?: a non-empty string, or a function that is called with a file path as argument. edit.default currently calls the function with three arguments: name, file, and title. For example, running the following vimCmd <- 'vim -c "set ft=r"' vimEdit <- function(file_) system(paste(vimCmd, file_)) options(editor =
2012 Jun 13
0
High CPU usage
Hi Tanmay, >Does compiling speex API with DISABLE_FLOAT_API and DISABLE_VBR solve the >problem? I remember that this fixed the problem. But at that time I also needed VBR so this was not an option. As far as I know, it is related to some calculations that involve float denormals that cause the high CPU usage. Today I'm still using the following code before speex_encoder_init and
2012 Feb 29
2
R newbie: Installation of package reshape exit status not 0
Hello, sorry i'm an R newbie and wan't to install ggplot2 on my ubuntu system. during installation i got the error warning: Warnmeldung: In install.packages("reshape") : Installation des Pakets 'reshape' hatte Exit-Status ungleich 0 Please, give me a idea, how can i fix this error/warning -- Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
2012 Mar 26
0
Enhance Pairs Scatterplot Matrix
Hi, I am trying to do plot a scatterplot matrix using pairs() from the package graphics. There are now a few things I'd like to improve for a better understanding. 1) My scatterplot uses two log-scaled axis...as I don't know how to set them in pairs() I calculated the log before but now the labels are not as I want them. I'd like them as 10^1,10^2 etc. What is the best way to handle
2012 Apr 02
1
Unwanted page break in Rd2pdf
Hi, I want to create a pdf of my Man-pages from my package. Therefore I run in the terminal Rd2pdf on the package and a pdf of all the pages is created. After the titlepage there is the general package page, which includes "Description" and "Details" etc. Unfortunately after the Subtitle "Details" there is a pagebreak (and 3/4 white page) which I did not set
2012 Apr 10
0
Scatterplot matrix with partly transformed axis
Hi, I am wondering if anybody has experience with scatterplot matrices where some (but NOT all) axis are transformed and the labels are nicely plotted. So far I looked into 1) pairs() 2) scatterplotMatrix() from package 'car' 3) splom() from packagae 'lattice' 4) plotmatrix() from 'ggplot2' I can see no easy way to get what I want which is: *) a scatterplot matrix of