Displaying 20 results from an estimated 6000 matches similar to: "Error: cannot allocate vector of size 31.8 Mb"
2010 Jul 01
4
Index of Character
Hi,
I am a newbie to R and this may be too simple to ask.
I am trying to find out a string function in R that returns the index of a
character.
For e.g. indexOf("Test1234", '4') would return 8.
Is there a similar function in R.
I tried searching the documentation and could find other useful string
functions, but not the index function.
Thanks in advance.
Regards,
Harsh
2010 Jul 20
1
Error using sqldf
Hi,
I am running a query using sqldf() [package : sqldf]. The query is:-
userid <- 5
taskid <- 5
tab1 <- fn$sqldf("SELECT tobiiEvents.data1, tobiiEvents.data2,
events.`timestamp` as tobiiTime
FROM tobiiEvents
INNER JOIN events ON events.eventid = tobiiEvents.eventid
WHERE tobiiEvents.subtype = 'MOUSE' AND tobiiEvents.userid = 5 AND
tobiiEvents.taskid = 5
ORDER BY
2010 Aug 29
2
how to install oracle on centos 5.3
I try to set the kernel parameters but fails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100829/5cdf6233/attachment-0002.html>
2010 Jul 09
1
Data Frame Manipulation using function
Hi all,
I have a data frame for which I want to limit the output by checking whether
row values for specific column meets particular conditions.
Here are the more specific details:
I have a function that checks whether an input string exists in a defined
list:-
checkBaseLine <- function(s){
for (listItem in WHITELIST){
if(regexpr(as.character(listItem), s)[1] > -1){
return(TRUE)
}
}
2010 Aug 12
2
Append to csv without header
Hi,
I am writing a function that writes to a csv file for every call.
However, for the subsequent calls, I want to append the data to the existing
csv file without appending the column names again.
I tried searching in the previous posts, but I am stuck with different
errors.
Here is what I am doing (dataF is a data-frame):-
outputFilePath <- paste(getwd(), "/",
2010 Jul 25
1
Left Outer Join 2 DF's on Multiple Conditions
Hi,
I am trying to execute the following SQL statement using two data frames:
tab1, tab2 : Two Tables
Select tab1.*, tab2.*, tab1.tobiiTime - tab2.ruiTime as timeDiff,
IFNULL(n-m, -9999999) as alwaysIncrement
FROM tab1
LEFT OUTER JOIN tab2 On tab1.data1 - tab2.mouseX = 0 And tab1.data2 -
tab2.mouseY = 0
I am trying to do the following in R:-
*#Getting error here:*
data
2010 Jul 22
1
Updating a Data Frame
Hi,
I have a global data-frame in my R script.
At some point in my script, I want to update certain columns of this
data-frame by calling in an update function.
The function looks like this:
# get events data. This populates a global event data frame in the R-script
events <- getEvents(con, eventsFilePath)
# events has columns eventid, timeStamp, isSynchronized, timeDiff; with
millions of
2010 Jul 12
1
Comparison of two very large strings
Hi,
I have a function in R that compares two very large strings for about 1
million records.
The strings are very large URLs like:-
http://query.nytimes.com/gst/sitesearch_selector.html?query=US+Visa+Laws&type=nyt&x=25&y=8.
..
or of larger lengths.
The data-frame looks like:-
id url
1
2010 Jul 28
1
Reading timestamp column from MySQL
Hi,
I am reading a SQL (MySQL) table in R data frame.
When I read in the table that has a timestamp data-type field, R gives it
the following format:-
1.236887e+12
So when I want to manipulate a column with timestamp = 1236887146615
It returns me multiple rows, as many timestamps gets converted to same
value: 1.236887e+12
Any ideas of how this could be dealt with, so that I can get the
2010 Aug 11
1
Bigmemory: Error Running Example
Hi,
I am trying to run the bigmemory example provided on the
http://www.bigmemory.org/
The example runs on the "airline data" and generates summary of the csv
files:-
library(bigmemory)
library(biganalytics)
x <- read.big.matrix("2005.csv", type="integer", header=TRUE,
backingfile="airline.bin",
descriptorfile="airline.desc",
2010 Dec 21
2
Warning message when items of Hmisc are masked by loading a package.
I've noticed that I get a warning message every time a package masks
some functions from Hmisc. The warning message says :
Warning message:
In identical(get(., i), get(., lib.pos)) : ignoring non-pairlist attributes
This happens with eg:
library(plyr)
library(xtable)
I think I've seen this passing by before, but I'm not sure any more.
Just thought I'd mention it.
Cheers
Joris
2009 Oct 12
2
Error: cannot allocate vector of size 1.2 Gb
Dear List,
today I turn to you with a next problem. I'm trying to compare species
richness between various datasets (locations) using species accumulation
curves (Chapter 4, page 54 in Tree diversity
analysis<http://www.worldagroforestry.org/treesandmarkets/tree_diversity_analysis.asp>by
Kindt & Coe). To accomplish this I'm using package
BiodiversityR. My data is comprised of
2010 Jun 18
3
Non-procedural access to columns of a matrix
Hi,
I would like to have an index for a column in a matrix encoded in a
cell of the same matrix.
For example:
x = matrix(c(11,12,13,1,
21,22,23,3,
31,32,33,2),byrow=T,ncol=4)
In this case, column 4 is the index. I then access the column
specified in the index by:
> for (i in 1:3) print(x[i,x[i,4]])
[1] 11
[1] 23
[1] 32
>
> for (i in 1:3) {x[i,x[i,4]] <- x[i,x[i,4]] + 5}
> x
2017 Mar 28
2
`[` not recognized as a primitive in certain cases.
?typeof? is your friend here:
> typeof(`[`)
[1] "special"
> typeof(mc[[1]])
[1] "symbol"
> typeof(mc2[[1]])
[1] "special"
so mc[[1]] is a symbol, and thus not a primitive.
- Lukas
> On 28 Mar 2017, at 14:46, Michael Lawrence <lawrence.michael at gene.com> wrote:
>
> There is a difference between the symbol and the function (primitive
>
2016 Sep 06
2
The use of match.fun
Dear gurus,
I was utterly surprised to learn that one of my examples illustrating the
need of match.fun() doesn't give me the expected result.
center <- function(x,FUN) FUN(x)
center(1:10, mean)
mean <- 4
center(1:10, mean)
Used to give me the error message "could not find function FUN". Now it
just works, even though I didn't expect it to. I believe this is at least
2010 Jun 24
2
count data with a specific range
I would like to prepare the data for barplot. But I only have the data frame
now.
x1=rnorm(10,mean=2)
x2=rnorm(20,mean=-1)
x3=rnorm(15,mean=3)
data=data.frame(x1,x2,x3)
If there a way to put data within a specific range? The expected result is
as follows:
range x1 x2 x3
-10-0 2 5 1 (# points in
this
2010 Jun 08
2
Please help me
Dear Mr. or Ms.,
I used the R-software to run the zero-inflatoin negative binomial model (zeroinfl()) .
Firstly, I introduced one dummy variable to the model as an independent variable, and I got the estimators of parameters. But the results are not satisfied to me. So I introduced three dummy variables to the model. but I could not get the results. And the error message is
2018 Jan 31
3
Best practices in developing package: From a single file
On 31/01/2018 6:33 AM, Joris Meys wrote:
> 3. given your criticism, I'd like your opinion on where I can improve
> the documentation of https://github.com/CenterForStatistics-UGent/pim.
> I'm currently busy updating the help files for a next release on CRAN,
> so your input is more than welcome.
After this invitation I sent some private comments to Joris. I would
say his
2017 May 31
4
stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
Seriously, if a method gives a wrong result, it's wrong. line() does NOT
implement the algorithm of Tukey, even not after the patch. We're not
discussing Excel here, are we?
The method of Tukey is rather clear, and it is NOT using the default
quantile definition from the quantile function. Actually, it doesn't even
use quantiles to define the groups. It just says that the groups
2011 Feb 04
2
terribly annoying bug with POSIXlt : one o'clock is midnight?
Apparently, as.POSIXlt takes one o'clock as the start of the day :
> as.POSIXlt(0,origin="1970-01-01")
[1] "1970-01-01 01:00:00 CET"
> as.POSIXlt(0,origin="1970-01-01 00:00:00")
[1] "1970-01-01 01:00:00 CET"
> as.POSIXlt(0,origin="1970-01-01 23:59:59")
[1] "1970-01-02 00:59:59 CET"
Cheers
--
Joris Meys
Statistical