Displaying 20 results from an estimated 20000 matches similar to: "** operator"
2008 Apr 03
1
by "infelicity"
Dear list,
Please find below an example of odd
behaviour of the by function.
It occurs both under GNU/Linux R 2.6.2
and Windows R 2.7.0alpha. Respective
sessionInfo()'s are given below.
I hope I do not overlook anything.
testFactor <- factor(sample(LETTERS[1:6], size = 42, replace = TRUE))
testMatrix <- matrix(rnorm(42 * 6), nrow = 42)
testDf <- as.data.frame(testMatrix)
by(data
2007 Aug 02
2
lasso/lars error
I'm having the exact problem outlined in a previous post from 2005 -
unfortunately the post was never answered:
http://tolstoy.newcastle.edu.au/R/help/05/10/15055.html
When running:
lm2=lars(x2,y,type="lasso",use.Gram=F)
I get an error:
Error in if (zmin < gamhat) { : missing value where TRUE/FALSE needed
...when running lasso via lars() on a 67x3795 set of predictors. I
2008 May 29
1
help (using ?) does not handle trailing whitespace (PR#11537)
> ?agrep
>
Results in:
No documentation for 'agrep ' in specified packages and libraries:
you could try 'help.search("agrep ")'
There is white space after agrep, that ? doesn't ignore.
--please do not edit the information below--
Version:
platform = i486-pc-linux-gnu
arch = i486
os = linux-gnu
system = i486, linux-gnu
status =
major = 2
minor =
2008 May 30
2
scoping problem when calling lm(precomputed formula, weights) from function (PR#11540)
I've run into a scoping problem in R.
I'm calling a function that
* creates a formula
* calculates a weight vector
* calls lm with that formula and weights
This fails.
Here's a simplified reproduce example:
# f works, g doesn't, h is a workaround
rm(w)
data <- data.frame(y=runif(20), x=runif(20), z=runif(20))
f <- function(k){
w <- data$z^k
coef(lm(y~x, data
2011 Mar 21
1
texi2dvi / egrep issue shows (a.o.) up in R-alpha
L.S.
I noticed weird tools::texi2dvi behaviour on R-alpha
when specifying an absolute path to the .tex
file.
The same phenomenon also appears to occur on
R-2.12.2, so maybe the issue is independent
of R.
I hope I did not overlook any important information.
Best,
Tobias
> require(tools)
Loading required package: tools
> getwd()
[1] "/home/tobias"
>
2008 May 08
1
rmpi/snow grabs all available CPU
Hi,
I'm testing affyPara on Debian lenny with
R 2.7 from unstable, and the corresponding bioconductor packages from
bioconductor.org downloaded using biocLite as per usual.
The command
cl = makeMPIcluster(k)
succeeds, but spawns k R slaves which promptly soak up all available CPU, which
is odd since they are not doing anything yet. This looks like a bug to me.
Similar behaviour is shown
2010 May 26
2
segfault on 2.11.0 with large POSIXct vector using as.character
Running "as.character" on a large POSIXct causes a segfault on my 2.11
(2010-04-22) install. Seems to crash at around 9e4 ... on OSX and Ubuntu at
least.
> invisible(as.character(Sys.time()+1:7e4))
> invisible(as.character(Sys.time()+1:8e4))
> invisible(as.character(Sys.time()+1:9e4))
Error: segfault from C stack overflow
> invisible(as.character(Sys.time()+1:5e5))
Error:
2008 Jul 09
1
childNames for xaxis grob (grid package)
Dear list,
Can someone explain why the childNames below
gives
character(0)
instead of the (canonical) names of the children grobs
of the xaxis gTree ?
[1] "major" "ticks" "labels"
Many thanks in advance,
Tobias
### minimal example code ###
library(grid)
pushViewport(plotViewport(c(5,4,4,2)))
pushViewport(dataViewport(1:5, 1:5))
grid.points(1:5, 1:5)
2008 Feb 10
2
View() + "End" key on Ubuntu=segfault
I can repeatably crash R (segfault)
by doing
n <- 10
z <- data.frame(a=1:n,b=1:n)
View(z)
and then hitting the "End" key on my keyboard.
I haven't got debugging going yet, but running under
gdb (without debugging symbols) does give this:
0xb7b63583 in strlen () from /lib/tls/i686/cmov/libc.so.6
R version 2.6.2 (2008-02-08)
i486-pc-linux-gnu
[Ubuntu Gutsy]
locale:
2011 Mar 06
2
Can body() return a function's body intact, in order, and as characters ready for editing?
Is my understanding correct that the body()
function currently can't return a function's body
intact, in order, and as characters ready for
editing?
My testing and reading of body()'s help indicate
that it can not.
Here's what I'm seeing.
Consider pasting
1+
and a function containing
x^2
together to get
1+x^2
As you can see below, body() reports three
2018 Mar 28
1
as.pairlist does not convert call objects
Dear all,
It seems that as.pairlist does not convert call objects, producing
results like the following:
> is.pairlist(as.pairlist(quote(x + y)))
[1] FALSE
Should this behavior be expected?
Thanks,
Jialin
> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-suse-linux-gnu (64-bit)
Running under: openSUSE Tumbleweed
Matrix products: default
BLAS: /usr/lib64/R/lib/libRblas.so
2010 May 17
2
Dynamically build variable names
I'm trying to dynamically build variable names to use on a list. Let's say I have a list like this one:
l <- list(V1_1=c(1,2,3), V1_2=c('One','Two','Three'))
And I succesfully build my variable name like this:
paste('l$', 'V1_1', sep='')
Why can't I just run a mean call with the pasted variable name?
mean(paste('l$',
2008 May 22
2
grid error message when resizing graphics window after tcltk loaded
Dear R-devel / Dr. Murrell -
This is similar but ultimately unrelated (I think) to something I posted
about in February. See my original post here:
https://stat.ethz.ch/pipermail/r-devel/2008-February/048278.html
I start R with the --vanilla option, and run the following code.
## BEGIN SAMPLE R CODE
library(grid)
for(i in seq(0, 1, by = .1)) {
for(j in seq(0, 1, by = .1)) {
angle
2007 Sep 02
1
buglet in dist() ?
the first line of dist() says
if (!is.na(pmatch(method, "euclidian")))
shouldn't that be "euclidean" ?
---------------------
R version 2.5.1 (2007-06-27)
i486-pc-linux-gnu
locale:
2006 Dec 19
3
Bug in rt() ? (PR#9422)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
<<insert bug report here>>
Reproduced on Debian and Windows ...
On 2.4.x if you execute
set.seed(12345)
t.1 <- rt(n = 1000, df = 20)
set.seed(12345)
t.2 <- rt(n = 1000, df = 20, ncp = 0)
all.equal(t.1, t.2) ## Not close to true
This appears to be due to the fact that in 2.4.x rt is now
rt
function (n, df, ncp = 0)
{
if
2007 Oct 31
1
error in display function of the ARM package
Hi,
I get the following error message when trying to use the display
function on the ARM package:
> display(model)
Error in .Internal(round(x, digits)) : no internal function "round"
Looks like some kind of mismatch between the ARM package and some
others? Can I somehow get around it? I have learned to like the display
function to print model summaries.
Here is my sessionInfo():
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,
2011 Apr 01
3
Syntax coloring in R console
Dear all,
I am a happy user of R console, but I would like to see syntax
coloring. I use R 2.12 in Ubuntu Linux.
I have found the packages "xterm256" and "highlight", but I was not
able to figure out how to use it to highlight the syntax in console
output.
Also, I tried several GUI interfaces, but I was not able to find
something that suits me better than the default R
2008 Aug 22
1
save() should not overwrite a file if an error occurs (PR#12583)
If save() fails because an object is not found,
it should not overwrite an existing file.
> a <- 1:9
> save(a, file = "a.rda")
> rm(a)
> load("a.rda")
> a
[1] 1 2 3 4 5 6 7 8 9
> rm(a)
> save(a, file = "a.rda")
Error in save(a, file = "a.rda") : object 'a' not found
> load("a.rda")
Error in
2007 Nov 28
1
Can't make affylmGUI work
Hi,
Can anyone help me of the affylmGUI package, I can't get it work and
searched for google but can't find any proper solutions.
I get the error information each time when I load my cells files, which
are shown in the following links.
-------------
http://clarezoe.googlepages.com/1.png
http://clarezoe.googlepages.com/2.png
http://clarezoe.googlepages.com/3.png
-------------
Errors also