Displaying 20 results from an estimated 2000 matches similar to: "failing to load package in R 2.7.1 patched"
2008 Aug 04
0
SOLVED - memory problem - failing to load rgl in R 2.7.1 patched
Hi,
Sorry for that ..... Today R did load both ca and rgl packages with no problems ... the single thing i've done since Friday was to put "defrag" on drive C, i even didn't re-start the computer ...actually it was re-started several time with same weird problem ... so i suppose something was segmented badly on the hard drive.
Monica
> From: pisicandru at hotmail.com
>
2008 Aug 04
0
memory problem - failing to load rgl in R 2.7.1 patched
> Hi,
>
> yesterday i had the surprise not to be able to load the package "ca" on R 2.7.0 saying that cannot find required package rgl although it was there. So today i've upgraded to 7.2.1. patched and i got the following error:
>
>> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
> + if(nchar(pkg)) library(pkg, character.only=TRUE)})
>
2008 Nov 14
0
Cross-validation
Hi,
I was trying to do cross-validation using the crossval function (bootstrap package), with the following code:
---------------------------------------------------------------------------------------------------------
theta.fit <- function(x,y){
model <- svm(x,y,kernel = "linear")
}
theta.predict <- function(fit,x){
prediction <- predict(fit,x)
2009 Jun 25
0
[e1071] Inconsistent results when using matrix.csr for svm() - possibly scaling problem
Dear all,
I'm training an SVM with default settings on a matrix csr (SparseM
package). I realized that if I train
the SVM with the (hopefully) equivalent matrix (Matrix package)
representation, the returned models and predictions
sometimes differ. I expected both representations of the same data
to lead to the same results though.
It could be that it is a scaling problem, because unscaled
2008 Sep 26
1
issue with varSel.svm.rfe in package MCRestimate
Hello all,
I would like to perform SVM-RFE (Guyon et al. 2002) in R and have only found
one implementation of this algorithm. The function belongs
to the MCRestimate package but when I try to use it I encounter a problem
- the function appears to be missing a required package or other function
that I simply cannot find available anywhere.
Here is my session info followed by a simple example
2008 Mar 07
1
confused about CORREP cor.LRtest
After some struggling with the data format, non-standard in
BioConductor, I have gotten cor.balance in package CORREP to work. My
desire was to obtain maximum-likelihood p-values from the same data
object using cor.LRtest, but it appears that this function wants
something different, which I can't figure out from the documentation.
Briefly, my dataset consists of 36 samples from 12
2009 Oct 02
1
ggplot2: proper use of facet_grid inside a function
Hello Again R Folk:
I have found items about this in the archives, but I?m still not getting
it right. I want to use ggplot2 with facet_grid inside a function with
user specified variables, for instance:
p <- ggplot(data, aes_string(x = fac1, y = res)) + facet_grid(. ~
fac2)
Where data, fac1, fac2 and res are arguments to the function. I have
tried
p <- ggplot(data,
2007 Dec 17
0
odd error messages coming from val.prob() {Design}
Hi,
after upgrading my R install from 2.5 -> 2.6.1 and performing multiple
iterations of update.packages(), I am getting an odd error when trying to
plot a calibration curve from the val.prob() function in package Design.
when running this function (which used to work) I get the following error
message:
Error in .C("lowess", x = as.double(xy$x[o]), as.double(xy$y[o]), n,
2008 May 13
0
Un-reproductibility of SVM classification with 'e1071' libSVM package
Hello,
When calling several times the svm() function, I get different results.
Do I miss something, or is there some random generation in the C library?
In this second hypothesis, is it possible to fix an eventual seed?
Thank you
Pierre
### Example
library('e1071')
x = rnorm(100) # train set
y = rnorm(100)
c = runif(100)>0.5
x2 = rnorm(100)# test set
y2 = rnorm(100)
# learning a
2009 Oct 06
1
ggplot2: mapping categorical variable to color aesthetic with faceting
Hello Again... I?m making a faceted plot of a response on two categorical
variables using ggplot2 and having troubles with the coloring. Here is a
sample that produces the desired plot:
compareCats <- function(data, res, fac1, fac2, colors) {
require(ggplot2)
p <- ggplot(data, aes(fac1, res)) + facet_grid(. ~ fac2)
jit <- position_jitter(width = 0.1)
p <- p +
2007 Nov 29
1
error in utils:::menuInstallPkgs() for R 2.6.1
Hi,
I have upgraded on Windows from R 2.5.1 to R2.6.1 and when i've tried to install packages with utils:::menuInstallPkgs() i've got the following error (which i never got before)
Warning: unable to access index for repository http://cran.hostingzero.com/bin/windows/contrib/2.6
Do you have any idea why?
Sys.info() sysname release
2009 May 26
3
split strings
Hi everybody,
I have a vector of characters and i would like to extract certain parts. My vector is named metr_list:
[1] "F:/Naval_Live_Oaks/2005/data//BE.tif"
[2] "F:/Naval_Live_Oaks/2005/data//CH.tif"
[3] "F:/Naval_Live_Oaks/2005/data//CRR.tif"
[4] "F:/Naval_Live_Oaks/2005/data//HOME.tif"
And i would like to extract BE, CH, CRR, and HOME in a
2009 May 26
3
split strings
Hi everybody,
I have a vector of characters and i would like to extract certain parts. My vector is named metr_list:
[1] "F:/Naval_Live_Oaks/2005/data//BE.tif"
[2] "F:/Naval_Live_Oaks/2005/data//CH.tif"
[3] "F:/Naval_Live_Oaks/2005/data//CRR.tif"
[4] "F:/Naval_Live_Oaks/2005/data//HOME.tif"
And i would like to extract BE, CH, CRR, and HOME in a
2007 Dec 13
6
spliting strings ...
Hi everyone,
I have a vector of strings, each string made up by different number of words. I want to get a new vector which has only the first word of each string in the first vector. I came up with this:
str <- c('aaa bbb', 'cc', 'd eee aa', 'mmm o n')
str1 <- rep(1, length(str))
for (i in 1:length(str)) {
str1[i] <- strsplit(str, "
2008 Jun 25
0
tiff()-bug (was re:Preparing high quality figures
Hi,
I don't know if this matters but it worked for me with no problems ?.
> sessionInfo()
R version 2.7.0 (2008-04-22)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets
2007 Sep 06
2
larger decimal numbers get rounded ....
Hi,
I am sure there is a reason but ...... why larger decimal numbers get rounded to the nearest integer?
Example:
a <- 3308000.5
a
[1] 3308001
I would like my numbers to be decimals .... since they do represent coordinates and i don't want them rounded .... how can i keep them as they are?
Thanks,
Monica
_________________________________________________________________
2008 Apr 18
2
Correspondence and detrended correspondence analysis
Hi,
I hope someone knows the answer to this or has a real good reference about it (I am using Legendre & Legendre, Numerical Ecology, 1998).... My data is a data.frame with locations as rows and vegetation assemblages / species as columns. I've done a PCA, a correspondance analysis (CA) using ca in ca package and a detrended correspondance analysis (DCA) using decorana from vegan package.
2007 Aug 02
6
- round() strange behaviour
Hi,
I am getting some strange results using round - it seems that it depends if the number before the decimal point is odd or even ....
For example:
> round(1.5)[1] 2> round(2.5)[1] 2
While i would expect that round(2.5) be 3 and not 2.
Do you have any explanation for that?
I really appreciate your input,
Monica
2011 Nov 22
5
x, y for point of intersection
Hi everyone,
?
I am trying to get a point of intersection between a
polyline and a straight line ?.. and get the x and y coordinates of this point.
For exemplification consider this:
?
?
set.seed(123)
?
k1 <-rnorm(100, mean=1.77, sd=3.33)
?k1 <- sort(k1)
q1 <- rnorm(100, mean=2.37, sd=0.74)
q1 <- sort(q1, decreasing = TRUE)
plot(k1, q1, xlim <- c((min(k1)-5),
2008 May 23
0
Pros and Cons of R :GUI
R has very good GUI packages that I have used -
R Commander RCmdr and Rattle rattle . Since I work on multiple packages with
constraints of time, I almost always use the GUI rather go through the
intricacies of command line .
The log of these GUIs shows the relevant R command that was used, so you can
actually learn the language also.
I have written about the ease of learning R , if you begin