search for: catools

Displaying 20 results from an estimated 84 matches for "catools".

2008 Aug 25
3
name conflicts
Everyone, I've got code in my package that uses LogitBoost from the caTools package. caTools does not have a namespace. My package also uses loads RWeka, which has a namespace, and also has a function called LogitBoost. After loading both packages, how can I be specific about running the version from caTools (since caTools:::LogitBoost won't work)? Thanks, Max
2012 Mar 13
2
"gplots" packages does not work
...ip' length 226290 bytes (220 Kb) opened URL ================================================== downloaded 220 Kb * installing *source* package ‘gplots’ ... ** package ‘gplots’ successfully unpacked and MD5 sums checked ** R ** data ** inst ** preparing package for lazy loading Error : package ‘caTools’ was built before R 2.10.0: please re-install it ERROR: lazy loading failed for package ‘gplots’ * removing ‘/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14/gplots’ The downloaded packages are in ‘/tmp/Rtmp2ooBQr/downloaded_packages’ Warning message: In install.packages("gplots", depend...
2007 Oct 10
1
caTools package
Hi, I tried to install the caTools package manually from the main R Project website and I get the following error message when typing library('caTools') Error in library("caTools") : 'caTools' is not a valid package -- installed < 2.0.0? What am I doing wrong? Also, why is this package not availa...
2010 Jul 08
1
download gplots and caTools
Dear list, I am using R.2.11.1 version on a PC. I downloaded successfully gplots_2.8.0 but I could not find where to download caTools > library("gplots") Loading required package: caTools Error: package 'caTools' could not be loaded In addition: Warning message: In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : there is no package called 'caTools' any help is great...
2005 Jun 29
2
"all connections are in use" error during lazyload stage of packa ge installation
Hi, I suddenly started getting strange errors while working on my caTools package: >RCMD install C:/programs/R/rw2011/src/library/caTools ...... preparing package caTools for lazy loading Error in file(file, "r", encoding = encoding) : all connections are in use Execution halted make: *** [lazyload] Error 1 *** Installation of caToo...
2011 Sep 23
0
(Requested) caTools::runmean Patch
Dear Mr. Tuszynski, I would like to request what I believe would be a beneficial update / patch to the runmean() function in the caTools package. Consider the following R>> x = 1:100 R>> is.integer(x) [1] TRUE R>> library(caTools) R>> head(runmean(x, 5, alg="exact")) [1] 8.487983e-314 1.060998e-313 1.273197e-313 1.697597e-313 2.121996e-313 2.546395e-313 R>> head(runmean(x, 5, alg="C&quo...
2005 Jul 18
2
New functions supporting GIF file format in R
Hi, A minor announcement. I just added two functions for reading and writing GIF files to my caTools package. Input and output is in the form of standard R matrices or arrays, and standard R color-maps (palettes). The functions can read and write both regular GIF images, as well as, multi-frame animated GIFs. Most of the work is done in C level code (included), so functions do not use any external...
2015 Apr 21
2
shlib problems with Intel compiler
Hi, I'm encountering trouble compiling caTools_1.17.1.tar.gz and e1071_1.6-4.tar.gz on a Linux system using the Intel compiler suite. 14 other packages I generally use installed without any trouble. I notice both of these trouble packages have a C++ component, so I wonder if that might be the issue. Below, there's information on my platf...
2005 Oct 04
6
Animation of Mandelbrot Set
Hi, I was playing with Mandelbrot sets and come up with the following code, I thought I would share: library(fields) # for tim.colors library(caTools) # for write.gif m = 400 # grid size C = complex( real=rep(seq(-1.8,0.6, length.out=m), each=m ), imag=rep(seq(-1.2,1.2, length.out=m), m ) ) C = matrix(C,m,m) Z = 0 X = array(0, c(m,m,20)) for (k in 1:20) { Z = Z^2+C X[,,k] = exp(-abs(Z)) } image(X[,,k], col=tim.col...
2007 Feb 20
1
baseline fitters
I am pretty pleased with baselines I fit to chromatograms using the runquantile() function in caTools(v1.6) when its probs parameter is set to 0.2 and its k parameter to ~1/20th of n (e.g., k ~ 225 for n ~ 4500, where n is time series length). This ignores occasional low- side outliers, and, after baseline subtraction, I can re-adjust any negative values to zero. But runquantile's computa...
2015 Apr 22
1
shlib problems with Intel compiler
...e and load OK in R without using that. Best Regards, Andy > On Apr 22, 2015, at 9:30 AM, Martyn Plummer <plummerm at iarc.fr> wrote: > > On Tue, 2015-04-21 at 11:46 -0600, Andy Jacobson (NOAA Affiliate) wrote: >> Hi, >> >> I'm encountering trouble compiling caTools_1.17.1.tar.gz and >> e1071_1.6-4.tar.gz on a Linux system using the Intel compiler suite. >> 14 other packages I generally use installed without any trouble. I >> notice both of these trouble packages have a C++ component, so I >> wonder if that might be the issue. Below,...
2011 Jan 29
1
runsd {caTools} crashes R 64bit on winxp64bit with a very large vector
Hello I have a 3.5 million elements numeric vector x. I'm trying to calculate the rolling std dev of the previous 144 elements. rsd144<-runsd(x, 144, center=0, endrule="NA") this crashes R (ie on the console disappears and the Rgui.exe process is not there anymore) with smaller vectors, the crash does not occur. regards, [[alternative HTML version deleted]]
2012 Sep 08
0
Help on calculating AUC with caTools trapz(a,b) command
Dear All,   I have the following example:   a <-matrix(c(1:100),ncol=10) b <-matrix(c(2,4,6,8,10,12,14,16,18,20))   trapz(b,a)   will give me a result of 99, which it seems to me is the AUC of the 1st column only. Is it possible to get the AUC results by columns of "a" using the same "b" values in the calculations as opposed to just generating the result for the 1st
2015 Apr 22
0
shlib problems with Intel compiler
On Tue, 2015-04-21 at 11:46 -0600, Andy Jacobson (NOAA Affiliate) wrote: > Hi, > > I'm encountering trouble compiling caTools_1.17.1.tar.gz and > e1071_1.6-4.tar.gz on a Linux system using the Intel compiler suite. > 14 other packages I generally use installed without any trouble. I > notice both of these trouble packages have a C++ component, so I > wonder if that might be the issue. Below, there's info...
2012 Mar 03
1
Sliding Window in R (solved)
Dear all, you can find below my solution for sliding a window. Please find below the code for the two alternatives and the benchmarks.     install.packages('caTools') require(caTools) do_sliding_for_a_window_duty_cycle <- function(DataToAnalyse,  windowSize) {   data<-DataToAnalyse   out <- numeric()   elements<- numeric()   if (length(data[,1]) >= windowSize){       for (i in 1:(length(data[,1]) - windowSize +1  )) {         out[i] <-...
2010 Sep 24
2
why I could not reproduce the Mandelbrot plot demonstrated on R wiki
I am trying to reproduce the nice looking of Mandelbrot demonstrated by R wiki page by the following code: library(caTools) # external package providing write.gif function jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan", "#7FFF7F", "yellow", "#FF7F00", "red", "#7F0000"))...
2011 Jan 25
3
Integration of two lines
...dx |.) Computing this integral looks non trivial. I guess I should interpolate the points of f_y over x and integrate both lines on these intervals. Even then I would miss points where the lines cross. There are functions to integrate below *one* line (I'm thinking about the trapz function in caTools). Do you know if there is a function to do this integration properly with two lines (and especially their absolute difference)? Regards, Xavier
2009 Oct 11
3
passing field name parameter to function
...d name Y = df$Target, everything works fine. but if I use the passed in parameter name, it doesn't give me what I want, Y = df$mytarget Here is the function, # trying to pass field name to a function logistictest <- function(df,mytarget) { #library for AUC calculation library(caTools) #build logistic model mytarget <- deparse(substitute(mytarget)) myformula <- paste(mytarget," ~ .") myformula <- deparse(substitute(myformula)) logistic_reg <- glm(myformula , data=df, family=binomial(link="logit")) print("model build OK") #score...
2005 Oct 06
3
playing with R: make a animated GIF file...
...me, i thanks! Cleber N. Borges ( klebyn ) my objective: (steps TODO) ------------------- 1) to save PNG files; -----> i don't know the best way to make this; 2) transform the PNG files into GIF files (easy! no problem! ... i think ...) 3) reload the GiF files in R and use the caTools package to make a animated GIF. ------------------ ############################ the code ######## reverse the STRING strReverse <- function(x) sapply(lapply(strsplit(x, NULL), rev), paste, collapse="") ######## logotype to animate yourLogo = "Is Nice to play with R-...
2012 Nov 22
2
ROCR package not installing
...r 'XLS' (Excel 97-2004) files ENABLED. gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED. Attaching package: 'gdata' The following object(s) are masked from package:utils : object.size Loading required package: caTools Loading required package: bitops Loading required package: grid Loading required package: KernSmooth KernSmooth 2.23 loaded Copyright M. P. Wand 1997-2009 Attaching package: 'gplots' The following object(s) are masked from package:stats : lowe...