Displaying 20 results from an estimated 6000 matches similar to: "functions for flat file import/export + utilities"
2000 Jul 26
3
Correlation matrices
Hello,
are there any good methods in R that will test if two correlation matrices (obtained in different ways) are equal? Something better than the Mantel test would be preferable.
Regards,
Patrik Waldmann
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
1999 Jun 08
3
histograms
> >>>>> "PD" == Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:
>
> PD> "Venables, Bill (CMIS, Cleveland)" <Bill.Venables at cmis.CSIRO.AU>
> PD> writes:
> >> The fact that every elementary book on statistics does it this way
> >> does not make it correct. To be helpful, a histogram really
2002 Nov 22
4
Small change to plot.xy
Hi everyone,
Is there any reason why we should not automatically coerce a factor
supplied as an argument to col in a plotting function? The following
modification (to R-1.6.1) seems pretty harmless
> plot.xy
function (xy, type, pch = 1, lty = "solid", col = par("fg"),
bg = NA, cex = 1, ...)
{
if (is.factor(col))
col <- codes(col)
2001 Apr 11
5
replicating lists
Hi Everyone,
At the moment it is not possible to replicate complex lists, but only
simple ones:
> rep(list(fred = 1:10), 10) # works fine
> rep(list(fred = 1:10, happy = "squash"), 10)
Error in rep(list(fred = 1:10, happy = "squash"), 10) :
Unimplemented feature in rep
There is nothing in ?rep that suggests that the latter should not work,
and I think it would
1999 Feb 18
1
[R] possible bug in loglm (PR#122)
Bug report: there is a problem with loglm (or some underlying code)
when used with updating within a function. For example, this code
works as expected, when used outside a function:
-------------------------------------------------
library(MASS)
1999 Jul 05
1
win.metafile use
Platform: Windows 95
Version : R0641
Problem : I wish to plot and save a large number of graphics files in
windows metafont format. I have a very crude postscript printing
function, which happily handles repeated calls:
psf<-function(filename){
dev.print(postscript,file=paste(sep="",filename,".ps"),horizontal=F)
return()
}
To produce metafont files, I
1999 Apr 03
2
tabulate causes segmentation fault (PR#156)
Peter,
I thought this one was noted and fixed, but I could be wrong.
R : Copyright 1999, The R Development Core Team
Version 0.63.3 (March 6, 1999)
....
[Previously saved workspace restored]
> tabulate(1:10, 5)
Process R:1 segmentation fault at Sat Apr 3 17:48:34 1999
--
(The following contact details become official on 1 May 1999, but
the email
2002 Feb 20
1
Pivoting in chol
Hi Everyone,
I have modified my version of R-1.4.1 to include choleski with pivoting
(like in Splus). I thought R-core might consider including this in the
next version of R, so I give below the steps required to facilitate
this.
1. Copied Linpack routine "dchdc.f" into src/appl
2. Inserted line F77_SUBROUTINE(dchdc) in src/appl/ROUTINES
3. Inserted "dchdc.f" into
2002 Oct 08
3
hash argument of new.env()
Hi everyone,
There is no mention in ?new.env (R-1.6.0) of what the effect of setting
the hash argument of new.env() actually does. What does it mean in
performance terms to say that "the environment will be hashed"?
Thanks, Jonathan.
--
Jonathan Rougier Science Laboratories
Department of Mathematical Sciences South Road
University of Durham
2002 Oct 10
1
make check when installing R-1.6.0
This is the result of my make check, could anyone help me out on this
one?
Formats: text example
running code in 'base-Ex.R' ...*** Error code 1
make: Fatal error: Command failed for target `base-Ex.Rout'
Current working directory /apps/R/R-1.6.0/tests/Examples
*** Error code 1
make: Fatal error: Command failed for target `test-Examples-Base'
Current working directory
2009 Jul 20
1
tabulate can accept NA values?
tabulate has
.C("R_tabulate", as.integer(bin), as.integer(length(bin)),
as.integer(nbins), ans = integer(nbins), PACKAGE="base")$ans
The implementation of R_tabulate has
if(x[i] != R_NaInt && x[i] > 0 && x[i] <= *nbin)
and so copes with (silently drops) NA. Perhaps the .C could have
NAOK=TRUE? This is useful in apply'ing tabulate to
2002 Jan 04
2
Problem with "missing" in "local" (PR#1241)
Hi everyone,
I encountered unexpected behaviour when calling "missing" within a
"local" environment, namely
fred <- function(x, y)
{
x <- as.vector(x)
local({
dontwantme <- 1:100
if (missing(y)) print("No \"y\" today")
})
x
}
whereupon I get
> fred(1:10)
Error in eval(expr, envir, enclos) : "missing" illegal use of
2001 Oct 03
1
tiny typo in optim/N-M documentation (PR#1109)
In the optim() documentation, the control parameter "maxit" says
"There is no other stopping criteria." That should be "are", or
"criterion" ...
While I'm at it -- poking at the code a little bit, it looks as if the
initial simplex is set from the initial point by displacing each
parameter value by max(0.1,0.1*pmax(fabs(Bvec))), where Bvec is the
2001 May 23
3
multidimensional list
Hi all,
is it possible to create a multidemensional list? Haven't found anything
in the list() help page.
Thanks, Sven
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)
2001 Jan 09
3
Inconsistent behaviour in solve (PR#805)
I find this a bit puzzling ...
> solve(matrix(c(5, 2, 3, 1), 2, 2), c(Inf, 3))
[1] NaN Inf
> solve(matrix(c(5, 2, 3, 1), 2, 2)) %*% c(Inf, 3)
[,1]
[1,] -Inf
[2,] Inf
I would expect the answer to be c(-Inf, Inf), so why has the -Inf
been replaced by NaN in solve?
Cheers, Jonathan.
--please do not edit the information below--
Version:
platform = sparc-sun-solaris2.7
arch = sparc
2002 Sep 10
2
Problems with rbind
Dear list
I have a simple question that I have a mental block on:
Having used a loop (from i = 1 to n) to assign some numerical values to
row.list[[i]]
e.g. row.list[[3]]= 0 1
I am wanting to combine the output into a simple matrix.
for example, if I combine the output from persons 1 to 3 into a matrix, I
thought I could do :
h<-rbind(row.list[[1]]:row.list[[3]])
However, I get the
2002 Feb 28
1
trying to build matrix for tests...
Okay, I stumped. I'm trying to build a matrix or data.frame that consists of
values by group. For example,
resid, group
574 0.536196370873122 E
575 0.93191093696265 E
576 -1.27116094894117 A
577 -1.05159666055027 A
578 0.398273458301184 D
579 0.586373126102573 E
580 0.806575304513802 E
581 0.897258393118338 E
582 0.342393324256838 D
583 0.781245511773227 E
I
2010 Jun 28
2
Axes intercept
I have a plot where the values of the y axis go from a positive number to a negative number and I want the x axis to intercept at zero rather than at the bottom of the y axis, regardless of its value. Can anyone help me to do this?
Thanks in advance
Vivien
Vivien Kent MSc Oxon
PhD candidate
Evolutionary Anthropology Research Group
Department of Anthropology
Durham University
Dawson
2002 Feb 26
3
a trick ??
Dear R users,
Suppose i have an A square matrix rxr. I want to obtain a block matrix
B (pxr,pxr) where
the p diagonal blocks are A and the others values are 0.
I would like to do something like : diag(A,ncol=pr, nrow=pr)
How can i do it ??
Thanks in advance,
Olivier.
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN
PhD student phone: (33) 04
2002 May 07
4
Putting obejct into Graph title
Hello all -
If I want to put mean value of a matrix into the title or subtitle of a graph, how would I do this? For example, in a set of commands like below,
> m.mean<-mean(m)
> gplot (m, thresh=m.mean)
> title (main="A2. Block Density of Matrix m\nplotted based on MDS",
+ sub="lines below mean density (**0.435**) suppressed")
I want to ask [R] to put the