Displaying 20 results from an estimated 10000 matches similar to: "split() bug? Inconsistent Windows/Linux behavior."
2007 Dec 08
2
NAMESPACE choices for exporting S4 methods
We are building a package, and want to create S4 methods for both head and
mean for our own BigMatrix class. Following the recommendation in "Writing
R Extensions" we use exportMethods instead of export in NAMESPACE (this is
described as being "clearer"). This works for head, but not for mean.
Obviously we importFrom(utils, head), but don't need to do this for mean,
2008 Jun 25
1
huge data?
Hi Jay Emerson,
Our Intention is to primarily optimize "R" to utilize the Parallel
Processing Capabilities of CELL BE Processor.(has any work been done in this
area?)
We have huge pages(of size 1MB 16MB ) available in the system and as you
pointed out our data is also in the GB ranges.So the idea is if Vectors of
this huge size are allocated from Huge Pages the performance will
2011 Oct 17
2
Foreach (doMC)
Hello,
I am trying to run a small example with foreach, but I am having some
problems. Here is the code:
*library(doMC)
registerDoMC()
zappa = list()
frank = list()
foreach (i = 1:4) %dopar% {
zappa[[i]] = kmeans (iris[-5],4)
frank[[i]] = warnings()
}*
The code runs without error. However the zappa and frank will be empty
lists.
If I use regular *for *instead, the list will be filled up
2012 May 11
1
bigmemory
To answer your first question about read.big.matrix(), we don't know what
your acc3.dat file is, but it doesn't appear to have been detected as a
standard file (like a CSV file) or -- perhaps -- doesn't even exist (or
doesn't exist in your current directory)?
Next:
> In addition, I am planning to do a multiple imputation with MICE package
> using the data read by bigmemory
2008 Jan 30
1
Understanding an R improvement that already occurred.
I was surprised to observe the following difference between 2.4.1 and
2.6.0 after a long overdue upgrade a few months ago of our
departmental server. It wasn't a bug fix, but a subtle improvement.
Here's the simplest example I could create. The size is excessive, on
the order of the Netflix Competition data.
The integer matrix is about 1.12 GB, and if coerced to numeric it is
2.24 GB.
2006 Jun 22
1
Package struction question (second try)
Sorry, gmail seemed to have made an attachment out of my first attempted
post. Trying again:
------------------------------
At the encouragement of many at UseR, I'm trying to build my first real
package. I have no C/Fortran code, just plain old R code, so it should be
rocket science. On a Linux box, I used package.skeleton() to create a
basic package containing just one "hello
2006 Nov 30
2
AIC for heckit
Hi,
I have used the heckit function in micEcon. Now I
would like to evaluate the fit of the probit part of
the model but when I enter
AIC(sk$probit)
I get this error
Error in logLik(object) : no applicable method for
"logLik"
How can I then get the AIC for this model?
Side question: If you know - from the top of your
head - some link to readings dealing with evaluating
the
2009 Jul 20
2
kmeans.big.matrix
Hi,
I'm playing around with the 'bigmemory' package, and I have finally
managed to create some really big matrices. However, only now I
realize that there may not be functions made for what I want to do
with the matrices...
I would like to perform a cluster analysis based on a big.matrix.
Googling around I have found indications that a certain
kmeans.big.matrix() function should
2005 Nov 07
1
mosaicplot() update
Hi --
I've found a need for an additional option to mosaicplot(), to suppress
the labels. It's not difficult, obviously, a minor thing.
Would you like me to submit my revised code (I'll use your code rather
than my original source code which was adapted for S-Plus and R)? Or
it might be a 5-minute change for the appropriate person. No problem
either way, just let me know.
Cheers,
2009 Jun 02
2
bigmemory - extracting submatrix from big.matrix object
I am using the library(bigmemory) to handle large datasets, say 1 GB,
and facing following problems. Any hints from anybody can be helpful.
_Problem-1:
_
I am using "read.big.matrix" function to create a filebacked big matrix
of my data and get the following warning:
> x =
read.big.matrix("/home/utkarsh.s/data.csv",header=T,type="double",shared=T,backingfile
2010 Mar 22
3
Mosaic Plots
Hello Everyone
I want to plot Moasic Plots, I have tried them using iplots package (using
imosaic). The problem is the names dont get alligned properly, is there a
way to a align the names and provide legend in Mosaic plots using R?
Also I would like to know any other packages using which I can plot Mosaic
Plots
Thank you in advance
Sunita
--
View this message in context:
2011 Apr 03
1
Suggests and examples
I apologize in advance for probably missing something obvious, but if
someone could point me in the right direction I'd be grateful. This
NOTE is not unique to our package (I list a few others, below).
Package bcp has several Suggests (strucchange, for example).
Then in an Rd file, we have
if (require(strucchange)) {
# Doing some examples making use of strucchange
}
The CRAN check
2008 Oct 13
2
split data, but ensure each level of the factor is represented
Hello,
I'll use part of the iris dataset for an example of what I want to
do.
> data(iris)
> iris<-iris[1:10,1:4]
> iris
Sepal.Length Sepal.Width Petal.Length Petal.Width
1 5.1 3.5 1.4 0.2
2 4.9 3.0 1.4 0.2
3 4.7 3.2 1.3 0.2
4 4.6 3.1 1.5
2009 Jul 18
1
Building a big.matrix using foreach
Hi there!
I have become a big fan of the 'foreach' package allowing me to do a
lot of stuff in parallel. For example, evaluating the function f on
all elements in a vector x is easily accomplished:
foreach(i=1:length(x),.combine=c) %dopar% f(x[i])
Here the .combine=c option tells foreach to combine output using the
c()-function. That is, to return it as a vector.
Today I discovered the
2006 Jun 24
2
data frame search
Hi,
I want to make a data frame which contains the positions of some searched values in another data frame.
Like:
Dataframe 1:
1 2 3 4 1 2 3 4
2 3 4 1 2 3 4 2
4 1 2 3 2 3 4 1
Let's say I searched on "4", then Dataframe 2 should contain:
x y
1 4
1 8
2 3
2 7
3 1
3 7
I have written a routine, but it seems to me that it isn't that perfect:
x<- 0
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 Sep 08
1
bigmemory doubt
Hi,
Is it possible for me to read data from shared memory created by a vc++ program into R using bigmemory?
[[alternative HTML version deleted]]
2010 Jun 23
2
(help) This is an R workspace memory processing question
Hi all!
This is an R workspace memory processing question.
There is a method which from the R will control 10GB data at 500MB units?
my work environment :
R version : 2.11.1
OS : WinXP Pro sp3
Thanks and best regards.
Park, Young-Ju
from Korea.
[1][rKWLzcpt.zNp8gmPEwGJCA00]
2009 Oct 15
2
Estimation in a changepoint regression with R
Dear All,
I'm trying to do the estimation in a changepoint regression problem via R, but never found any suitable function which might help me to do this.
Could someone give me a hand?on this matter?
Thank you.
2009 Oct 30
1
Multicore package: sharing/modifying variable accross processes
Hi,
I want to parallelize some computations when it's possible on multicore
machines.
Each computation produces a big objects that I don't want to store if
not necessary: in the end only the object that best fits my data have to
be returned. In non-parallel mode, a single gloabl object is updated if
the current computation gets a better result than the best previously found.
My plan