Displaying 20 results from an estimated 30000 matches similar to: "Frequency tables without underlying data"
2006 Sep 15
1
Table manipulation question
I have a table:
C1
RowName1 3
RowName2 2
and another table:
C2
RowName1 5.6
RowName1a 4.3
RowName2 NA
I want to join join the tables with matching rows:
C1 C2
RowName1 3 5.6
RowName2 2 NA
I'm thinking of something like:
2006 Oct 22
2
Key colour problem with lattice plot
Hi,
I seem to have a key colour problem with a lattice barchart. The colours on my
key rectangle don't match the colours on the barchart.
Here is my data frame:
"LandFill" "Ruminants"
"United States (USA)" 7777.21428 5528.16
"France" 200.527083 1299.87
"Australia" 185.878368 2448.17
"Russian Federation" 1752.8334 2024.29
2002 Sep 14
2
OT: Compiling EMMIX
Sorry for the off-topic post, but there is such a wealth of knowledge here
that I thought someone might have suggestions.
Geoff MacLachlan and David Peel have a program - EMMIX - available for
mixture modelling. It is only available as FORTRAN source code and is
"downloadable" from Geoff's site. The code is reputed to run on Unix
machines and is compilable according to
2011 Feb 18
2
xyplot formula
df=data.frame(country=c("A","A","A","B","B","B"),
food=rep(c("Apples","Pears","Bananas"),2),
X2000=c(4,5,6,7,6,8),
X2001=c(4,5,6,7,6,8),
X2002=c(4,5,6,7,6,8),
X2003=c(4,5,6,7,6,8));
I have data in the above form trying to get a plot of each fruit over time
year conditioned on country and
2008 Mar 10
3
A stats question -- about survival analysis and censoring
Dear UseRs,
Suppose I have data regarding smoking habits of a prospective cohort and wish
to determine the risk ratio of colorectal cancer in the smokers compared to
the non-smokers. What do I do at the end of the study with people who die
of heart disease? Can I just censor them exactly the same as people who become
uncontactable or who die in a plane crash? If not, why not?
I'm thinking
2011 Mar 13
1
install.packages & reshape failure
I'm not sure where I should send this, I don't have a bugzilla account,
but ... it concerns an interaction between library(reshape) and
install.packages() ...
My current .Rprofile includes: library(reshape)
After which install.packages fails ... e.g.,
> install.packages("quantreg")
Warning in install.packages("quantreg") :
argument 'lib' is missing:
2008 Apr 16
1
transposition problem
Hi use Rs,
I have a csv file:
"1989-90","1990-91"
Barley,23,34
Oats,15,16
Which I want to turn into:
year, Barley, Oats
1 "1989-90", 23, 15
2 "1990-91",34,16
Transpose doesn't quite do it, is there a standard way?
Cheers,
Geoff Russell
2007 Feb 11
1
Graphics driver test script?
Hi,
1. I started work on a metapost graphics driver a week or so ago and it is
gradually taking shape. I'm building up my own test cases into a
script as I go, but
figured you may have a "canonical testing script" of cases a driver must handle?
2. The clipping function looks like being a tricky problem. It seems
to me that the
callers of the driver assume that clipping affects all
2006 Oct 28
1
What determines the order of rows in a lattice barchart?
Hi,
What determines the order of the rows in a barchart?
Cheers,
Geoff.
Here is my code, and the data follows. If I have z in alpha order, the
barchart is in
some order I can't determine. I originally tried
rownames(twater)~twater$Cat, but the
chart wasn't in rownames(twater) order either.
library(lattice)
twater<-read.csv("totalwater.csv",strip.white=T)
2006 Sep 03
2
Running cox models
Hi,
I'm reading van Belle et al "Biostatistics" and trying to run a cox test using
a dataset from:
http://faculty.washington.edu/~heagerty/Books/Biostatistics/chapter16.html
(Primary Biliary Cirrhosis data link at top of the page),
I'm using the following code:
--------------- start of code
library(survival)
liver <-
2006 Jan 12
9
winbind without localuser account
Paul Matthews wrote:
> hi there,
>
> i'm trying to get my winbind working without having a local account
> on the machine, but it's just not working for me
>
> can someone show me an example of a pam module that requires only a
> Active directory password.(i'm working with /etc/pam.d/dovecot)
>
> i can use my AD password as long as i have a local
2006 Sep 20
1
Stats question - cox proportional hazards adjustments
Hi useRs,
Many studies of the link between red meat and colorectal cancer use
Cox proportional
hazards with (among other things) a gender covariate.
If it is true that men eat more red meat, drink more alcohol and smoke more than
women, and if it is also true that alcohol and tobacco are known risk
factors then why does
it make sense to "adjust" for gender? I would think that in this
2006 Oct 27
1
barcharts with 2 different axes
Dear UseRs,
I'm having trouble drawing a barchart with 2 quantities in different units
as follows with
one unit on the top axis and the other unit on the bottom. E.g.,
x Tonnes | .
. .
Row 1 Tonnes1 | xxxxxxxxxx
Row 1 Litres1 | yyyyyyy
Row 2 Tonnes1 | xxxxxxxxxxxxxxxxxxxxx
Row 2 Litres1 | yyyyyyyyyyyyyyyy
2004 Aug 06
2
Low frequency feedback?
On Wed, 28 May 2003, Devin Campbell wrote:
> I'm having a rather strange problem with what sounds like low frequency
> feedback in my stream.
I have to say that I'm not hearing it. I am hearing what sounds a bit like
low level distortion sometimes, but I'm not familiar with the material so
it might be meant to sound like that. I'm certainly not hearing what I'd
2010 Oct 06
3
tapply output
Hello, I am having trouble getting the output from the tapply function
formatted so that it can be made into a nice table. Below is my question
written in R code. Does anyone have any suggestions? Thank you. Geoff
#Input the data;
name <- c('Tom', 'Tom', 'Jane', 'Jane', 'Enzo', 'Enzo', 'Mary', 'Mary');
year <- c(2008, 2009,
2006 Jan 12
9
windows print migrator + "add printer command"
Hi all.
I was wondering if anyone had a successful exampel of using the "add
printer command" with cups so that the windows print migrator could be
utilised. Seeing as Jerry as spent time on this it would be a shame not to
know how to use it. ;-)
I'm guessing that it would be along the lines of:
add printer command = lpadmin option1 option2 && cupsaddsmb option1
but
2009 Oct 06
2
'persp' query
Hi All
I'm creating some 3-D plots using the function 'persp', and have a query regarding the ability to make changes to the label of the z-axis.
There are two things I would like to do. First, the default setting places the label a little close to the axis for my liking. Is there any way of moving the label? I've tried adjustments with 'mgp' in 'par', but
2011 Apr 12
2
bind mean to a df
Hello, I would like to take the mean of a column from a data frame and then
bind the mean back to the data frame. I can do this using the following
lines of code, but I am looking for a more elegant solution. Thank you very
much. Geoff
name <- c('Frank','Frank','Frank','Tony','Tony','Tony','Ed','Ed','Ed');
year <-
2004 Aug 06
2
Problem with streaming some mp3s (but not all)
So there is no way around having to re-encode them
all?
--Pritpaul
--- Geoff Shang <gshang@uq.net.au> wrote:
> Hi:
>
> My guess is that ices can't handle 16000 or 32000hz
> sampling rates. The
> 32kbps file is 22050hz and the 80kbps file is
> 32000hz. I couldn't get
> mpg123 to play test2 remotely, but lame defaults to
> 32000hz with 40kbps
> mono and
2002 Mar 21
4
ExitThread won't.
Okay, so with complete lack of any other ideas, I tried to
figure out what was wrong with my app (Proxomitron), which
is leaving unkillable processes around.
So I went into ExitThread, and added something like:
DPRINTF("%08lx:Exiting thread...(%d)\n", GetCurrentThreadId(),getpid());
exit(code);
right at the top of the function.
And, lo and behold, the processId matches the