Displaying 20 results from an estimated 20000 matches similar to: "'is.integer' (PR#13671)"
2009 Jun 25
2
stringsAsFactors has no impact in expand.grid()?
Hi
I have the feeling, that the argument stringsAsFactors has no impact in the
function expand.grid:
a <- c("PR", "NC", "A2", "BS")
b <- c(1, 0.5, 0.25, 0.125, 0.0625, 0.03125)
class(expand.grid(css, fscs, stringsAsFactors=FALSE)[[1]])
[1] "factor"
class(expand.grid(css, fscs, stringsAsFactors=TRUE)[[1]])
[1] "factor"
Also, when
2012 Nov 05
1
relative convergence in 'optim'
Dear list,
I have a question related to the correct interpretation of the
relative convergence criterion used by 'optim'.
In the help of the function is it written that:
"reltol:Relative convergence tolerance. The algorithm stops if it is
unable to reduce the value by a factor of reltol * (abs(val) + reltol)
at a step."
and I was wondering if the previous criterion is
2015 Jul 21
2
' --enable-R-shlib' problem when setting up R-devel in Linux Mint 17.1 64-bit
Dear list,
This is my first time trying to set up the development version of R
(R-devel ) in my local machine to test some packages before submitting
them to CRAN. I'm using Linux Mint 17.1 64-bit, which is an
Ubuntu-based distro.
However, I'm not able to correctly set up r-devel, apparently due to a
problem with enabling the shared library support.
I run the first script given by Dirk
2011 Jan 17
3
"cannot allocate vector of size ..." in RHLE5 PAE kernel
Dear R community,
I'm running R 32 bits in a 64-bits machine (with 16Gb of Ram) using a
PAE kernel, as you can see here:
$ uname -a
Linux mymachine 2.6.18-238.el5PAE #1 SMP Sun Dec 19 14:42:44 EST 2010
i686 i686 i386 GNU/Linux
When I try to create a large matrix ( Q.obs <- matrix(NA, nrow=6940,
ncol=9000) ), I got the following error:
> Error: cannot allocate vector of size 238.3
2009 Apr 23
1
Failing to print mer object in an RData image
Hi all
I have problems in accessing a mer object called model.01 from a
workspace that was created with R 2.8.1 and saved with save into an
.RData file (on Windows XP or Ubuntu 8.10, don't remember anymore).
Now I want to open it in R 2.9.0 on Ubuntu 8.10. I use
# load workspace
load("name.RData")
which seems to work:
ls() # all objects in there
[1] "all"
2012 Mar 08
2
xyplot without external box
Dear list members,
Within a loop, I need to create an xyplot with only a legend, not even
with the default external box drawn by lattice.
I already managed to remove the axis labels and tick marks, but I
couldn't find in the documentation of xyplot how to remove the
external box.
I would really appreciate any help with this
------------- START -----------
library(lattice)
x<-1:100
2008 Jun 07
2
rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1
Hello again :)
I''m trying to run rcov on my specs here but i''m getting a lot of
segmentation faults (and they usually happen at different places):
/home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211:
[BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i486-linux]
2024 Jul 14
2
Reinterpret data without saving it to a file 1st? Check for integer stopping at 1st decimal?
A small number of columns in the data I need to work with are strings, the
rest numbers. I'm using read_excel() from the readxl package to get the
data ; right after it, the string columns are of type chr and the rest num.
I'm tasked with finding out which columns are integers. From an advice, I
tried saving the spreadsheet content into a CSV then loading that, which
works like a charm ;
2015 Dec 17
1
integer
In the help page for ?is.integer, there is this function
is.wholenumber <-
function(x, tol = .Machine$double.eps^0.5) abs(x - round(x)) < tol
A quick question: is there a case where this alternative function will not
work?
function(x) x %% 1 == 0
Best,
Adrian
--
Adrian Dusa
University of Bucharest
Romanian Social Data Archive
Soseaua Panduri nr.90
050663 Bucharest sector 5
2009 Jul 23
2
Bug in seq() (PR#13849)
Full_Name: Jeremiah Cohen
Version: 2.9.0
OS: Windows XP
Submission from: (NULL) (129.59.230.235)
I believe there is a bug in the seq() function for certain values of the "from"
argument. Here are examples:
> seq(-.2, .1, .1)
[1] -0.2 -0.1 0.0 0.1
> seq(-.3, .1, .1)
[1] -3.000000e-01 -2.000000e-01 -1.000000e-01 5.551115e-17 1.000000e-01
> seq(-.4, .1, .1)
[1] -0.4 -0.3
2007 Jan 25
3
Error in loadNamespace(name) (PR#9464)
Full_Name: Ross Darnell
Version: 2.4.1
OS: Linux
Submission from: (NULL) (130.102.133.33)
rdarnell at pc:~/Data$ ls -al .RData
-rwxrwxrwx 2 root root 13551 2006-12-06 08:58 .RData
rdarnell at pc:~/Data$ R
R version 2.4.1 (2006-12-18)
Copyright (C) 2006 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to
2007 Feb 22
1
memory problem read.table v array (PR#9526)
Full_Name: bill langdon
Version: 2.4.1
OS: ubuntu
Submission from: (NULL) (155.245.58.159)
#WBL 22 Feb 2007 ubuntu
R.version
#platform i486-pc-linux-gnu
#arch i486
#os linux-gnu
#system i486, linux-gnu
#status
#major 2
#minor 4.1
#year 2006
#month 12
#day 18
#svn rev 40228
#language R
2010 Jan 25
2
tm installation (PR#14193)
Full_Name: Cesar Telmo Costa
Version: R version 2.9.2 (2009-08-24)
OS: Ubuntu kermic
Submission from: (NULL) (85.241.174.237)
AFTER install.packages("tm"):
downloaded 317 Kb
* Installing *source* package ?tm? ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -fpic -g -O2 -c lazyTmMap.c -o
lazyTmMap.o
gcc -std=gnu99 -shared -o tm.so lazyTmMap.o -L/usr/lib/R/lib -lR
** R
** data
2010 Feb 10
2
system.time provides inaccurate sys.child (PR#14210)
Full_Name: Manuel L?pez-Ib??ez
Version: R version 2.6.2 (2008-02-08)
OS: linux-gnu
Submission from: (NULL) (164.15.10.156)
This is only relevant for CPU intensive child processes. Otherwise, the problem
is not obvious.
Therefore, we need a CPU intensive program like this one:
/************************************/
/*** Compile with: gcc -o timer-test -O0 timer-test.c -lm */
#include
2007 Nov 22
1
package gsl assumes incorrect gcc version during install (PR#10451)
Full_Name: Levi Waldron
Version: 2.5.1
OS: Ubuntu Gutsy
Submission from: (NULL) (206.248.157.88)
I installed libgsl0-dev then tried to install the gsl cran package,
unsuccessfully (see output below). As a workaround I created a symbolic link to
/usr/bin/gcc-4.2, ie:
sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc-4.2
The correct behavior of the gsl package should be to use the executable
2009 May 12
4
different results on linux and windows
Dear R experts,
we are preparing an R-package to compute the Oja Median which contains
some C++ code in which random numbers are needed. To generate the random
numbers we use the following Mersenne-Twister implementation:
// MersenneTwister.h
// Mersenne Twister random number generator -- a C++ class MTRand
// Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus
// Richard J.
2010 Apr 17
1
Error message when trying to install Rcmdr
I am trying to install Rcmdr on my ubuntu machine, but keep getting the
following error messages:
ERROR: failed to lock directory
?/home/thedoctor/R/i486-pc-linux-gnu-library/2.10? for modifying
Try removing ?/home/thedoctor/R/i486-pc-linux-gnu-library/2.10/00LOCK?
ERROR: failed to lock directory
?/home/thedoctor/R/i486-pc-linux-gnu-library/2.10? for modifying
Try removing
2009 Jun 30
0
bug in nlme package function predict.lmList (PR#13788)
Full_Name: Vaidotas Zemlys
Version: 2.9.0
OS: Ubuntu 8.10
Submission from: (NULL) (213.197.173.50)
Steps to reproduce the bug:
library(nlme)
data(Oxboys)
qm=lmList(height~age|Subject,data=Oxboys)
grid=with(Oxboys,expand.grid(age=seq(min(age),max(age),length=50),Subject=levels(Subject)))
res <- predict(qm,grid,se=TRUE)
Erreur dans if (pool) { : l'argument est de longueur nulle
res <-
2010 May 06
1
Rcmdr probs
When trying to install Rcmdr, I get the following error messages. I am not
aware of how to fix the problem, i.e. how to remove the lock.
ERROR: failed to lock directory
‘/home/thedoctor/R/i486-pc-linux-gnu-library/2.10’ for modifying
Try removing ‘/home/thedoctor/R/i486-pc-linux-gnu-library/2.10/00LOCK’
ERROR: failed to lock directory
‘/home/thedoctor/R/i486-pc-linux-gnu-library/2.10’ for
2002 Jun 27
1
Patch for 2.2.5 (start_tls with OpenLDAP 2.0.x) is not working ...
Hi,
i was the one who had problems with the
start_tls function.
I applied the patch yesterday.
But now the compiling doesn't work anymore.
This is what happens :
--------snipp----------
[Lots of compiling output cut away]
Linking bin/smbd
passdb/pdb_ldap.o: In function `pdb_setsampwent':
passdb/pdb_ldap.o(.text+0x1730): multiple definition of
`pdb_setsampwent'