Displaying 20 results from an estimated 5000 matches similar to: "Error: cannot allocate vector of size..."
2011 Dec 22
3
delete all columns with all values equal to zero
Hello all:
I'm sure this is quite simple, but I tried several options and I still can't
get I right.
I've got a data.frame and I want to delete all columns of which the sum is
zero.
Any ideas? Thanks,
Frederico Mestre
[[alternative HTML version deleted]]
2007 Jun 15
2
converting character strings to numbers
I have a comma delimited text file in which many columns of numbers are
also quoted and have commas as well as decimals. I was surprised to find
read.csv() didn't import this seamlessly, even after messing around with
the colClasses argument. I did find a solution to convert the character
strings after reading them in, but wonder if there isn't a better one I
overlooked.
test =
2015 Sep 29
1
Error possibly related with environments/namespace
Hello all,
I've got a problem with a function in a R package I've developed
(MetaLandSim).
One of the outputs of my function is the plotting of four images (combining
a graph and a map). This plotting is made in a graphical device, with the
graph in one side and the map in the other.
My function works perfectly fine until it has to plot the map. Then it
stops and I get an error.
2012 Mar 31
2
unable to move temporary installation
Hi all,
I'm having a strange error that prevents me from installing new packages,
or updating packages after reinstalling. The error message is
Warning: unable to move temporary installation ‘C:\Program
Files\R\R-2.14.2\library\file15045004ac2\sandwich’ to ‘C:\Program
Files\R\R-2.14.2\library\sandwich’
for one of the packages that is failing to install/update. This error
started happening
2012 Apr 02
7
Calculating NOEL using R and logistic regression - Toxicology
Hello, I used the glm function in R to fit a dose-response relationship and
then have been using dose.p to calculate the LC50, however I would like to
calculate the NOEL (no observed effect level), ie the lowest dose above
which responses start occurring. Does anyone know how to do this?
[[alternative HTML version deleted]]
2012 Sep 03
2
adding points to a point pattern
Hello all:
Is there any way to add points to a point pattern, while keeping a given
minimum distance amongst this new points and the pre-existing points?
Thanks,
Frederico
[[alternative HTML version deleted]]
2012 Jul 30
1
cluster of points
Hello:
What I want to do is quite simple, but I can't find a way.
I have a data frame with several points (x and y coords). I want to add
another column with cluster membership. For example aggregate all the points
that stand within a distance of 40 from each other.
I've tried using "nncluster" from the package nnclust, but the results are
not correct, for some
2012 Apr 10
1
Package boot, funtion cv.glm
Hey all,
I need some help with a cross validation. I'm new with R and as well with
statistics. I had a group work to create a tool for remote sensing class
that extracts the best bands of hyperspectral satellite images that describe
vegetation. Its a regression between a linear function of using a normalized
differenced index (i-j)/(i+j) while i and j are the bands (in the data these
are the
2012 Jun 25
1
using multiple cpu's - scaling in processing power
Hi All
In the past I have worked with parallel processing in R where a function F
is applied to the elements of a list L. The more cpu cores one has, the
faster the process will run. At the time of launching the process for (F,L)
I will have a certain fixed number of cpu's that I can use. I have tested
this approach and it works fine (i.e. package 'multicore' , using 'mapply'
2012 Apr 05
1
reclaiming lost memory in R
Dear list,
I am trying to reclaim what I think is lost memory in R, I have been using gc(), rm() and also using Rprof to figure out where all the memory is going but I might be missing something.
I have the following situation
basic loop which calls memoryHogFunction:
for i in (1:N) {
dataset <- generateDataset(i)
fit <- try( memoryHogFunction(dataset, otherParameters))
}
and
2012 Apr 03
5
R equivalent for SQL query
Hi,
I have a query which I would like to translate into R, but I do not know how to do it in an easy way.
Assume a data frame has columns A, B and C:
A B C
1 1 3
1 1 4
1 1 5
1 2 6
1 2 7
1 3 8
The query is as follows:
select A, B, count(*)
from data.frame
group by A, B
order by count(*) desc
How do I translate this into R statements in such way that the result is a data frame structured as
2012 Jun 26
1
Compile C files
Hello:
Sorry, this might look like a beginner question, but I'm just starting to
work on the C and R interface.
I'm trying to compile a C file (with a function) to load it to an R function
but, in the command line I keep getting a lot of errors, like:
"C:/Program~1/R/R-215~1.0/include/Rinternals.h:1066:1: error: expected
declaration specifiers before 'SEXP'"
2012 Apr 10
5
Creating a loop with an indefinite end term
Everyone,
I'm very new to R, especially when it comes to loops and functions, so
please bear with me if this is an elementary question. I cannot seem to
figure out how to construct a loop which runs a function until a certain
value is computed. For example, say I have the following:
num = numeric (10)
num [1] = 0
for (i in 2:10) {
num [i] = num [i-1] + 5
}
This adds 5 to the
2017 Oct 21
2
Help_urgent_how to calculate mean and sd in biomod 2
Hello
I am new in R. I am trying to implement Biomod 2 package.
However, I have a doubt. I want to calculate the mean and sd of
"Testing.data"
(ROC and TSS)
> # let's print the ROC scores of all selected models
> myBiomodModelEval_55["ROC","Testing.data",,,]
RUN1 RUN2 RUN3 RUN4 RUN5 RUN6 RUN7 RUN8 RUN9 RUN10
0.938 0.938 0.926 0.931 0.939
2010 Nov 21
3
R help
Dear All,
I'm a beginner user in R and I would like to make a quadratic and
plateau model in R. Can you help please with an example?
Thanks so much
--
Ahmed M. Attia
Assistant Lecturer
El-Khattara farm Station
Agronomy Dept.,
Zgazig Univ., Egypt
Visiting Scientist
Haskell Agricultural laboratory
Agronomy and Horticultural Dept.,
Univ. of Nebraska-Lincoln
ahmedatia at zu.edu.eg
2009 Mar 17
1
initial value in 'vmmin' is not finite
Dear r helpers,
I'm trying to run the models of the BIOMOD package and got this message:
*
Error in nnet.default (x, y, w,...): **initial value in 'vmmin' is not finite*
What does this mean? and how can I correct it?
Thank you
*Andreia*
[[alternative HTML version deleted]]
2012 Jul 30
1
Package index help file question.
Dear R developers,
I come to you because nobody was able to answer the following request yet.
I'm developing a release of BIOMOD package called biomod2
( https://r-forge.r-project.org/R/?group_id=302).
I'm writing my package helps files and I'm not really satisfied by the
visual results.
I would like to make subsections in the package "function help index" file.
I would
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",
2009 Dec 14
1
Logit Estimation with Panel Data
Hi all!
Do you know if there is any R function/package that can be used to
estimate "logit" models with panel data and forecasting?
Thanks,
Moysés.
--
Moysés Nascimento
Bacharel em Estatística/UFES
Mestre em Estatística Aplicada e Biometria/UFV
Doutorando em Estatística e Experimentação Agropecuária/UFLA
moysesnascim@gmail.com
[[alternative HTML version deleted]]
2006 Jan 07
2
Where is the stud.ci() function used in boot.ci()?
Hello!
I am trying to duplicate the studentized bootstrap confidence interval
calculations in boot.ci() without using boot.ci(). My w/o boot.ci()
calculations are close to boot.ci() using the same object from
implementation of boot(), but not quite the same (I think the differences
are due to how quantiles are computed for z*). Through examining the
boot.ci() code, I can see there is a call