Displaying 20 results from an estimated 20000 matches similar to: "Using R to generate reports"
2008 May 29
7
How do you exit a function in R?
For example, based on a certain condition, I may want to exit my code early:
# Are there the same number of assets in "prices" and
"positions"?
if (nAssetPositions != nAssetPrices) {
cat("Different number of assets! \n\n")
<exit function>
}
I have searched, but not
2004 Jan 28
9
How to generate a report with graphics and tables?
Hello R-Users,
I have some data sets which change on a daily bases. So far I have
imported these sets into R, done all my evaluations resulting in a
couple of plots, charts and tables of numbers which I copy&pasted via
clipboard into Powerpoint.
The procedure is always the same and I wonder, whether there is no
easier way for doing so. Is there some type of "report generator"
2009 Jan 31
1
Question on Sweave-Latex and examples in the Sweave Manual
Hi List,
I have a problem with using Latex and Sweave for creating a document.
So I downloaded the Sweave manual from
http://www.statistik.lmu.de/~leisch/Sweave/Sweave-manual.pdf
and i have tried to replicate the example on pages 4-5, but i encounter the following problem: IT DOES NOT WORK. I can run Sweave, create the .tex file and then when building the .tex file in TeXnikCenter i get all
2010 Nov 11
4
Troubleshooting sweave
Hi All,
I've reproduced the example from Prof. Friedrich Leisch's webpage. When I
write sweave("Example-1.Snw") OR sweave("Example-1.Rnw"), (yes, I renamed
them). I get the following error:
Writing to file example-1.tex
Processing code chunks ...
1 : echo term verbatim
Error: chunk 1
Error in library(ctest) : there is no package called 'ctest'
Also while
2009 Jul 23
1
SweaveOpts(eval=false) not working - CORRECTION
On Thu, Jul 23, 2009 at 3:04 PM, Duncan Murdoch<murdoch at stats.uwo.ca> wrote:
> On 23/07/2009 8:58 AM, Rainer M Krug wrote:
>>
>> Hi
>>
>> I hope this is the right mailing list - if not, could you please refer
>> me to a mora appropriate?
>>
>> My question:
>>
>> I am using sweave (in LyX with beamer) for a lecture and I would like
2012 Apr 01
3
How to use Latex code in R loop?
Hi,
I am newbie in Latex and R. I am working on one report in which i need to
read file and display content of file by formatting (adding color boxes and
colorful text for each record). For this i need to use latex code in R loop.
How can i use Latex code in R loop. Any example will help me a lot.
Thanks
--
View this message in context:
2006 Oct 14
2
Sweave, R and complex latex projects
Hello all,
I've been able to use R very successfully to run simple statistics and
generate the plots I require.
I've been evaluating Sweave, and have hit upon a small problem that I
don't seem to be able to workaround. Sweave runs very well for single
file latex documents, but I have a complex thesis made up of several
parts and chapters. These are arranged with a master latex file
2009 Aug 07
1
sweave and R. Searching for a document that will get me started
windows XP
R 2.8.1
I would like to learn to use Sweave with R. I have no experience using Latex. I have looked at the sweave manual (http://www.statistik.lmu.de/~leisch/Sweave/Sweave-manual.pdf) and have found it difficult to understand, probably because I don't know Latex. Can someone recommend a document that will get me started with Sweave?
Thanks
John
Confidentiality Statement:
This
2010 Nov 13
1
Sweave question
It seems that Sweave is supposed to be used from Latex and R is called
during the LaTeX compilation process whenever R chunks appear. What
about the other way round? I would like to run it triggered by R. Is
this possible? I understand that this does not correspond to the idea
of literate programming since it means that there is R code running
outside the document, but for my practical approach, I
2008 Jul 21
1
y-axis number format on plot, barplot etc.
I am trying to change the number format shown on the y-axis from scientific
5e05, to 500,000 etc. Does anyone know how to do this?
Is there something I can add as an argument to barplot, or would it be
through par?
barplot(data$Value, names.arg = as.vector(data$Field), main=strTitle)
[[alternative HTML version deleted]]
2012 Oct 05
1
LaTeX consistent publication graphics from R and Comparison of GLE and R
Hi Everyone
I am at the moment preparing my thesis and am looking at producing a few
Organigrams / Flow charts (unrelated to the calculations in R) as well as a
range of charts (barcharts, histograms, ...) based on calculations in R.
For the Organigrams I am looking at an Opensource package called GLE at
sourceforge, which produces the text part in Latex figures which is very
neat and also in
2009 Mar 17
2
Difficulty Replacing a Row of a Data Frame
I have the following data frames, avGain and retGain. They have the same
dimensions.
The following line of code replaces row j of avGain as desired:
avGain[j, ] <- mean( retGain[jStart:j, ] )
However, the following line does not work:
avGain[j, ] <- ( avGain[j-1, ] * ( DAYS - 1 ) + retGain[j, ] ) / DAYS
If I do the following, and test to see if a or b are data frames.
2008 May 12
2
k means
Hi the devel list,
I am using K means with a non standard distance. As far as I see, the
function kmeans is able to deal with 4 differents algorithm, but not
with a user define distance.
In addition, kmeans is not able to deal with missing value whereas
there is several solution that k-means can use to deal with them ; one
is using a distance that takes the missing value in account, like a
2009 Feb 04
2
Sweave and \Sexpr{}
Hi:
I am trying to create a dynamic latex table using \Sexpr{} but it's not evaluating it. I also tried the example below without Sweave and also fails. I have also copied the Sweave.sty to my working directory but nothing seems to work. Do I need to have certain package in order to run \Sexpr{}?
\documentclass[a4paper]{article}
\usepackage{C:/R/R-2.8.1/share/texmf/Sweave}
\begin{document}
2009 Jun 25
1
Setting default plot size in Sweave
Dear Colleagues:
I have used
\SweaveOpts{prefix.string=plot, eps = FALSE, pdf = TRUE}
\SweaveOpts{width=5, height=4}
<<fig=T>>=
plot(...)
@
But the figure still has a width of 80% of the text width, the default
set up by Sweave, which issues a LateX command in Sweave.sty of
\setkeys{Gin}{.8\textwidth}. Sweave.sty has a command
\ifthenelse{\boolean{Sweave at
2010 Jun 10
1
Creating reports using R
is there a good way to generate reports in R? I found the following code using split.screen but this only works with plots and i would like to generate reports with tables and charts. thx
if (interactive()) {
par(bg = "white") # default is likely to be transparent
split.screen(c(2,1)) # split display into two screens
split.screen(c(1,3), screen = 2) # now split the
2008 Apr 17
1
Problem with links in R website
Not sure who to send this to...
On the books page http://www.r-project.org/doc/bib/R-books.html the entries
from [54] down have three forward slashes in the hyperlinks to publisher
info and so they don't work
Robin
[[alternative HTML version deleted]]
2008 Jun 04
1
possible bug in flexclust
Hi - Writing to see if someone can suggest whether a problem warrants a bug
report. It concerns the use of stepFlexclust in the flexclust package. The
problem concerns the size of clusters returned.
Versions: R-2.7.0 on Windows XP; RODBC_1.2-3
code snippet:
r8 <- stepFlexclust(df,8,nrep=100,FUN=kcca, family=kccaFamily("kmedians"))
summary(r8) ## returns cluster sizes of 51, 115,
2009 Feb 22
2
R tutorial
Dear all,
I have just found a 'good' tutorial R for datamining. I think it
should be on the contributed docs.
http://cran.r-project.org/other-docs.html
Here is the link
http://www.liaad.up.pt/~ltorgo/DataMiningWithR/
What do you think?
Kind regards
Christophe
--
Christophe Dutang
Ph. D. student at ISFA, Lyon, France
website: http://dutangc.free.fr
2008 May 17
2
How to paste graph from R in Latex?
Dear R-expert,
Is it possible to save graph from R into Latex document? I?can?see save as metafile , PNG, pdf etc, but I'm not sure which one to use.
Thank ?you so much for your help.