Displaying 6 results from an estimated 6 matches for "mdrennie".
Did you mean:
bdrenni
2010 Mar 17
3
Are loops handled differently in newer versions of R?
Hi gang,
I'm perplexed- I have some code that uses for() loops that works fine in
R version 2.8 on my mac, worked fine in version 2.8 on my old windows
machine, but doesn't work in version 2.10 on windows.
The loop implements a function over a data frame (code is included below).
In Mac (running version 2.8), the results of the loop are what I expect:
> p_unadj
[1] 0.034939481
2008 Jul 09
1
matplot help
Hi,
My question is how do I gain control over what values the X and Y axis show. Below is a sample plot I have made and want the X axis to represent a time vector with values taking the form Q1.60, Q2.60, Q3.60...Q1.90..etc...Currently the X axis starts with value 0 and increases by 1 through the end of the sample.
win.graph()
matplot(v.0,log.diff.v.6,type="l",lty=1, col=2,
2008 Jul 15
1
manipulating (extracting) data from distance matrices
Hi all,
Does anyone have any tips for extracting chunks of data from a distance matrix?
For instance, if one was interested in only a subset of distance
comparisons (i.e., that of rows 4 thru 6, and no others), is there a
simple way to pull that data out?
>From some playing around with an example (below), I've been able to
figure out that a distance matrix in R is stored as a single
2008 Jul 15
2
extracting elements from print object of Manova()
Hi there,
Does anyone know how to extract elements from the table returned by Manova()?
Using the univariate equivalent, Anova(), it's easy:
a.an<-Anova(lm(y~x1*x2))
a.an$F
This will return a vector of the F-values in order of the terms of the model.
However, a similar application using Manova():
m.an<-Manova(lm(Y~x1~x2))
m.an$F
Returns NULL. So does any attempt at calling the
2008 Jul 09
2
sorting a data frame by rownames
Hi there,
I'm sure there's an easy answer to this, and I can't wait to see it.
The question: is there an easy way to sort a data frame by it's row names?
My dilemma:
I've had to pull apart a data frame, run it through a loop to do some
calculations and generate new variables, and then re-construct the chunks
back into a data frame at the end.
Doing this preserves the row
2013 Jan 07
1
Changing mtext direction, or using text for the margin?
Hi all,
I have read through the archives, but can't find a solution to this problem.
I need the text direction on "dependent B", plotted in margin 4, to go
top to bottom (opposite what it is now). Here's some sample code:
#plot with mtext example
par(mgp = c(2,1,0), mfrow=c(2,2), las=1, mar=c(2,2,2,2), omi=
c(0.5,0.2,0,0.2))
a<-1:10
b<-7:16
c<-21:30
plot(a~b,