Displaying 20 results from an estimated 3000 matches similar to: "Using PrettyR to produce LaTeX output"
2008 Jun 19
1
PrettyR (describe)
#is there a way to get NA in the table of descriptive statistics instead of
the function stopping Thank you in advance
#data
x.f <- structure(list(Site = structure(c(9L, 9L, 9L, 9L, 9L, 9L, 9L,
9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L,
9L, 9L, 9L, 9L), .Label = c("BC", "HC", "RM119", "RM148", "RM179",
"RM185",
2011 Jan 23
2
Creating subsets of a matrix
Hello,
Say I have 2 columns, bmi and gender, the first being all the values and the
second being male or female. How would I subset this into males only and
females only? I have searched these fora and read endlessly about select[]
and split() functions but to no avail. Also the table is not ordered.
bmi gender -> bmi gender + bmi gender
1 24.78 male
2013 Apr 03
5
Can package plyr also calculate the mode?
I am trying to replicate the SAS proc univariate in R. I got most of the
stats I needed for a by grouping in a data frame using:
all1 <- ddply(all,"ACT_NAME", summarise, mean=mean(COUNTS), sd=sd(COUNTS),
q25=quantile(COUNTS,.25),median=quantile(COUNTS,.50),
q75=quantile(COUNTS,.75),
q90=quantile(COUNTS,.90), q95=quantile(COUNTS,.95),
q99=quantile(COUNTS,.99) )
2008 May 02
1
Cant resolve Error Message
Hi,
Im having trouble creating the following graph. Here is my code:
library(plotrix)
library(prettyR)
female_improvement
<-read.table("C://project/graphs/gender/breakdown/gender-improvement/female-improvement.csv",
sep=",", header=TRUE)
barp(rbind(rep(length(female_improvement$gender),2),freq(female_improvement$reason)[[1]]),
ylab="22 Males participated in the
2006 Aug 04
1
prettyR arrives
Hi all,
I have finally gotten the prettyR package going (many thanks to Kurt
Hornik for his patience).
prettyR is a set of functions that allows the user to produce HTML
output from R scripts. Given an R script that runs properly, an HTML
listing complete with embedded graphics can be produced simply by
passing the script to the core function htmlize (Phillipe Grosjean has
not only offered
2009 Feb 12
1
Latex or html output for freq() in prettyR
Hi Everybody
I need to create a lot of frequency tables with frequencies and percentages
(and cumilative freq and % as well) for a report. freq() in prettyR give
more or less what I need.
I am trying to export the result of freq() to html but the html doesn't look
look the console output.
See the following example
library(prettyR)
library(Hmisc)
x <- matrix(sample(1:3, 12,
2010 Jun 06
3
prettyR
Hi all,
does anyone have any practical examples of how this command can be used in prettyR?
add.value.labels(x,value.labels)
I mean, can we have the SPSS style of using numbers and/or labels if we want to?
Thank you for your time
Jason
Dr. Iasonas Lamprianou
Assistant Professor (Educational Research and Evaluation)
Department of Education Sciences
European University-Cyprus
P.O. Box 22006
2008 Jun 12
3
Problem with Freq function {prettyR}
Dear list,
I have a problem with freq from prettyR.
Please have a look at my syntax with a litte example:
library(prettyR)
#Version 1
test.df<-data.frame(q1=sample(1:4,8,TRUE), gender=sample(c("f","m"),8,TRUE))
test.df
freq(test.df) #No error message
#Version 2
test.df<-data.frame(gender=sample(c("f","m"),8,TRUE), q1=sample(1:4,8,TRUE))
test.df
2008 Oct 24
2
plotrix and prettyR
Hi folks,
Both plotrix and prettyR have been updated. plotrix now has the "Matlab"
style dotplot that was requested not long ago on the list, provided by
that intrepid duo, Barry Rowlingson and Rolf Turner. Mike Cheetham has
contributed an implementation of the Piper diagram, also in response to
a request. prettyR has finally learned how to display SPSS value labels
in the xtab and
2008 Feb 26
2
Custom LaTeX tables
Hello,
I am very happy that I have Sweave and R to write my
papers. But I still have to do some tables by hand
since I have not found out how I can customize the
latex tables produced by R further (I mainly use
xtable()). Like for instance, I have a table which
needs an extra row every few rows as a group header
and sometimes I want some extra horizontal lines in
the table and also a multicolumn
2009 Feb 13
2
odfWeave & prettyR
Hello,
I've been trying to use odfWeave and prettyR packages to create documents with both text and graphs, but so far I
haven't been very lucky...
With the function R2html () in prettyR package, when I try to use a source file, which works perfectly if I run it
directly form R using "source("file")",
it works for the first part and then it makes a mess, i guess
2008 Apr 03
1
prettyR 25% quartile, 75% quartile
I am using the describe function in prettyR. I would like to add the
25% 75% quartiles to the summary table
how do I do this
I have tried
describe(x.f, num.desc=c("mean", "median", "sd", "min", "max",
"skewness", "quantile(x.f, na.rm=T, probs=seq(0.25, 0.75))",
"valid.n"))
help
--
Let's not spend our time
2008 Feb 15
12
Transfer Crosstable to Word-Document
# Dear list,
# I am an R-beginner and
# spent the last days looking for a method to insert tables produced
# with R into a word document. I thought about SPPS: copy a table from
# an SPO-file and paste it into a word document
# (if needed do some formatting with that table).
# Annother idea was, to produce a TEX-file,
# insert it and make it a word-table.
# I found the following libraries, which
2008 Mar 17
8
Table of basic descriptive statistics like SPSS
Dear list readers,
I want to:
1. Get a table of basic descriptive statistics for my variables
with the variable names one below the other
like SPSS descriptive statistics:
Varname N Min Max Mean SD
xxxx x x x x x
xxx x x x x x
....
2. Delete some variables from a data frame or exclude variables
from beeing analyzed.
3. Create a text file / redirect the terminal output to a
2009 Dec 11
2
Frequency tables.
Hi All,
I'm a SAS user but I'm very much interested in learning R.
I use ODS system in SAS to make nice frequency tables. Is it possible to
export the output of table() [in TABULAR FORM]? So, that I can use those
directly for publications? Thank you.
# R Code:
library(datasets)
Orange
summary(Orange) # outputing this, not as it is, but in table for. is it
possible?
~Kim
[[alternative
2008 Aug 25
3
Maintaining repeated ID numbers when transposing with reshape
I have a dataset in "long" format that looks something like this:
ID TEST RESULT
1 A 17
1 A 12
1 B 15
1 C 12
2 B 8
2 B 9
Now what I would like to do is transpose it like so:
ID TEST A TEST B TEST C
1 17 15 12
1 12 . .
2
2012 Nov 12
3
select different variables from a list of data frames
Hi:
How do I select different variables from a list of data frames.
I have a list of 13 that looks like below. Each data frame has more variables than I need. How do I go through the list and select the variables that I need.
In the example below, I need to get the variables "a", and "q10" and "q14" to be returned to two separate data frames.
Thank you.
Yours, Simon
2008 Nov 06
0
new plotrix and prettyR
Hi all,
I'm noting the appearance of new versions of plotrix and prettyR as I
found a bug in the "brkdn" function that messed up the order of
"value.labels" if they had been imported from an SPSS data file. For
anyone using "brkdn", please upgrade to the new version of prettyR
(1.3-5) if you are importing SPSS data files. If anyone discovers other
problems,
2018 Jul 24
2
oddity in transform
The idea is that one wants to write the line of code below
in a general way which works the same
whether you specify ix as one column or multiple columns but the naming entirely
changes when you do this and BOD[, 1] and transform(BOD, X=..., Y=...) or
other hard coding solutions still require writing multiple cases.
ix <- 1:2
transform(BOD, X = BOD[ix] * seq(6))
On Tue, Jul 24, 2018 at
2002 Dec 21
4
had a thought on peeling last night
I was up late last night, and i had a thought on peeling that would probably provide 100% accurate peeling data to a decoder, but take a maximum of 1101 times normal time to encode (taking into account the range from q-1 to q10 ).
ay you want to encode a track at q10, but you want it to be peelable.
the 1101 encoder would encode from the source at every quantifiable level (since there are 2