Displaying 20 results from an estimated 2000 matches similar to: "Bug in sub? (PR#487)"
2000 Dec 17
1
AW: Permutations
Niels Waller wrote:
> Does anyone know of an R (or S-PLUS) function for delineating all possible
> combinations and permutations?
The following function delivers all permutations of 1:n.
all.perm <- function(n) {
p <- matrix(1, ncol = 1)
for (i in 2:n) {
p <- pp <- cbind(p, i)
v <- c(1:i, 1:(i - 1))
for (j in 2:i) {
v <- v[-1]
2000 Mar 07
2
AW: anova-bug in R-version 1.0.0? (PR#470)
I think I've discovered what went wrong.
My workspace included a function wilcox.test formerly copied from
ctest. Now ctest ist part of the distribution and because of that I
always got the message:
[Previously saved workspace restored]
Error in autoload("wilcox.test", "ctest") :
Object already exists
I didn't take care of this message. Now I removed
2001 Nov 22
1
Bug in dev.print? (PR#1179)
Dear "Debuggers",
please have look a the following:
> plot(0:1,0:1,type="n")
> points(c(0,0.5,1),c(0,0.5,1))
> dev.print(device = postscript, width=5 , height=5, file="test1.ps")
windows
2
># This worked
> dev.print(device = pdf, width=5 , height=5, file="test1.pdf")
windows
2
># That also
>
2001 Sep 25
1
Bug in boxplot.stats?
Is this a bug?
>"xx" <- c(50, 79, 120, 78, 90, 100, 78, 80,
+ 90, 80, 60, 39, 90, 85, 140, 100, 80, 80)
> boxplot.stats(xx)$stats
[1] 60 78 80 90 100
> boxplot.stats(0.1*xx)$stats
[1] 7.8 7.8 8.0 9.0 10.0
I suppose the way the numbers in 0.1*xx are internally stored may
cause this problem:
> formatC(0.1*xx[2],format="f",digits=16)
[1]
2001 Oct 05
3
3dim histogram?
Hello all,
I wonder if there is a package including a program to display a 3dim
histogram.
Thanks.
--- D.Trenkler ---
****************************************************************************
*****
Dr. Dietrich Trenkler (dtrenkler at nts6.oec.uni-osnabrueck.de)
Statistik / Empirische Wirtschaftsforschung
Universitaet Osnabrueck
Rolandstrasse 8
2000 Apr 07
4
Bug in qbinom? (PR#511)
n_10;p_0.5;jjx_0:n;qbinom(pbinom(jjx,n,p),n,p) # This one works as
expected
n_100;p_0.5;jjx_0:n;qbinom(pbinom(jjx,n,p),n,p) # This one causes
severe problems
I cannot interrupt using ESC and I finally have to resort to the Windows
Task manager to kill the R session.
A friend of mine told me that he faced similar problems under Unix.
--please do not edit the information below--
Version:
2000 Mar 07
1
R-crash using cut-and-paste (PR#472)
Dear R-Team,
sorry for bugging (:-)), it's me again. In the FAQ coming along with the
R distribution it reads:
If R executes an illegal instruction, or dies with an operating system
error message that indicates a problem in the program (as opposed to
something like "disk full"), then it is certainly a bug.
This encourages me to describe a crash I encountered a few minutes ago.
I
2000 Mar 06
2
anova-bug in R-version 1.0.0? (PR#470)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@biostat.ku.dk
#
######################################################
Under R version 0.6.51 the following
A_c(13,9,15,5,25,15,3,9,6,12)
B_c(42,24,41,19,27)
2000 Jul 26
1
Bug in stem? (PR#617)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@biostat.ku.dk
#
######################################################
"b" <- c(-5.5, -4, -2.3, -1.5, -1, -0.5, -0.41, -0.33, -0.29,
-0.26, -0.2,
2000 Mar 20
1
Elementwise c() for lists
I have two lists of equal lengths. Each one consists of vectors. Is
there an elegant way to combine them elementwise? Elegant means: without
loops.
For instance, for
> jja_list(1:3,4:7)
> jjb_list(rep(0,4),(2,5))
I would like to get:
> list(c(1:3,rep(0,4)),c(4:7,rep(2,5))).
--- D.Trenkler ---
************************************************************************
*********
2000 Apr 06
1
Generating Rd format under Windows
Excuse me if this question has been answered before.
I just came across "Writing R documentation" in the "Writing R
extensions"
manual. Under section 2.9: "Processing Rd format" I only
find hints at generating the Rd format on a Unix platform. Have I
overlooked how to generate them under Windows?
Any help is gratefully appreciated.
--- D.Trenkler ---
2002 May 22
2
Bug in pexp (PR#1590)
I wonder if something like this has been reported
before:
> pexp(85:86,0.438)
[1] 1 -Inf
--please do not edit the information below--
Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
status =
major = 1
minor = 5.0
year = 2002
month = 04
day = 29
language = R
Windows NT 4.0 (build 1381) Service Pack 6
Search Path:
.GlobalEnv,
2000 Apr 18
0
list arithmetic
I'm an old APL fossil and I got used to work with nested arrays there.
In APL(2) you can write 1+(1 2 3)(4 5 6 7 8 9) and get (2 3 4)(5 6 7 8 9
10).
A similar concept is R's lists. So it takes me by surprise to learn that
1+list(1:3,4:9)
delivers an
Error in 1 + list(1:3, 4:9) : non-numeric argument to binary operator
Is there any particular reason why this doesn't work
2000 May 03
0
Combinatorics for nonparametric tests
For some small sample sizes I would like to exemplify the combinatorics
underlying certain nonparametric tests like Mann-Whitney-Wilcoxon,
Kruskal-Wallis and Spearman's rank correlation. I have written a
function all.perm which delivers all permutations of 1,2,...,n and
which works reasonably well. This can be used to generate P(R=r) of
Spearman's rank correlation:
2000 Dec 13
0
choose(n, k) for k>n: An inconsistency?
It took me by surprise to find that choose(4,5) delivers
[1] NaN
Warning message:
NaNs produced in: choose(n, k)
If we look at choose(4,5) as the number of ways of choosing
5 objects from 4 I would have expected 0 as result.
Furthermore dhyper(5,4,6,5) does deliver 0 and this essentially
equivalent to choose(4,5)*choose(6,0)/choose(10,5).
2004 Jul 15
1
GHK simulator
Dear R-community,
not to re-invent the wheel I wonder if someone of you
has ever written a function to compute the GHK smooth recursive
simulator to estimate multivariate normal probabilities. See for instance
page 194 of
@BOOK{Greene97,
author = {William H. Greene},
year = 1997,
title = {Econometric Analysis},
edition = {3rd},
publisher = {Prentice-Hall},
address = {New Jersey
2000 Sep 07
6
Writing a tabel in LaTeX-format
I have a vague recollection of seeing a R-function
that will output a table or matix in a format suitable
for the tabular enviroment in LaTeX.
But I cannot find it. Any hints?
Bendix
----------------------
Bendix Carstensen
Senior Statistician
Steno Diabetes Centre
Niels Steensens Vej 2
DK-2820 Gentofte
Denmark
tel: +45 44 43 87 38
mob: +45 28 25 87 38
fax: +45 44 43 73 13
bxc at novo.dk
2006 Nov 17
1
Files in EViews format
Dear HelpeRs,
I wonder if anyone knows of ways to read EViews file types.
I did not find a function in the package 'foreign' and a search query
submitted to http://search.r-project.org was not successful.
Any hint is very much welcome.
Dietrich Trenkler
--
Dietrich Trenkler c/o Universitaet Osnabrueck
Rolandstr. 8; D-49069 Osnabrueck, Germany
email: Dietrich.Trenkler at
2007 Nov 07
3
Using R for large econometric models
Dear helpeRs,
a colleague of mine would like to give R a try. He uses econometric
models which typically involve a large number of variables, esp. time
series. Having no experience with handling very large data sets myself
I turn to you.
1. Could you please describe your experiences to cope with these
situations?
2. What kind of difficulties will he have to face? Are there special
2007 Jun 29
2
\include-mechanism in Sweave?
Dear HelpeRs,
I'm very fond of Sweave and I use it as often as possible. It'a a pity
I can't use it for larger projects or can I?
For instance suppose I have three files file1.rnw, file2.rnw and
file3.rnw with Sweave code. Working on file2.rnw I whould like to
exclude file1.rnw and file3.rnw temporarily and joining all of them
later. This amounts to a mechanism similar to using