Displaying 9 results from an estimated 9 matches for "siegrist".
2011 Sep 07
4
sample within groups-slight problem
I want to sample within groups, and when a group has only one associated
number to just return that number.
If I use this code:
groups <- c(1, 2, 2, 2, 3)
numbers <- 1:5
tapply(numbers, groups, FUN = sample)
I get the following output:
> groups <- c(1, 2, 2, 2, 3)
> numbers <- 1:5
> tapply(numbers, groups, FUN = sample)
$`1`
[1] 1
$`2`
[1] 3 2 4
$`3`
[1] 2 3 5 1 4
2010 Feb 02
2
barplot y axis too short
Hello,
The function barplot automatically creates a y-axis that doesn't necessarily
cover the range of y-values to be plotted. I know how to manually create my
own y-axis so that it does cover the range, but I was wondering if there is
some parameter to change so that the scale of the y-axis is automatically
taller than the tallest bar.
I thought setting xpd=F would do it, since it says that
2010 Jan 29
1
apply function with grouped columns
...MeanByRowTraits
#But now to get the means for the rows by column groups is awkward
rotateData <- data.frame(t(MeanByRowTraits[2:5]))
colnames(rotateData) <- c(levels(rowFactor[,1]))
rotateData
#This is the kind of result I want in the end
aggregate (rotateData, colFactor[1], mean)
--
Jack Siegrist
Graduate Program in Ecology & Evolution,
and Department of Ecology, Evolution, & Natural Resources,
Rutgers University, New Brunswick, NJ 08901
2010 May 12
2
vectorize a power analysis?
We are doing a power analysis by generating noisy data sets according to a
model, fitting the model to the data, and extracting a p-value. What is the
best way to do this many times? We are just using for loops and it is too
slow because we are repeating the analysis for many parameterizations. I can
think of several ways to do this:
for loop
sapply
using the plyr package
using the lme4 package
2003 Oct 12
6
SIP phone
I have a Cisco 7940
when you call in from outside and dial the Cisco phone extension I get
this
Read_channel ## vpb/1-3: Setting record mode, bridge = 0
WARNING[18451]: File chan_sip.c, Line 1111 (sip_write): Asked to
transmit frame
type 8, while native formats is 4 (read/write = 4/4)
== Spawn extension (default, 1004, 1) exited non-zero on 'vpb/1-3'
-- hangup on vpb (vpb/1-3)
2009 May 27
1
contour lines on persp plot
Hello folks,
I am a beginner R user. I have been able to make a 3D surface plot using
'persp'. The surface is made by a grid of lines emanating perpendicularly
from each of the x and y axes at regular intervals.
I can get rid of that grid by setting 'border=NA'.
Can anyone suggest some ways to replace the grid with contour lines, to
create a 3-dimensional contour map?
Thanks
2009 Jun 01
1
installing sn package
...ars by multiple factors (Mike Lawrence)
74. alternative to built-in data editor (Jose Quesada)
75. no internal function "int.unzip" in R 2.9.0 for Windows
(Carson, John)
76. "Error: package/namespace load failed" (Rebecca Sela)
77. contour lines on persp plot (Jack Siegrist)
78. Re: Neural Network resource (Indrajit Sengupta)
79. Re: alternative to built-in data editor (Peter Dalgaard)
80. r-plot 2nd attempt (durden10)
81. R-beta: Re:Stats Seminar 18/02/98 (Roland Chariatte)
82. problem with cbind (kayj)
83. interpretation of the likelihood ratio test un...
2010 Feb 25
24
two questions for R beginners
* What were your biggest misconceptions or
stumbling blocks to getting up and running
with R?
* What documents helped you the most in this
initial phase?
I especially want to hear from people who are
lazy and impatient.
Feel free to write to me off-list. Definitely
write off-list if you are just confirming what
has been said on-list.
--
Patrick Burns
pburns at pburns.seanet.com
2009 May 27
0
invert axis persp plot
Hello folks,
Is there a way to invert the z axis in a 'persp' plot?
I tried using 'zlim=rev(range(z))', which would work with 'plot' but does
not work in this case.
Thank you for your help.