r2lUniv.r2lBasicClasses {r2lUniv} | R Documentation |
Method used by r2lUniv
for r2lUniv basic classes.
On r2lUniv basic classes, r2lUniv
makes some
analyses according to the variable class, then exports the LaTeX
code.
## S3 method for class 'nominal': r2lUniv(data, fileOutput = "", varName = NA, varNumber = NA, dirGraph = "", graphName = "V",...) ## S3 method for class 'ordinal': r2lUniv(data, fileOutput = "", varName = NA, varNumber = NA, dirGraph = "", graphName = "V",...) ## S3 method for class 'discrete': r2lUniv(data, fileOutput = "", varName = NA, varNumber = NA, dirGraph = "", graphName = "V",...) ## S3 method for class 'continuous': r2lUniv(data, fileOutput = "", varName = NA, varNumber = NA, dirGraph = "", graphName = "V",...)
data |
vector ;
to print |
fileOutput |
character ;
name of the output file to save the LaTeX code. If
empty, code is printed on screen. |
varName |
character , single;
title of the LaTeX summary. For no title, use NA
instead of "". |
varNumber |
numeric , single;
number to be printed before the title. For no number, use NA
instead of "". |
dirGraph |
character ;
Directory used to save the graphs generated by the analyses. |
graphName |
character , single;
Prefix of the graphs' names. The full names of the graphs will be
graphName with a postfix in ("-boxplot.eps", "-barplot.eps",
"-hist.eps") |
... |
For S3 compatibility only |
On r2lUniv basic classes, r2lUniv
makes some
analyses according to the variable class, then exports the LaTeX
code.
The analyses depend on the r2lUniv basic classes:
Then the LaTeX summary is exported, either on the
screen, or in a file specified by fileOutput
.
r2lUniv
either prints LaTeX code on the screen or saves it in a
file. It also generates several encapsuled postsript graphs (.eps), optionally
in a directory.
r2lBiv (R to LaTeX, Bivariate Analyses) is under contruction. Any help will be welcomed!
Christophe Genolini
christophe.genolini@free.fr
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris
Jean-Marc Chamot
jchamot@u-paris10.fr
Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory
University of Paris 10 / Nanterre
LaTeX web site http://www.latex-project.org/
Sweave
,
latex
,
r2lConcepts
,
r2lUniv.data.frame
,
r2lUniv.r2lBasicClasses
,
r2lUniv.Rclasses
# # # # # # # # # # # # # # # # # # # # R to LaTeX, Univariate Analyses # # Examples # # r2l Basic classes # # # # # # # # # # # # # # # # # # ######################## ###### Step 1: Load the data data(Vnominal) data(Vordinal) data(Vdiscrete) data(Vcontinuous) ######################## ###### Step 4: Run ### The following code will create some files. ### We advise you to first move in directory "r2lUnivExample" dir.create("r2lUnivExample") setwd("r2lUnivExample") dir.create("graph") r2lUniv(Vnominal,"nominal.tex") r2lUniv(Vordinal,"ordinal.tex",varName="Peep",graphName="O") r2lUniv(Vdiscrete,"discrete.tex",varNumber="3",graphName="D",dirGraph="graph") r2lUniv(Vcontinuous,"continuous.tex",varName="CheatScore",varNumber="4",graphName="C") ### Creates the main document. r2lGenerateLatexMain(c("nominal.tex","ordinal.tex","discrete.tex","continuous.tex")) ### Everything is ready, you can now run LaTeX on the file "main.tex" setwd("..")