Displaying 20 results from an estimated 122 matches for "prettyr".
Did you mean:
pretty
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...
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, replace=TRUE), nrow=3, dimnames=list(c('A','B',
'...
2008 Jul 23
4
Using PrettyR to produce LaTeX output
Hello everyone. I am new to R, so please bear with me. I am trying to find
an easy way to export descriptive statistics and other information about my
data frame to a LaTeX format.
I have found the describe function in PrettyR to be very helpful in
producing results in the exact format I'm looking for. However, the value
of the describe function is a LIST (rather than a data frame) which I am
then unable to convert to LaTeX using the xtable package or the latex
function of Hmisc. When I try to convert the list to a...
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...
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. B...
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...
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 firs...
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))",
"v...
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 disc...
2012 Jul 11
4
MODE , VARIANCE , NTH PERCENTAILE
Hi,
Here i have an matrix like this,
ABC PQR XYZ MNO
------ ------- ------ --------
3 6 7 15
2 12 24 15
20 5 1 2
25 50 15 35
i need to get the
"MODE" - for each column-wise
"VARIANCE" - for
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 survey&qu...
2008 Jun 19
1
PrettyR (describe)
...rus", "Potassium", "Selenium",
"Silicon", "Sodium", "Sulfate", "TDS", "TIC", "TKN", "TOC", "TSS",
"TVSS", "Zinc"), row.names = 54:80, class = "data.frame")
library(prettyR)
library(moments)
Q25 <- function(x, na.rm=TRUE){quantile(as.numeric(x), 0.25, na.rm = na.rm,
names = FALSE)}
Q75 <- function(x, na.rm=TRUE){quantile(as.numeric(x), 0.75, na.rm = na.rm,
names = FALSE)}
describe(x.f, num.desc=c("mean", "median", "sd", "min&qu...
2018 May 01
2
how can I convert a long to wide matrix?
...ass = "factor"), SITE = structure(c(
1L,
1L, 2L, 1L, 2L), .Label = c("A", "B"), class = "factor")), .Names = c("ID",
"EventDate", "timeGroup", "SITE"), class = "data.frame", row.names = c(NA,
-5L))
library(prettyR)
stretch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE"))
ID timeGroup EventDate_1 EventDate_2 EventDate_3 SITE_1 SITE_2 SITE_3
1 id_X B1 9/8/16 9/9/16 9/15/17 A A B
2 id_Y B1 9/7/16 9/15/16 <NA>...
2007 Feb 08
1
Re : Re: setting a number of values to NA over a data.frame.
...> This is probably a simple problem but I don't see a
>> > solution.
>> >
>> > I have a data.frame with a number of columns where I
>> > would like 0 <- NA
>> >
>>
> Hi John,
> You might have a look at "toNA" in the prettyR package. Wait for version
> 1.0-4, just uploaded, as I have fixed a bug in that function.
>
> Jim
--
Olivier ETERRADOSSI
Ma?tre-Assistant
CMGD / Equipe "Propri?t?s Psycho-Sensorielles des Mat?riaux"
Ecole des Mines d'Al?s
H?lioparc, 2 av. P. Angot, F-64053 PAU CEDEX 9
tel...
2020 Oct 31
2
fast way to find most common value across columns dataframe
...nd is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sat, Oct 31, 2020 at 2:29 AM Jim Lemon <drjimlemon at gmail.com> wrote:
> Hi Luigi,
> If I understand your request:
>
> library(prettyR)
> apply(as.matrix(df),1,Mode)
> [1] "C" "B" "D" ">1 mode" ">1 mode" ">1 mode" "D"
> [8] "C" "B" ">1 mode"
>
> Jim
>
> On Sat, Oct 31, 2...
2020 Oct 31
0
fast way to find most common value across columns dataframe
...icking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
>
> On Sat, Oct 31, 2020 at 2:29 AM Jim Lemon <drjimlemon at gmail.com> wrote:
>>
>> Hi Luigi,
>> If I understand your request:
>>
>> library(prettyR)
>> apply(as.matrix(df),1,Mode)
>> [1] "C" "B" "D" ">1 mode" ">1 mode" ">1 mode" "D"
>> [8] "C" "B" ">1 mode"
>>
>> Jim
>>...
2016 Apr 26
0
How to print the frequency table (produced by the command "table" to Excel
Hi jpm miao,
You can get CSV files that can be imported into Excel like this:
library(prettyR)
sink("excel_table1.csv")
delim.table(table(df[,c("y","z")]))
sink()
sink("excel_table2.csv")
delim.table(as.data.frame(table(df[,c("y","z")])),label="")
sink()
sink("excel_table3.csv")
delim.table(as.matrix(table(df[,c...
2018 May 01
0
how can I convert a long to wide matrix?
Hi Marna,
Try this:
library(prettyR)
stretch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE"))
Jim
On Wed, May 2, 2018 at 8:24 AM, Marna Wagley <marna.wagley at gmail.com> wrote:
> Hi R user,
> I was trying to convert a long matrix to wide? I have an example and would
> like to get a...
2018 May 01
0
how can I convert a long to wide matrix?
...tructure(c(1L,
>
> 1L, 2L, 1L, 2L), .Label = c("A", "B"), class = "factor")), .Names = c("ID",
>
> "EventDate", "timeGroup", "SITE"), class = "data.frame", row.names = c(NA,
>
> -5L))
>
> library(prettyR)
>
> stretch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE"))
>
>
> ID timeGroup EventDate_1 EventDate_2 EventDate_3 SITE_1 SITE_2 SITE_3
> 1 id_X B1 9/8/16 9/9/16 9/15/17 A A B
> 2 id_Y B1 9/7/16...
2009 Nov 21
4
other decriptive stats packages
...a frequency/percent display for each value.
psych package - describe
item name
item number
number of valid cases
mean
standard deviation
median
mad: median absolute deviation (from the median)
minimum
maximum
skew (optional)
kurtosis (optional)
standard error
prettyR package - describe
numeric
name
mean
median
var
sd
valid.n
the above are the defaults - the user can specify the name(s) of any
function(s) as an argument to the function to customize the display.
factor
name
count for each value
percent for each value
modal value...