Displaying 20 results from an estimated 7000 matches similar to: "write data to pdf"
2006 Aug 02
2
tcl/tk bind destroy event
Hello!
I want to create a messagebox whenever the user wants to destroy the window
(e.g. <Alt-F4> or the 'x' in the right top corner) and ask if a modified file
should be saved or not.
If 'cancel' is chosen then nothing should happen and the windows still should be
existing. This doesn't work. When I press cancel the window will be destroyed
although.
I also
2010 Aug 11
4
Arbitrary number of covariates in a formula
Hello!
I have something like this:
test1 <- data.frame(intx=c(4,3,1,1,2,2,3),
status=c(1,1,1,0,1,1,0),
x1=c(0,2,1,1,1,0,0),
x2=c(1,1,0,0,2,2,0),
sex=c(0,0,0,0,1,1,1))
and I can easily fit a cox model:
library(survival)
coxph(Surv(intx,status) ~ x1 + x2 + strata(sex),test1)
However, I want to
2011 May 30
2
Group by multiple variables
Hello,
I would like to create a group variable that is based on the values of three variables:
For example,
> dat <- data.frame(A=c(1,1,1,1,1,2,2,2,2,2),
B=c(1,1,1,5,5,5,9,9,9,9),
C=c(1,1,1,1,1,2,2,7,7,7))
> dat
A B C
1 1 1 1
2 1 1 1
3 1 1 1
4 1 5 1
5 1 5 1
6 2 5 2
7 2 9 2
8 2 9 7
9 2 9 7
10 2 9 7
All rows that that are
2011 Sep 28
1
Multiplying a list of matrices with a vector
Hi all!
I have a list of matrices and I want to multiply the ith element of the list with the ith element of a another vector. That is,
> LL <- list(A=diag(3),B=diag(3),C=diag(3))
> vec <- 1:3
> for(i in 1:3)
+ {
+ LL[[i]] <- LL[[i]]*vec[i]
+ }
> LL
$A
[,1] [,2] [,3]
[1,] 1 0 0
[2,] 0 1 0
[3,] 0 0 1
$B
[,1] [,2] [,3]
[1,] 2 0
2006 Jul 21
4
Printed/PDF Reports (Text/Tabular/Summary) in Rails
The recent discussion about different graphing solutions made me
think. What is everyone using for general reports? Currently I have a
web based application at work that has roughly 20 different reports
ranging from simple tabular data with totaling at the bottom to
pretty, colorized, graphic logo''s,etc... going to clients, and
finally complex ones I hate to think about such as
2010 Aug 31
1
Q about package Icens: change the color of the shading in plot function
Hello!
I want to use the Icens package for analyzing interval-censored data. This code from the manual gives me what I want.
library(Icens)
data(cosmesis)
csub1 <- subset(cosmesis, subset=Trt==0, select=c(L,R))
e1 <- VEM(csub1)
plot(e1)
However, I would like to change the color of the shading from green to something less green, say gray. Any ideas how I could do that? I looked at par, but
2024 Jan 18
2
Missing python-reportlab-2.5-11.el7_9
I am having troubles finding the -11 update to python-reportlab.? I just got dinged for:
Remote package installed : python-reportlab-2.5-10.el7
Should be??????????????? : python-reportlab-2.5-11.el7_9
I don't see it in the list of updates, my local mirror, or at:
http://mirror.centos.org/centos/7/updates/x86_64/Packages/
Thanks,
Chris
2010 Oct 03
3
Include externally generated pdf in output (without Sweave)
Dear useRs,
I generated a simple image-based report using the sequence:
pdf(....)
plot(.....)
textplot( for short texts, from gplots)
dev.off()
Is there an easy way to include an single pdf-page from an external file
(not R generated).
Note: For final reports, I know how to use Sweave, but I am looking for a
quick solution with less overhead. Something like textplot() for pdf.
Dieter
2008 Feb 29
2
printing tables to a pdf
Dear R community,
I wish to print tables into a pdf file. How can this be done, adding
headers and several tables to the same file?
Thanking you for your attention,
Georg.
*****************************
Georg Ehret
Johns Hopkins
Baltimore - US
[[alternative HTML version deleted]]
2002 Dec 23
4
calling R from python (fwd)
A question for a (experienced) user of the RPython package on
linux.
I'm trying to call R from python on a linux (Suse 7.3) box.
After installing R CMD INSTALL -c RSPython_0.5-2.tar.gz
I start python and do:
>>> import sys
>>> sys.path.append('/usr/local/lib/R/library/RSPython')
>>> sys.path.append('/usr/local/lib/R/library/RSPython/Python')
2005 Jan 17
1
problem installing RSPython
Hi,
I'm trying to install RSPython v0.5-4 on a debian machine (woody,
testing) but am having the following problem.
$R CMD INSTALL -c --library=/usr/lib/R/library RSPython_0.5-4.tar.gz 2>err
But then...
$python
>> import RS
Error in .PythonInit() : Error in Python call: values
Error in library("RSPython") : .First.lib failed for 'RSPython'
Traceback (most recent
2007 Aug 03
2
RSPython won't load in R 2.6.0 under Linux
I can compile RSPython without difficulty, been when I try to load it, I
get the error messages below. Also below are some cryptic warnings I get
on R boot (in case these are pertinent) and my sessionInfo().
Any help is appreciated. Thanks, Mark
Warning messages:
1: In .updateMethodsInTable(fdef, where, attach) :
Couldn't find methods table for "conditional", package
2005 Mar 18
2
RSPython
Hi,
where is the latest version of the RSPython library? Is it compatible
with the current stable release of R?
Thanks, Darren
2006 Aug 09
1
tk combobox question
Hello!
The IWigdets::combobox has an option "selectioncommand" to specify a procedure
which is called when an item in the combobox is selected.
Does ComboBox from Bwidgets have an equal option or is there a simple method to
do thi? I haven't found one but i would like to use Bwidgets instead of Iwidgets.
Another question which should not be a problem, but at the moment I just
2012 Sep 12
2
Help on converting a Sweave document to PDF
Dear All,
I am working with a Sweave document to be converted into PDF using Rstudio. It seems to me that my R code will also show up after conversion, which I would like not to happen. Is there a way to specify a command that I could place on the beggining and at the end of the R code that would allow R to recognize the area where my R code is and would ignor it when the data is converted?
2010 Dec 22
1
Error in generating sweave-tex -> pdf file
Hi,
I created a Sweave file (see below). when I want to convert tex
file generated from it into pdf, I get error message as follows:
> texi2dvi("test.tex", pdf=TRUE)
Error in texi2dvi("test.tex", pdf = TRUE) :
Running 'texi2dvi' on 'test.tex' failed.
LaTeX errors:
! Undefined control sequence.
l.8 \begin
{Schunk}
?
! Interruption.
!
2012 Jan 14
1
Converting .Rout file to pdf via Sweave automatically
The R documentation mentions to create a PDF or DVI file from an Rnw template, the Sweave command can be used used.
However, is there any way to go from a .Rout file straight to pdf with an Rnw template ?
What I'm trying to avoid is adding the Sweave markup to the .tex file manually.
What I think I'm missing is the exact arguments to the Sweave command.
I tried numerous forms of:
2001 Oct 31
1
shared libraries on FreeBSD 4.*
I've used R for a couple of years on FreeBSD with few problems. Recently,
a couple of the contributed packages seem to have difficulty finding
symbols in the shared libraries. Currently, I'm running R 1.3.1 on FreeBSD
4.4. I've tried setting LD_LIBRARY_PATH to /usr/local/lib
and some other things. The packages I've had trouble with are:
Matrix 0.3.15
RODBC 0.8.3
RSPython 0.3
2009 Nov 02
1
R and Python
I am a long time user of R for financial time series analysis (xts, zoo,
etc) and for my next project I am thinking of adding the Python language to
the mix. The reason for adding Python is primarily its non-statistical
capabilities.
So my questions are what have people's experiences been with using interop
between R and Python. I see there are two items, rPy and RSPython. It looks
like rPy
2012 Sep 14
1
Printing localized pdf file from Sweave snippets
Hello!
I am struggling for quite some time with proper printing of local
characters in pdf plot, via Sweave snippets in Rnw file.
When I am working directly within R, all is fine and I can get local
character properly, like:
pdf('figs/fig-relativeEntropy0.pdf', h=6, w=6, encoding='CP1250')
matplot(par[, c(3)], type='b', ylim=c(0,0.5), xaxt='n', pch=c(21),