Displaying 20 results from an estimated 10000 matches similar to: "Warning for data.table (with ref)?"
2010 Apr 29
1
data.table error
I'm trying to learn data.table package but I get a following annoying
error message:
> install.packages("data.table")
trying URL 'http://www.freestatistics.org/cran/bin/macosx/universal/contrib/2.10/data.table_1.2.tgz'
Content type 'application/x-gzip' length 66823 bytes (65 Kb)
opened URL
==================================================
downloaded 65 Kb
The
2007 Apr 11
1
package incompatibility under 2.5.0 (please respond directly, I am not on r-devel)
Dear all,
For my package "ref" I have implemented extensive regression testing. It now fails to compile since primitives "dim" and "dimnames" (and their assignment methods) no longer allow for additional arguments. I was using an additional argument "ref" with several methods. For "].refdata" it still works, with "dim.refdata" no longer.
2008 Sep 19
4
Novice question about getting data into R
I found it easy to use R when typing data manually into it. Now I need to
read data from a file, and I get the following errors:
> refdata =
> read.table("K:\\MerchantData\\RiskModel\\refund_distribution.csv", header
> = TRUE)
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:
line 1 did not have 42 elements
> refdata =
>
2004 Jan 22
1
Please help with \usage{} for [.S3Class in Rd-Format
Dear all,
I try to submit a library to CRAN but can't overcome the last R CMD CHECK.
Can someone enlighten me how to put the \usage{} section for an S3-Method
extractor defined as
> args(get("[.refdata"))
function (x, i = NULL, j = NULL, drop = FALSE, ref = FALSE)
NULL
I read the "Writing R Extensions" manual and know about
\methods{generic}{class}, however I
2010 Oct 07
1
model.frame deficiency
The model.frame function has trouble with a certain type of really long
formula. Here is a test:
tname <- paste('var', 1:50, sep='')
tmat <- matrix(rnorm(500), ncol=50, dimnames=list(NULL, tname))
tdata <- data.frame(tmat)
temp1 <- paste( paste(tname, tname, sep='='), collapse=', ')
temp2 <- paste("~1 + cbind(", temp1, ")")
2006 Dec 10
1
Problem with loading "library(Matrix)" at Ubuntu
Dear All,
After upgrading to R-2.4.0-dapper2 (my system is ubuntu 6.06 LTS), I often
met problems when loading some packages like Matrix.
Here is the details:
> library(Matrix)
Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source =
keep.source) :
in 'Matrix' methods specified for export, but none defined: Arith,
Math, Math2, +, %*%, Schur, as.matrix, chol,
2007 Sep 10
2
[Fwd: buglet (?) in de.restore()]
I'm resending this after a decent interval of 20 days -- any
opinions? Should I file it as a bug report? Is it my mistake?
cheers
Ben Bolker
-------- Original Message --------
Subject: buglet (?) in de.restore()
Date: Tue, 21 Aug 2007 13:29:33 -0400
From: Ben Bolker <bolker at zoo.ufl.edu>
To: r-devel at r-project.org
If one calls data.entry() with a matrix:
A =
2013 Aug 09
1
a fast table() for the 1D case
Hi,
table1D() below can be up to 60x faster than base::table() for the 1D
case. Here are the detailed speedups compared to base::table().
o With a logical vector of length 5M: 11x faster
(or more if 'useNA="always"')
o With factor/integer/numeric/character of length 1M and 9 levels
(or 9 distinct values for non-factors):
2019 Mar 12
3
as.data.frame.table() does not recognize default.stringsAsFactors()
Reporting a possible inconsistency or bug in handling stringsAsFactors in as.data.frame.table()
Here is a simple test
> options()$stringsAsFactors
[1] TRUE
> x<-c("a","b","c","a","b")
> d<-as.data.frame(table(x))
> d
x Freq
1 a 2
2 b 2
3 c 1
> class(d$x)
[1] "factor"
>
2011 Feb 09
1
samr - extract genes from siggenes.table
Hi BioC user,
I have a problem extracting the gene set I would like to work with.
Here is I work with my data:
normData <- read.delim("normalizedData.txt",sep ="\t")
######### two class unpaired comparison
# y must take values 1,2
classes <- c(-1,-2,1,2)
#prepere the data for the samr analysis
data.x <-as.matrix(normData[,8:11])
d=list(x=data.x,y=classes,
2004 Feb 23
0
Package "ref" implements references and referenceable data.frames for the S-language
Repeatedly people have asked how to pass arguments by reference in R.
Now package "ref" is on CRAN, which provides two referencing methods:
Functions ref(), deref() and friends conveniently allow to pass parameters
"by reference" instead of "by value". This can be useful in memory critical
applications but requires a more careful programming style to track the
2004 Feb 23
0
Package "ref" implements references and referenceable data.frames for the S-language
Repeatedly people have asked how to pass arguments by reference in R.
Now package "ref" is on CRAN, which provides two referencing methods:
Functions ref(), deref() and friends conveniently allow to pass parameters
"by reference" instead of "by value". This can be useful in memory critical
applications but requires a more careful programming style to track the
2016 Dec 20
2
colnames for data.frame could be greatly improved
Hello,
colnames seems to be not optimized well for data.frame. It escapes
processing for data.frame in
if (is.data.frame(x) && do.NULL)
return(names(x))
but only when do.NULL true. This makes huge difference when do.NULL
false. Minimal edit to `colnames`:
if (is.data.frame(x)) {
nm <- names(x)
if (do.NULL || !is.null(nm))
return(nm)
else
2012 Mar 21
0
multivariate ordinal probit regression vglm()
Hello, all.
I'm investigating the rate at which skeletal joint surfaces pass
through a series of ordered stages (changes in morphology). Current
statistical methods in this type of research use various logit or
probit regression techniques (e.g., proportional odds logit/probit,
forward/backward continuation ratio, or restricted/unrestricted
cumulative probit). Data typically include the
2012 Apr 04
0
multivariate ordered probit regression---use standard bivariate normal distribution?
Hello.
I have yet to receive a response to my previous post, so I may have
done a poor job asking the question. So, here is the general question:
how can I run a run a multivariate (more than one non-independent,
response variables) ordered probit regression model? I've had success
doing this in the univariate case using the vglm() function in the
VGAM package. For example:
2013 Feb 05
1
failure to connect to Bloomber using Rbbg from batch script on Windows
I am having a puzzling problem with bloomberg connection. When i run from R prompt some code that has
....
library(Rbbg)
conn <- blpConnect(throw.ticker.errors = FALSE)
print("connected")
...
I establish connection every time and then proceed to get data when i run this code from R prompt. However, when i run this from a batch script, i get the following error output from Rbbg:
2007 Aug 18
1
Suspected memory leak with R v.2.5.x and large matrices with dimnames set
Hi -
Admittedly, this may not be the most sophisticated memory profiling
performed, but when using unix's top command, I'm noticing a notable
memory leak when using R with a large matrix that has dimnames set.
To allow people to reproduce the problem I'm seeing, I've added a
small (< 50 lines) code snippet at the end of this email.
I'm seeing this
2007 Aug 18
1
Suspected memory leak with R v.2.5.x and large matrices with dimnames set
Hi -
Admittedly, this may not be the most sophisticated memory profiling
performed, but when using unix's top command, I'm noticing a notable
memory leak when using R with a large matrix that has dimnames set.
To allow people to reproduce the problem I'm seeing, I've added a
small (< 50 lines) code snippet at the end of this email.
I'm seeing this
2011 Nov 02
0
Calling str() on mlogit object gives warnings
Hi:
When I call str() on an mlogit object, I seem to get warnings. This
code is from an example provided in the mlogit documentation:
library(mlogit)
data("Train", package="mlogit")
tr<-mlogit.data(Train, shape="wide", choice="choice", varying=4:11,
sep="", alt.levels=c(1,2), id="id")
2007 Mar 02
5
extracting rows from a data frame by looping over the row names: performance issues
Hi,
I have a big data frame:
> mat <- matrix(rep(paste(letters, collapse=""), 5*300000), ncol=5)
> dat <- as.data.frame(mat)
and I need to do some computation on each row. Currently I'm doing this:
> for (key in row.names(dat)) { row <- dat[key, ]; ... do some computation on row... }
which could probably considered a very natural (and R'ish) way of