On Sep 9, 2015, at 11:52 AM, Nick Petschek wrote:
> Hi,
>
> I want to run frequency tables for multiple categorical variables, ideally
> one in %, and the other as a count, and am unsure how to proceed. I would
> like my output to be the following:
>
> | favorable | unfavorable | neutral
Hi,
I want to run frequency tables for multiple categorical variables, ideally
one in %, and the other as a count, and am unsure how to proceed. I would
like my output to be the following:
| favorable | unfavorable | neutral
Q1 | 80% | 10%| 10% |
Q2 | 70% |
Hi Liliana,
Try
> table(factor(x, levels = 0:10))
0 1 2 3 4 5 6 7 8 9 10
0 2 0 6 0 2 2 1 0 1 6
Also, see ?factor.
HTH,
Jorge
On Tue, Nov 23, 2010 at 10:29 PM, Liliana Pacheco <> wrote:
> Hi R users
> I want to make a table of frequencies to show how many times the numbe
Hi R users
I want to make a table of frequencies to show how many times the numbers
form 0 to 10 appear in a vector.
For example, if the vector is:
> x
[1] 5 10 3 5 10 10 3 6 10 1 10 3 7 1 10 3 6 9 3 3
In this case I want a table that will show that the zero has frequency 0,
the o
On Dec 11, 2009, at 10:48 PM, Kim Jung Hwa wrote:
Thank you David and Ista for your suggestions. I got the latex part.
But, this may be stupid, I got the html code using following
command, how
can I make use of it? Thanks anyways.
On my computer just copying that to a text editor and ope
Thank you David and Ista for your suggestions. I got the latex part.
But, this may be stupid, I got the html code using following command, how
can I make use of it? Thanks anyways.
temp<-xtable(summary(Orange))
print(temp, type="html")
Treeage circumference
1 3:7 M
There are a variety of packages that help format output using either
LaTeX or html. I've grown to prefer the latex() function in the Hmisc
packages, but you might also be interested in xtable (can output
either to LaTeX or html), R2html, or prettyR.
-Ista
On Fri, Dec 11, 2009 at 6:55 PM, Kim Jung
On Dec 11, 2009, at 6:55 PM, Kim Jung Hwa wrote:
library(datasets)
Orange
summary(Orange)
> library(xtable)
> xtable(summary(Orange))
% latex table generated in R 2.10.1 by xtable 1.5-6 package
% Fri Dec 11 21:39:50 2009
\begin{table}[ht]
\begin{center}
\begin{tabular}{rlll}
\hline
& Tree
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(Or
9 matches
Mail list logo