Displaying 20 results from an estimated 5000 matches similar to: "how to write a table to pdf"
2007 Nov 06
3
Produce a multiple formats graphic
Is it possible to produce the same graphic in different formats
in one shot?
Now if I want to produce the same graphic in pdf, ps and jpeg
I run the producing code, but I change the graphic device, and
I choose successively :
pdf(...)
ps(...)
jpeg(...)
So in this case I run the same code 3 times, or I have
to choose a format and use converters...
Is it possible to produce the 3 graphics in once
2007 Nov 27
1
Export in pdf, png, jpg, eps, etc...
Dear R-users,
I have created a bunch of R scripts that automatically create multiple
plots, all saved in a pdf device. I initially chose pdf output in order
to easily access to multiple plots in a single file.
Now, I am trying to play with different devices, like png or eps and I
realize that the settings I used to have nice plots in a pdf device are
giving awful outputs with the other
2008 May 02
1
Phil Spector's book
Since we're on the topic of book reviews, I just received Phil Spector's
new R book called "Data Manipulation with R" and it is also quite a
nice book. I haven't gone through it all and I won't give a detailed
review but I have gotten a lot out of the first 100 pages that I have
read.
Note that I've been using R for almost 1.5 years so , for me, it's a
2007 Dec 15
1
modify a data.frame within a function
Hello all,
I'm trying to modify a single column of a data frame to remove randomly half of the values. I want to do it within a function, but can not assign the modified column back into the data frame. It was easy and successful without a function, so I suspect the problem is the call of the single column within the function.
removedata<-function(datafull,var.removed)
{
attach(datafull)
2008 Mar 13
1
factanal and plotting?
Hi there!
To make a good choice for the estimation of the number of usefull
factors. And I'd like to plot a graph like:
http://de.wikipedia.org/wiki/Bild:Parallelanalyse.jpg
where I don't need the green line (random values).
But with
str(factanal(data, factors=10)) I cannot figure out where I can find the
values for plotting.
Can you please help me in this question?
Thanks,
Martin
2008 Apr 04
1
How to include files in .R?
Hi,
may be its a very simple question, but i did not find any documentation
about a 'include' command or something like this.
I have to set many constants in my R-files and want to move all these to
one file, so that i can reuse it in all other R-files.
Something like
include("~/R/myconstants.R")
kind regards,
--
Jonas Stein <news at jonasstein.de>
2007 Sep 06
2
larger decimal numbers get rounded ....
Hi,
I am sure there is a reason but ...... why larger decimal numbers get rounded to the nearest integer?
Example:
a <- 3308000.5
a
[1] 3308001
I would like my numbers to be decimals .... since they do represent coordinates and i don't want them rounded .... how can i keep them as they are?
Thanks,
Monica
_________________________________________________________________
2007 Oct 27
1
Package Installer Fails in OSX 10.5 Leopard
Hello all,
I apologize in advance if this is not the correct list to post these sorts
of issues. When attempting to install the latest stable build of R (2.6) or
the most recent nightly build from R.research.att.com, the installer
disables the ability to actually install R or any of the other bundled
frameworks (i.e. the list is unchecked and grayed out). Before I start
trying to either coerce the
2008 Jun 03
2
merge two data sets
I would like to merge ?data1 ?that contains 100 unique ID?s with another
data set ?data 2? with 150 ID?s and the age of those individuals ( the ID in
data1 is a subset of the ID in data 2) I would like to merge these data1
with data2 and have the result of the merge to have the ID ordered as in
data1.
Can this be done in R?
--
View this message in context:
2007 Jul 13
2
R file via SSH
Goodmorning everybody,
I need to run an R program via SSH. Usually I open R, I run the
program and I stay logged-in, waiting for the output. As a matter of
fact, if I close the connection with SSH I loose the calculations and
the output of my R program. What command I have to use in order to
preseve the calculations and the output without staying logged-in a SSH
connection?
thanks in advance
2009 May 26
2
Problem accessing "row number" from subset on a dataframe
I would like to use the "row number" information returned from performing a subset command on a dataframe.
For example, I would like to automatically delete some rows from a dataframe if they match a criteria. Here is my example below.
data(airquality)
names(airquality)
subset(airquality, airquality$Month == 6)
Now how do I delete the row numbers returned automatically?
I
2006 Nov 08
5
query in R
how to realize the following SQL command in R?
select distinct A, B, count(C)
from TABLE
group by A, B
;
quit;
Best Regards
---------------------------------
Sponsored Link
Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile.
[[alternative HTML version deleted]]
2007 Aug 04
2
bars' values on barplot
Hi,
I need bars' values on barplot, and I don't know how I can put it. I do my
barplot as:
data<-read.table("/my_path/file.dat",header=T, sep="\t")
barplot(as.matrix(data),log="y",beside=TRUE,main="my_title", xlab="x name",
ylab="y name").
How can I add the values on each bar?
Thanks..
[[alternative HTML version deleted]]
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
2008 Jan 06
3
run setwd at the launch of R
Dear all,
my R files (and the .csv files as well) are saved somewhere pretty
deep down my hard disk.
i have to chage to working directory therefore everytime i run R (i
run it on powerPC mac), which is disgusting.
using the setwd command at the beginning of an R script doesnt really
help because i have to find this file first by hand.
I am looking for possibility to run setwd during the
2009 Jan 28
1
Faced Problems with RODBC package 1.2-5 and 1.2-4 for windows
Hi,
I am facing problems with RODBC package 1.2-5 and 1.2-4 built for
windows. I am using R 2.8.1 version.
I faced some problems when I was trying to execute sql procedure
from R with exec/execute statement .
Stored procedure contains code/statements :
1) Call to another procedure (R calls one procedure which itself
calls another procedure)
2)
2006 Nov 08
2
Sweave and font problems
Dear All,
Having now successfully started using Sweave, I have just noticed an odd
side effect with fonts.
Using plain LaTeX, I have had no problems using \usepackage{palatino} or
\usepackage{times} and the font correctly changes.
However, once I convert the tex document into Snw, and run it through R
CMD SWEAVE, LaTeX seems to ignore this package directive. The LaTeX log
suggests the font
2006 Nov 30
4
R_WinEdt question
if I want to put fig1plot to the left, figYPplot to the right
figYAaplot on the bottom.
How to modify the following cod to do these?
\begin{figure}[H]
\centering
\begin{minipage}[t]{0.5\textwidth}
\centering
<<label=fig1plot,fig=TRUE,echo=FALSE>>=
<<fig1plot>>
@
%\caption{Caption 1}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\centering
2007 Jul 18
1
Neuman-Keuls
hello,
I have programmed this function to calculate the Neuman-Keuls test but I have a problem the function return an empty list and I don't know why.
summary(fm1)
E <- sqrt((summary(fm1)[[1]]["Residuals","Mean Sq"])/length(LR))
lst <- list()
lst1 <- list()
lst2 <- list()
NK <- function (x) {
if (length(x) == 2) {
Tstudent <- t.test(subset(exple,
2008 Dec 12
1
Avoiding multiple outputs using RODBC package
I am using R as a data manipulation tool for a SQL database. So in some of
my R scripts I use the RODBC package to retreive data, then run analysis,
and use the sqlSave function in the RODBC package to store the results in a
database.
There are two problems I want to avoid, and they are highly related: (1)
having R rerun analysis which has already been done and saved into output
database table,