Displaying 20 results from an estimated 4000 matches similar to: "Potential bug with data.frame replacement"
2019 Jul 15
0
Potential bug with data.frame replacement
This may be related to the size of the deparsed call in the error message
that Brodie and Luke were discussing recently on R-devel (" Mitigating
Stalls Caused by Call Deparse on Error"). I don't get a crash, but the
error message itself doesn't show up after the deparsed call.
> X <- sample(letters, 3000, TRUE)
> D <- data.frame(X, 1:3000, X, X, X, X, X)
>
2019 Jul 14
2
[External] Mitigating Stalls Caused by Call Deparse on Error
Luke, thanks for considering the issue.? I would like to
try to separate the problem into two parts, as I _think_
your comments address primarily part 2 below:
1. How can we avoid significant and possibly crippling
?? stalls on error with these non-standard calls.
2. What is the best way to view these non-standard calls.
I agree that issue 2. requires further thought and
discussion under a
2019 Jul 13
2
Mitigating Stalls Caused by Call Deparse on Error
When large calls cause errors R may stall for extended periods.? This
is particularly likely to happen with `do.call`, as in this example
with a 24 second stall:
??? x <- runif(1e7)
??? system.time(do.call(paste0, list(abs, x)))? # intentional error
??? ## Error in (function (..., collapse = NULL)? :
??? ##?? cannot coerce type 'builtin' to vector of type 'character'
??? ##
2019 Jul 16
1
[External] Mitigating Stalls Caused by Call Deparse on Error
We also have a few other suggestions and wishes about backtrace
storage and display on the one hand, and display of constructed calls
on the other hand. Perhaps it would be better to open a different
wishlist item for traceback() to keep the discussions focused?
FWIW I think deparsing backtraces lazily is a great idea. Displaying 1
line per call by default in interactive sessions, while being
2018 Apr 10
1
Fail to save an object using name as string
Dear list member,
I think that I have detected a strange behavior of the save() command:
> year <- "2000"
> assign(paste0("Var_", year), list(A=10, B=20))
> get(paste0("Var_", year))
$A
[1] 10
$B
[1] 20
# At this point all is ok, I have created a list of name Var_2000
> save(paste0("Var_", year), file=paste0("Var_", year,
2006 Sep 07
2
Kernel ELsmp vs EL
Hi all,
I'm not very used to CentOS and Linux generally speaking, though I read
a lot and 'man' quickly became a very good friend of mine, right after
Google, so sorry if that's a ridiculous one! (at least it'll give you a
good laugh!)
I updated the kernel to 2.6.9-42.0.2 recently and that raised a
question... Simple... Yet silly...! What exactly is the difference
between
2007 Dec 30
1
Text over the plot and the margins
Hi,
I am having problem to display text that goes start inside the
plot but should go over the margins of the plot.
You can have an example of what I mean by looking at the graphs on this
page:
2016 Apr 21
2
installation problem on Ubuntu
I was able to install the curl library with no problems. However, when I
tried to install ggplot (install.packages("ggplot2")), I got the same
message as earlier, that R can't load internet.so.
Thanks for your help!
On Wed, Apr 20, 2016 at 1:24 PM, Tom Wright <tom at maladmin.com> wrote:
> apt-get install curl libcurl4-openssl-dev
>
> On Wed, 2016-04-20 at 09:36
2016 Apr 22
1
installation problem on Ubuntu
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
source ~/.bash_profile
I still get the same error.
On Thu, Apr 21, 2016 at 7:45 PM, David Winsemius <dwinsemius at comcast.net>
wrote:
>
> > On Apr 21, 2016, at 1:23 PM, Paul Tremblay <paulhtremblay at gmail.com>
> wrote:
> >
> > I was able to install the curl library with no problems. However, when
2016 Apr 22
0
installation problem on Ubuntu
> On Apr 21, 2016, at 1:23 PM, Paul Tremblay <paulhtremblay at gmail.com> wrote:
>
> I was able to install the curl library with no problems. However, when I
> tried to install ggplot (install.packages("ggplot2")), I got the same
> message as earlier, that R can't load internet.so.
Is the libcurl directory in your search path?
David.
>
> Thanks for your
2003 Feb 01
3
Read.table problem
Hi !
I am new to R, and using the MAC version onto Mac OS 9.1. My question concerns
the problem I encounter when I try to read some data I have using the
read.table function. I always get an error of type : Error in scan(file =
file, what = what, sep = sep, quote = quote, dec = dec, :
line 1 did not have 9 elements
Here is my code:
varnames <- c("names", "symbol",
2016 Apr 16
2
faster way to use filter this
I have the following (simplified) vectors:
index <- c("shoe" "shirt" "fruit")
cost <- c(100, 50, 2)
data <- c("shirt", "shoe", "vegetable")
I want my outcome to be:
(50, 100, 0)
(shirt => 50, shoe => 100, vegetable => not found, so 0)
I have written the following function:
for (i in custom_list) {
+ this_cost
2006 Sep 14
7
backup server..
Hi,
I've been playing with CentOS quite a bit lately (and I must say it's
growing on me!! :) and I was now able to convince my boss that we could
get a box and gradually start migrating our hosting from win2k3 to
centos.
So anyway, I've got a new box at the colo ready up and running - P4 3Ghz
w/HT 2Ghz RAM 2x70Gb HDD, running Centos4.4 fully up-to-date. Now my two
questions are;
2018 Oct 04
2
Bug : Autocorrelation in sample drawn from stats::rnorm (hmh)
Hi Hugo,
I've been able to replicate your bug, including for other distributions (runif, rexp, rgamma, etc) which shouldn't be surprising since they're probably all drawing from the same pseudo-random number generator. ?Interestingly, it does not seem to depend on the choice of seed, I am not sure why that is the case.
I'll point out first of all that the R-devel mailing list is
2018 Oct 04
2
Bug : Autocorrelation in sample drawn from stats::rnorm (hmh)
Hi Hugo,
I've been able to replicate your bug, including for other distributions (runif, rexp, rgamma, etc) which shouldn't be surprising since they're probably all drawing from the same pseudo-random number generator. ?Interestingly, it does not seem to depend on the choice of seed, I am not sure why that is the case.
I'll point out first of all that the R-devel mailing list is
2011 May 19
2
recursive function
Hi,
I created a function for obtaining the normal cumulative distribution (I
know all this already exists in R, I just wanted to verify my
understanding of it). below is the code I came up with.
cdf<-function(x) {
erf<-function(x) {
# approximation to the error function (erf) of the
# normal cumulative distribution function
# from Winitzki
2018 Oct 05
2
Bug : Autocorrelation in sample drawn from stats::rnorm (hmh)
On 05/10/2018, 09:45, "R-help on behalf of hmh" <r-help-bounces at r-project.org on behalf of hugomh at gmx.fr> wrote:
Hi,
Thanks William for this fast answer, and sorry for sending the 1st mail
to r-help instead to r-devel.
I noticed that bug while I was simulating many small random walks using
c(0,cumsum(rnorm(10))). Then the negative
2017 May 24
2
reg-tests-1d.R fails in r72721
On 2017-05-24, Duncan Murdoch wrote:
>
> I think the test is wrong because in the first case you are working in a
> locale where that character is representable. In my locale it is not, so x1
> is converted to UTF-8, and everything compares equal.
>
> An explicit conversion of x1 to UTF-8 should fix this, i.e. replace
>
> x1 <- path.expand(paste0("~/",
2019 Jun 14
2
Ejecutar un script de Python con argumentos desde R
Ni idea de eso; te lo agradezco. Seguramente lo voy a terminar usando
bastante.
Pregunto: ahí debería hacer todas las operaciones propias del sistema? No
me encuentra el script, y se me hace raro. Capaz que pasa al sistema desde
la carpeta en la que está el script de R, no desde el wd de R.
Ahora me toca salir y después intentar probar y que funcione.
Gracis de vuelta
Hau idatzi du Marcelino De
2016 Apr 22
4
Creating variables on the fly
Hi all,
I would like to use a loop for tasks that occurs repeatedly:
# Groups
# Umsatz <= 0: 1 (NICHT kaufend)
# Umsatz > 0: 2 (kaufend)
for (year in c("2011", "2012", "2013", "2014", "2015")) {
paste0("Kunden$Kunde_real_", year) <- (paste0("Kunden$Umsatz_", year) <= 0) * 1 +