Displaying 20 results from an estimated 3000 matches similar to: "Windows metafile"
2000 Jan 03
1
Rounding in date.mdy from library(date)
The date library contains a function date.mdy that converts a number
D to the date (month,date,year as a list) at D days after 1 Jan 1960.
This a convention that fits in with SASs.
The logic would be that the result was the date at D days after
1 Jan 1960 00:00:00 (which is a POINT in time as opposed to a date which
is an interval), so that any D with 2<=D<3 was rounded to 3 Jan 1960
and
1999 Feb 25
1
HTML-documentaion on NT
Once you hae in stalled Guido's NT port of R it
is nice and easy to install the add-on packages too.
However, it would be nice to have links to the documentation
of the functions in all the packages from the "All Installed
Functions" html-page, and not have to go through each of
the packages.
Is there a utility somewhere to do this?
Bendix
\\\|///
1999 May 05
1
Ordered factors , was: surrogate poisson models
For ordered factor the natural contrast coding would be to parametrize by
the succsessive differences between levels, which does not assume equal
spacing
of factor levels as does the polynomial contrasts (implicitly at least).
This requires the contr.cum, which could be:
contr.cum <- function (n, contrasts = TRUE)
{
if (is.numeric(n) && length(n) == 1)
levs <- 1:n
2001 Sep 05
3
Bug in ftable?? (Was: Two-way tables of data, etc)
Further to the discussion between Murray Jorgensen and Brian Ripley,
it seems to me better to choose tabulations that will not come and bite
you. Suppose your data are sligtly irregular, e.g. (for the sake of
the argument):
data( warpbreaks )
warpbreaks$variant <- rep( 1:5, len=54 )
attach( warpbreaks )
tb <- table( wool, tension, variant )
tb
# in this case you would like to see:
tp
2001 Sep 05
3
Bug in ftable?? (Was: Two-way tables of data, etc)
Further to the discussion between Murray Jorgensen and Brian Ripley,
it seems to me better to choose tabulations that will not come and bite
you. Suppose your data are sligtly irregular, e.g. (for the sake of
the argument):
data( warpbreaks )
warpbreaks$variant <- rep( 1:5, len=54 )
attach( warpbreaks )
tb <- table( wool, tension, variant )
tb
# in this case you would like to see:
tp
2008 Jul 29
2
FW: Installing BRugs
A funny thing happened when I wanted a student of mine to install Brugs.
Using the InstallPackages in the windows version, firts gives an erro, but trying again works flawlessly.
R version is 2.7.0 on WinXP.
Any explanation?
Bendix Carstensen
______________________________________________
Bendix Carstensen
Senior Statistician
Steno Diabetes Center
Niels Steensens Vej 2-4
DK-2820 Gentofte
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
2008 Nov 24
1
FW: read.ssd
Did not seem to reach Saikat DebRoy, this might be the forum.
Bendix
-----Original Message-----
From: BXC (Bendix Carstensen)
Sent: 24. november 2008 15:00
To: 'saikat at stat.wisc.edu'; 'stvjc at channing.harvard.edu'
Subject: read.ssd
It's always annoyed me that that read.ssd crashed on datasets with long variable names, but the other day a collegue of mine pointed out to
2004 Nov 03
1
Building a package under WIN2000 / rw2.0
I have an odd problem in building a package with only R-code in it.
I have a package mainly used by myself which I last build under R
1.9.0.
The operation system is Win2000 5.00.2195, Service Pack 3
When I do:
c:\stat\r\rw2000\bin\Rcmd install --docs=normal --build
--library=c:\stat\R\bxc\library c:\stat\R\bxc\library.sources\xx
then after updating help pages I get:
preparing package xx for
2004 Nov 03
1
Building a package under WIN2000 / rw2.0
I have an odd problem in building a package with only R-code in it.
I have a package mainly used by myself which I last build under R
1.9.0.
The operation system is Win2000 5.00.2195, Service Pack 3
When I do:
c:\stat\r\rw2000\bin\Rcmd install --docs=normal --build
--library=c:\stat\R\bxc\library c:\stat\R\bxc\library.sources\xx
then after updating help pages I get:
preparing package xx for
2004 May 24
2
Month names
This is how I get the month names from within R:
> mon <- rep(strptime("01/01/1952", format = "%d/%m/%Y"), 12)
> mon$mon <- mon$mon + 0:11
> mnam <- months(mon, abbreviate = F)
> mnam
[1] "januar" "februar" "marts" "april" "maj" "juni"
"juli" "august"
2009 Apr 27
2
The .tex version of the manual in foo.Rcheck
In version 2.8.1, running Rcmd check on the package foo would leave the file foo-manual.tex in the folder foo.Rcheck.
But as of 2.9.0 only foo-manual.pdf and foo-manual.log are there.
Is this intentional?
Anyway it is inconvenient, because I would occasionally like to include the manual at the end of a set of exercises, and this was a convenient file to \input with a few select %'s added.
2007 Jun 11
2
Rounding?
I was a bit puzzed by:
> formatC(6.65,format="f",digits=1)
[1] "6.6"
So I experimented and found:
> formatC(6.6500000000000001,format="f",digits=1)
[1] "6.6"
> formatC(6.650000000000001,format="f",digits=1)
[1] "6.7"
> round(6.6500000000000001,1)
[1] 6.7
> round(6.650000000000001,1)
[1] 6.7
> version
2007 May 11
1
Compilation of source package.
I have a samll package that works well and complies nicly on WinXP,
using R-2.4.1
Now I want to add a document so i make a folder inst\doc and put the
.tex and .pdf in there.
But the complation then crashes. Is this because the installin expects
some file to be present in inst if an inst folder is there?
This is how the thing progress is on my command promp:
2004 Dec 28
3
plots
Is there a way to save plots and use in a word
document. Thanks for your help in advance.
durai
__________________________________
Send holiday email and support a worthy cause. Do good.
2008 May 18
1
Figure environment and includegraphics options from Sweave
Tha handy thinb about the fig=TRUE option in Sweave is that you do not
have to bother about filenames and starting and stpping the device.
I want the the resulting LaTeX to look as:
\begin{Schunk}
\begin{Sinput}
> x <- seq(-2 * pi, 2 * pi, 0.1)
> plot(x, cos(x), type = "l", lwd = 4)
\end{Sinput}
\end{Schunk}
\begin{figure}
\includegraphics[width=0.6\textwidth]{xx-001}
2005 Feb 17
1
How to get interction terms first in a model
Consider the following two specifications of a model:
library( splines )
x <- 1:100
y <- rnorm( 100 )
w <- rep( 1, 100 )
A <- factor( sample( 1:2, 100, replace=T ) )
B <- factor( sample( letters[1:4], 100, replace=T ) )
summary( lm( y ~ ns( x, knots=c(30, 50, 70 ), intercept=T ):A - 1 + B )
)
summary( lm( y ~ ns( x, knots=c(30, 50, 70 ), intercept=T ):A - 1 + B:w
) )
The
2004 Mar 02
3
Margins on tables
It has long been a nuisance to me not being able to form margins on
multiway tables in a simple fashion, so i wrote margins().
In my opinion it should go into the base package. The code and the
documentation is in:
http://www.biostat.ku.dk/~bxc/R/margins/
Please help yourself, and enhance and rename as you see fit.
Bendix
----------------------
Bendix Carstensen
Senior Statistician
Steno
2005 May 21
2
print format for difftime
Has anyone written a function that will print a difftime in the form:
hh:mm:ss
or
yy-mm-dd hh:mm:ss
depending on the actual size.
(sloppy notation for months/minutes, but surely you get the point).
Bendix
----------------------
Bendix Carstensen
Senior Statistician
Steno Diabetes Center
Niels Steensens Vej 2
DK-2820 Gentofte
Denmark
tel: +45 44 43 87 38
mob: +45 30 75 87 38
fax: +45 44 43 07
2010 Apr 17
1
Fishy error with NAMESPACE when checking package
I am updating the Epi package.
I added functions named pc.points and pc.matpoints.
Erroneously I wrote pc.plot and pc.matplot in the NAMESPACE file and of course got an error from Rcmd check.
So I corrected the NAMESPACE file, but I still get from r-check:
* install options are ' --no-html'
Loading required package: utils
Error in namespaceExport(ns, exports) :
undefined exports: