Displaying 20 results from an estimated 800 matches similar to: "download gplots and caTools"
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 available in the list of packages for direct
installation from the R
2012 Mar 13
2
"gplots" packages does not work
I had installed de "gplots" package and then I loaded the library but the
package did not work. I recieved a message like this:
> install.packages("gplots", dependencies = TRUE)
Installing package(s) into
β/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14β
(as βlibβ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
2012 Jul 16
4
Error in as.xts
Hi
I got the following error using as.xts
Error in xts(x, order.by = order.by, frequency = frequency, ...) :
NROW(x) must match length(order.by)
Here is how the data looks like
> d1 <- read.csv(file.path(dataDir,"AppendixA-FishCountsTable-2009.csv"),
as.is=T)
> d1[1:3,]
dive_id date time species count size site depth level
TRANSECT VIS_M
1 62 10/12/2009
2012 Aug 01
1
add text to a plot, create character labels
Hi,
I was trying to run the following, where the labels on the x axis are dates
and need to be converted to characters. It did not work. Any help would be
appreciated. Thanks.
>
text(axTicks(1),par("usr)[3]-2,srt=45,adj=1,labels=as.character(c("2008-01-08","2008-08-10","2008-08-22","2008-09-03",
"2008-09-15")), xpd=T, cex=0.8)
Error:
2012 Aug 03
5
replacement has length zero. In addition: Warning message: In max(i) : no non-missing arguments to max; returning -Inf
Hi,
Here is my data, the first 10 rows
> u=regCond_all[1:10,]
> dput(u)
structure(c(999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 1.9, 2, 1.97, 1.99, 1.83, 1.78, 1.6, 1.52, 1.52,
1.36, 10.53, 9.88, 9.88, 10.53, 10.53, 10.53, 5.26, 9.88, 10.53,
10.53, 5.4, 5.57, 5.46, 5.34, 5.5, 5.59, 5.62, 5.76, 6.23, 6.19,
2012 Jul 20
2
convert date to a factor
Hello,
I would like to convert date as a factor to represent time in a repeated
measure situation in the following code. How would I do that?
> d <- read.csv(file.path(dataDir,"data.csv"), as.is=T,stringsAsFactors =
FALSE)
> d[1:2,]
id date a b c y
1 1 8/6/2008 Red 15 B 22
2 1 8/6/2008 Green 15 B
2010 Jul 20
1
library ts
Hi,
I could not locate library ts in the CRAN website. Please help.
Yolande
[[alternative HTML version deleted]]
2012 Jul 31
3
time series line plot: Error in plot.window(...) : invalid 'xlim' value
Hello,
This should be pretty simple but I cannot get it right. Please point to the
right code. Thanks.
> last <- read.csv(file.path(dataDir,"plot1.csv"), as.is=T,stringsAsFactors
= FALSE)
> last
date r_wvht
1 8/6/2008 0.9766667
2 8/8/2008 0.7733333
3 8/11/2008 1.4833333
4 8/13/2008 1.5766667
5 8/14/2008 1.3900000
6 8/18/2008 0.7800000
7 8/20/2008
2012 Jul 17
3
NA instead of time stamp
I was wondering why I get <NA> instead of the timestamp in the following.
Thanks.
> dataDir <- file.path(wd)
> localRaw <- read.csv(file.path(dataDir,"LOCAL.csv"), as.is=T,stringsAsFactors
= FALSE)
> localRaw[1:2,]
Year Month Day hour minute second Temp1mab Temp7mab Temp14mab Salinity1mab
1 2009 10 5 0 0 0 11.288 13.675 13.743 33.513
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
2012 Jul 19
1
expert opinion on lmer
Hello,
I have the following design, counts were collected at different transects,
different depths and different sites at different times. Time is continuous
and assumed to be random, all the others are categorical fixed where
transect is nested within depth which is nested within site.
I would like an expert opinion about the following code where intercept is
modeled as random (I am not sure
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 Jul 18
2
loop searching the id corresponding to the given index (timestamp)
Hello,
I have the following loop for two data sets: diveData_2008 and
diveData_2009. It uses two other data: diveCond_all and fishTable. The
problem is at the point to identify the dive_id for the given index (index
is timestamp). It keeps on saying
for the1st loop
Error in fishReport$dive_id[i] <- dive_id : replacement has length zero
for the 2nd loop
Error in fishReport$dive_id[i + j] <-
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 caTools failed ***
I searched
2012 Jul 29
1
readRDS, In as.double.xts(fishReport$count) : NAs introduced by coercion
Hello,
I looked in the R-help but could not find an archive addressing the
following. I would like to convert a character to numeric after reading a
file with RDS extension. After using as.numeric, I checked if it is
numeric. It was not converted. Please help.
Here is my code
>Report <- readRDS(file="RDS/Report.RDS")
> Report[1:2,]
dive_id date
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
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 platform, compiler, and some diagnostic output showing
2011 Feb 09
3
Problem with xlsx package
I am trying to read an xlsx spreadsheet (1506 rows, 501columns) all
populated but getting the following error:
Please advise as to how to get around this issue.
> res <- read.xlsx("c:\\BSE_v2.xlsx",1)
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.OutOfMemoryError: Java heap space
Here is the session info:
2015 Apr 22
1
shlib problems with Intel compiler
Hi Martyn,
Thanks for your insight, that seems pretty direct. Unfortunately, I did not compile this version of R (it's on a large supercomputer system and this version of R was installed by the admins). Using "R CMD config", I see the following relevant settings:
DYLIB_LD = icc -std=gnu99
DYLIB_LDFLAGS = -shared -openmp
LDFLAGS = -L/opt/compilers/intel/cce/9.1.039/lib
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