Displaying 20 results from an estimated 500 matches similar to: "Off Topic: Good reference for sample size calculations"
2007 Mar 07
5
how to "apply" functions to unbalanced data in long format by factors......cant get "by" or "aggregate" to work
Hello R users,
Problem.......I do not understand how to use "aggregate","by", or the
appropriate "apply" to perform a function on data with more than one
factor on unbalanced data...
I have a data frame in the long format that does not contain balanced
data. The ID is a unique identifier corresponding to the experimental
unit that will later be examined by ANOVA,
2003 May 22
4
grep, gsub, sub have problems with NA values (PR#3078)
In a string context, grep, gsub, sub are improperly treating NA (missing) as
the string "NA", and returning unexpected results
> grep("A", c(NA,"NA"))
[1] 1 2
# expected:
# [1] 2
> gsub("A", "X", c(NA,"NA"))
[1] "NX" "NX"
# expected
# [1] NA "NX"
> sub("A", "X",
2010 Jul 14
2
ver 2.11.1 from xterm on Mac without lme4
Hi,
I just installed version 2.11.1 on my Mac OS X 10.5.2. When I try
running R from my xterm, I get the following error:
Error in loadNamespace(name) : there is no package called 'lme4'
Fatal error: unable to restore saved data in .RData
I am returned to the terminal prompt and can not run R. I can open this
version of R from the R console and tried installing the lme4 source
2003 Dec 09
3
latex problem with \preformatted (PR#5645)
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C3BE9C.3FB5BC1A
Content-Type: text/plain; charset="iso-8859-1"
There is a small bug in the implementation of \preformatted in R 1.8.0:
The closing "\end{verbatim}" needs to be followed by a newline, since my
latex
2004 Oct 14
2
Problem with R version 2.0.0 (and patched)
What I am doing : create a simple correlation matrix on 41 variables, then
plot an heatmap with this program :
library(gplots)
mat<-cor(temp.alln,use="pairwise.complete.obs")
hm<-heatmap.2(mat,symm=T)
HM<-format(round(mat[hm[[1]],hm[[2]]],2))
library(RColorBrewer)
brewer.pal(10,"Spectral")->mp
heatmap.2(mat, symm = TRUE, col = mp,
2002 Jan 25
3
make check fails when R_HOME env var set (PR#1284)
When the R_HOME environment variable is set, R issues a warning messages
when it starts up. When doing 'make check' this causes the check for
eval-etc.R to fail:
[...]
make[3]: Leaving directory
`/Volumes/app/R/src/R-1.4.0_patched_2002-01-24/tests'
running strict specific tests
make[3]: Entering directory
`/Volumes/app/R/src/R-1.4.0_patched_2002-01-24/tests'
running code in
2009 Mar 03
1
Self-Organizing Map analysis
Dear list,
I read the SOM package manual but I don't understand how to perform (for
example) 1) the SOM analysis on Iris data 2) with a visualization similar to
that of figure 7 in
http://www.cis.hut.fi/projects/somtoolbox/package/papers/techrep.pdf
Any suggestion? Thanks in advance,
Gianandrea
--
View this message in context:
2001 Nov 14
3
rpart:plotcp doesn't allow ylim argument (PR#1171)
Full_Name: Gregory R. Warnes
Version: R 1.3.1
OS: Solaris 2.8
Submission from: (NULL) (192.77.198.200)
rpart library version 3.1-2
Error message:
> plotcp(fit.thirds.1,ylim=c(0.7,1.5));
Error in plot.default(ns, xerror, axes = FALSE, xlab = "cp", ylab = "X-val
Relative Error", :
formal argument "ylim" matched by multiple actual arguments
>
This can be
2002 Apr 10
5
Funny characters in x11 window title (PR#1451)
In R-1.5.0pre (2002-04-08) on Solaris 2.6, the window that X11() creates has a
title like:
R Graphics: Device 2 (ACTIVE) o iyeP )( y
except the funny characters at the end have umlauts and other accents
(i.e. extended ASCII characters), and they may be different each time X11() is
invoked. There is no loss of functionality; it just looks a little ugly.
I saw this behavior in R-1.3.?, it
2004 Jan 20
2
ChangeLog for R packages {was "Wish list"}
I've been using a cvs2cl.pl (http://www.red-bean.com/cvs2cl), a nice little
perl script to auto-generate GNU-style
changelogs from CVS log information.
This site also has a proposed XML format for changelogs, and cvs2cl can
optionally produce this instead. Finally, they have an XSLT sylesheet that
will convert the XML changlong format into an HTML/XHTML page.
How about we borrow this tool
2002 Feb 07
2
FW: layout and piechart diameter problem (PR#1300)
Third try...
> -----Original Message-----
> From: Warnes, Gregory R
> Sent: Tuesday, February 05, 2002 4:12 PM
> To: 'R-bugs'
> Subject: layout and piechart diameter problem
>
>
> I've been using layout to create some graphics pages which include pie
> charts. (NB: No piechart arguments please, the main chart on the page is
> a proper bar chart
2002 Oct 31
1
Re: gregmisc version 0.7.3 now available
Dear Greg,
Thanks for the new release. The decomposition of the SSQ is just what I need!
Regards,
Martin.
Martin Hoyle,
School of Life and Environmental Sciences,
University of Nottingham,
University Park,
Nottingham,
NG7 2RD,
UK
Webpage: http://myprofile.cos.com/martinhoyle
>>> gregory_r_warnes at groton.pfizer.com 10/30/02 07:16PM >>>
Version 0.7.3 of the gregmisc package
2004 Jun 09
1
Add links to NEWS/ChangeLog to package pages
Just a thought:
It would be nice to be able to review the NEWS and/or ChangeLog files for
packages via the package web page on CRAN...
-Greg
Gregory R. Warnes
Manager, Non-Clinical Statistics
Pfizer Global Research and Development
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
2000 Nov 17
1
Floor codebooks vs. Residue codebooks
Hi,
Please brace yourselves for some possibly stupid questions.
Why are there only 2 codebooks for floors and many more for residue values?
What makes the encoding of floor values fundamentally different from
encoding residue values?
I have a basic understanding of VQ, and looking at the floor decode
function, it all makes sense
1) Read the codebook index from the stream
2) Do a
2002 Jan 24
1
Re: coding factor replicates
How about this. Its not as 'swish' as Doug's response, but it might be a
little simpler to think about and adapt...
# show the test vector
> tmp
[1] A B C B C A C B A A B
Levels: A B C
>
# create a named vector to store the number of occurences of each level
> index <- numeric(length=length(levels(tmp)))
> names(index) <- levels(tmp)
> index
A B C
[1] 0 0
2001 Jul 13
7
too many arguments in foreign function call
Hi all,
I've just been working with a piece of fortran code (Leo Breiman's
random forest code) that needs a lot of arguments. When I use .Fortran,
I get the message 'too many arguments in foreign function call'.
Neither the help page for .Fortran (actually Foreign) nor "Writing R
Extensions" explains how many arguments are too many.
Looking at the code in
2001 Jul 13
7
too many arguments in foreign function call
Hi all,
I've just been working with a piece of fortran code (Leo Breiman's
random forest code) that needs a lot of arguments. When I use .Fortran,
I get the message 'too many arguments in foreign function call'.
Neither the help page for .Fortran (actually Foreign) nor "Writing R
Extensions" explains how many arguments are too many.
Looking at the code in
2004 Mar 25
2
Odd error in R CMD check (PR#6695)
I'm seeing an odd error message when running R CMD check gregmisc with
R-1.9.0beta_2004-03-22.tar.gz
* checking package dependencies ... WARNING
Error in switch(type, code = c("R", "r", "S", "s", "q"), data = c("R", :
Argument "type" is missing, with no default
Execution halted
See the information on DESCRIPTION
2004 Aug 25
1
No is.formula()
There appears to be no "is.formula()" function in R-1.9.1. May I suggest
that
is.formula <- function(x) inherits(x, "formula")
be added to base, since formula is a fundimental R type?
Gregory R. Warnes
Manager, Non-Clinical Statistics
Pfizer Global Research and Development
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
2001 Sep 15
1
Tk version of data.entry?
Has anyone taken the time to put together a Tk version of the data.entry()
function?
-Greg
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or