Displaying 20 results from an estimated 1000 matches similar to: "dplyr summarize by groups"
2004 Sep 29
6
displaying sample size in boxplots
Hi,
I was wondering if there is a ready made function or parameter
for indicating the sample size in boxplots?
Here's what I came up with so far:
library(ISwR)
data(energy)
attach(energy)
boxplot(expend~stature)
sample.size <- tapply(expend, stature, length)
sample.size <- paste("N=", sample.size, sep="")
mtext(sample.size, at=1:length(unique(stature)), line=2,
2004 Sep 26
2
Sweave: superfluous newline (`\\') in tex file
Hi,
I'm having trouble sweaving the following example:
--8<------------------------schnipp------------------------->8---
\documentclass{article}
\begin{document}
\SweaveOpts{echo=FALSE}
@
<<>>=
rm(list=c(ls()))
library(Hmisc)
library(ISwR)
data(energy)
energy$log <- log(energy$expend)
attach(energy)
@ %def
@
<<results=tex>>=
mysum <- summary(stature ~
2008 Nov 04
2
use abline() for regression model in the plot
http://www.nabble.com/file/p20332968/spe.dat spe.dat
Hi,
i have a problem in sorting out some command in R and i am really hoping
some expert can help me out please!
i have the spe.dat file which i upload here, and when u read into R u got
something like this:
A5 <- read.table('spe.dat' ,header=TRUE)
A5
EXPEND ECAB MET GROW YOUNG OLD WEST STATE
1 256 85.5 19.7 6.9 29.6
2008 Nov 10
1
plotting graph in different device
Hi,
i try to plot my graph into different device using x11(),
but when i do this comes up:
> x11(print(plot(A5e$ECAB,A5e$EXPEND,type='p',main='Per capita expenditure
> against economic
+ ability index without
outliners',xlab='ECAB',ylab='EXPEND',xlim=c(0,150),ylim=c(150,400),
+ col='red',col.axis='blue')))
NULL
Warning message:
2010 Sep 17
3
Combining Data Sets w/ Weights
Hello All,
I am still a beginner with R, and I only have a week or two under my belt so
far.
I'm working with NHANES anthropometric data on stature. I have two sets of
data that have different statistical weights. I'm trying to combine those
two data sets into one "mega-set" while retaining each data point's
individual weight.
If you have any idea as to how this is
2013 Jan 06
4
random effects model
Hi A.K
Regarding my question on comparing normal/ obese/overweight with blood
pressure change, I did finally as per the first suggestion of stacking the
data and creating a normal category . This only gives me a obese not obese
14, but when I did with the wide format hoping to get a
obese14,normal14,overweight 14 Vs hibp 21, i could not complete any of the
models.
This time I classified obese=1
2007 Jul 24
1
crimtab related question
Dear all,
the dataset documented under ?crimtab was also used in:
@article{TreloarAE1934,
title = {The adequacy of "{S}tudent's" criterion of
deviations in small sample means},
author = {Treloar, A.E. and Wilder, M.A.},
journal = {The Annals of Mathematical Statistics},
volume = {5},
pages = {324-341},
year = {1934}
}
The following is
2016 Jul 20
4
Geom_smooth
Default level = 0.95.
Does this mean +/- 0.025 from estimate?
[[alternative HTML version deleted]]
2024 Oct 17
6
JASP vs R
Colleagues,
Many of my colleagues come to me for a recommendation for statistical
software.
Since I am an R user, that's my typical answer.
Some colleagues of mine refuse to use it because of its steep learning curve
and lack of a GUI.
They wanted a statistical software that's free and that had a GUI.
I recently learned about JASP. See https://jasp-stats.org/ for more details
This may be
2017 Oct 11
2
data corruption - any update?
> corruption happens only in this cases:
>
> - volume with shard enabled
> AND
> - rebalance operation
>
I believe so
> So, what If I have to replace a failed brick/disks ? Will this trigger
> a rebalance and then corruption?
>
> rebalance, is only needed when you have to expend a volume, ie by
> adding more bricks ?
That's correct, replacing a brick
2005 Apr 14
3
Wrapping long labels in barplot(2)
I am using barplot, and barplot2 in the gregmisc bundle, in the
following way:
barplot2(sort(xtabs(expend / 1000 ~ theme)),
col = c(mdg7, mdg8, mdg3, mdg1), horiz = T, las = 1,
xlab = "$ '000", plot.grid = T)
The problem is that the values of 'theme', which is a factor, are in
some cases rather long, so that I would like to wrap/split them at a
space once they
2018 May 30
2
Filtering using multiple rows in dplyr
Hi Folks,
I have just started using dplyr and could use some help getting unstuck. It could well be that dplyr is not the package to be using, but let me just pose the question and seek your advice.
Here is my basic data frame.
head(h)
subject ageGrp ear hearingGrp sex freq L2 Ldp Phidp NF SNR
1 HALAF032 A L A F 2 0 -23.54459 55.56005 -43.08282
2012 Dec 28
3
help with reshaping wide to long format
Hi, Sorry, but how did you bring it out?
Thanks
On Fri, Dec 28, 2012 at 8:48 AM, arun kirshna [via R] <
ml-node+s789695n4654093h10@n4.nabble.com> wrote:
> Hi,
> bp.sub<- structure(list(CODEA = c(1L, 3L, 4L, 7L, 8L, 9L, 10L, 11L, 12L,
> 13L, 14L, 16L, 17L), C45 = c(NA, 2L, 2L, 2L, 2L, 1L, NA, 1L,
> 1L, 2L, 1L, 2L, 1L), ragek = c(3L, 3L, 3L, 4L, 4L, 3L, 3L, 3L,
> 3L, 3L,
2014 Nov 21
1
dplyr/summarize does not create a true data frame
I got an error when trying to extract a 1-column subset of a data frame (called "my.output") created by dplyr/summarize. The ncol() function says that my.output has 4 columns, but "my.output[4]" fails. Note that converting my.output using as.data.frame() makes for a happy ending.
Is this the intended behavior of dplyr?
Tx,
John
> library(dplyr)
> # set up data frame
2017 Oct 11
0
data corruption - any update?
Just to clarify as i'm planning to put gluster in production (after
fixing some issue, but for this I need community help):
corruption happens only in this cases:
- volume with shard enabled
AND
- rebalance operation
In any other cases, corruption should not happen (or at least is not
known to happen)
So, what If I have to replace a failed brick/disks ? Will this trigger
a rebalance and
2005 Jun 30
4
A Memoir on FastCGI and Apache
With the release of our filmfury.com project, I''ve been trying to
rise to the stature of a true system administrator in the last couple
of days (haha). I''m trying to understand how all of the pieces to
this apache/fastcgi deployment fit together.
Here''s what I''ve learned so far:
* You need a separate FastCGI server for each Rails application on
your
2019 Jun 04
3
Offer zip builds
On Mon, Jun 3, 2019 at 6:54 PM Marc Schwartz wrote:
> I am on macOS primarily, albeit, I have run both Windows and Linux routinely
> in years past.
With all due respect, then you have no business in this thread.
> That being said, these days, I do run Windows 10 under a Parallels VM on
> macOS, as I have a single commercial application that I need to run for
> clients now and
2002 Apr 26
4
Burn Out
I think that the time has come for me to back off a bit from my
involvement with Shorewall. I just don''t have enough cycles (or energy) to
keep up the pace of the last several months. As a consequence, I''m going
to do the following:
1. I''m going to stop personally supporting the entry level tools (samples
and quick start guide).
These tools are a source of constant
2023 May 02
5
Reg: Help regarding ggplot2
Dear All,
I have a dataset which contains date and 12 other countries data. I
have extracted the data as xts object.
I am not able to recall all the series in the Y axis. My data set
looks like this
index crepub finland france germany italy netherlands norway poland
<date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
2023 May 02
0
Reg: Help regarding ggplot2
Hi Thomas,
Thanks for your help. I need to plot all other countries as well.
Thanks for your time
With sincere regards,
Upananda
On Tue, May 2, 2023 at 3:01?PM Thomas.Rose <Thomas.Rose at daad-alumni.de>
wrote:
> Dear Upananda,
>
> I see a misplaced bracket in your code, and there is no need in aes() to
> call the dataframe explicitly. Does this work?
>
> ggplot(data =