Displaying 20 results from an estimated 700 matches similar to: "Reshaping a dataframe with conditional summary of columns - apply or reshape?"
2007 Aug 30
2
Additions to xyplot (lattice)? - legend, ticks, axis label size, text
I have created an xyplot of a time series with the following code...
win.graph(width = 10, height = 7)
panel1 = function(x, y) {
panel.loess(x, y, lwd=2.5, span=0.5, col="gray")
panel.xyplot(x, y, pch=19, col="blue", cex=1.25)
}
xyplot(oneplusdensity ~ year, data=figdata, aspect="fill", cex=1.5,
xlab=NULL, ylab=expression("Crabs per
2010 Apr 08
1
texi2dvi runs but produces no output
I am working on a Windows XP machine with R 2.10.1 and a recent
installation of MiKTeX 2.8. I use LyX (www.lyx.org) to write documents
and have it set up to run Sweave, Stangle, and make the PDF through R
using a batch script and a MakeSweave.R file. This system worked just
fine until I ran some MiKTeX updates yesterday. This is a bit
embarrassing as I helped produce a "How-to" guide to
2008 Feb 27
1
Label outliers in boxplot
Sorry if this is a stupid question, I'm a beginner and I didn't find help in manuals, archives, or web
I have a z matrix of this type:
a b c d
786-30.s2.gpr 0.2186214 1.3374486 89.37757 9.066358786-31.s1.gpr 1.0931070 1.3245885 81.37860 16.203704786-31.s2.gpr 0.5529835 1.3374486 86.43261 11.676955786-32.s1.gpr 0.6815844
2008 Mar 05
1
non-linear correlation
Hi all!
This is a rather statistical question;
Which effect sizes (parametric or not) could I use in order to estimate
the amount of non-linear correlation between 2 variables?
Is it possible to correct for auto-correlation within the correlated
times series?
Any suggestions for the appropriate packages/ functions are more than
welcome!!
Thank you!
[[alternative HTML version
2007 Dec 12
3
Adding data labels to Lattice plots
Hi,
I am new to lattice graphics and have the following question. I have a
dataframe d2:
cat PointsInTime MeanScore
1 Parent Intake 26.25000
2 Youth Intake 9.75000
3 Worker Intake 20.63636
4 Parent Discharge 24.00000
5 Youth Discharge 15.60000
6 Worker Discharge 23.90909
and to produce a plot I am using the following code
print(xyplot(MeanScore ~
2008 Jan 10
1
Entropy/KL-Distance question
Dear R-Users,
I have the CDF of a discrete probability distribution. I now observe a
change in this CDF at one point. I would like to find a new CDF such that
it has the shortest Kullback-Leibler Distance to the original CDF and
respects my new observation. Is there an existing package in R which will
let me do this ?
Google searches based on entropy revealed nothing.
Kind regards,
Tolga
2008 Jan 16
2
Own classes in "histogram"
Hi,
I try to make a histogram from a variable that contains the number of
shoots from about 1000 individuals from a specific plant species (the range is 1-110).
Those numbers are highly skewed to the right.
My question is: how can I make my own classes with the lattice
"histogram"?
I tried it with "breaks=c(0,5,10,15,20,25,110)" but my "25-110"-class is presented
2008 Mar 10
2
question for aov and kruskal
Hi R users!
I have the following problem: how appropriate is my aov model under the violation of anova assumptions?
Example:
a<-c(1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,3,3,3,3,3)
b<-c(101,1010,200,300,400, 202, 121, 234, 55,555,66,76,88,34,239, 30, 40, 50,50,60)
z<-data.frame(a, b)
fligner.test(z$b, factor(z$a))
aov(z$b~factor(z$a))->ll
TukeyHSD(ll)
Now from the aov i found that my model
2008 Mar 10
2
Tinn-R related problem
Greetings!
I have an issue with an R editor (namely Tinn-R). A few weeks ago all of a
sudden the backspace, enter and direction keys were not working. I updated
Tinn-R to the newest version but still no sollution. After this I tried
reinstalling it (prior to that I removed Tinn-R and deleted all the
"leftovers" manually) and still no change. In every other execution (e.g.
when I save a
2008 Sep 29
2
turning comma separated string from multiple choices into flags
Hello,
I use google docs' Forms to conduct surveys online. Multiple choices
questions are coded as comma separated values.
For example,
if the question is like:
1. What magazines do you currently subscribe to? (you can choose
multiple choices)
1) Fast Company
2) Havard Business Review
3) Business Week
4) The Economist
And if the subject chose 1) and 3), the data is coded as a cell in a
2007 Aug 08
2
FW: The trixbox Revolution Continues! Sign up for the Webinar.
Hmm beginning of the end of free trixbox by the sounds of it.
It was good while it lasted but time to download the latest iso while
it's still available by the sounds of it.
Regards,
Dean Collins
Cognation Pty Ltd
dean at cognation.net
<mailto:dean at cognation.net> +1-212-203-4357 Ph
+61-2-9016-5642 (Sydney in-dial).
________________________________
From: trixbox
2018 May 22
4
Using tryCatch in a for loop
Hi Bert,
Thank you for the quick response!?
In its current?state?the code?prints three lines that say "warning". What I was expecting is that I would?get?a matrix with 4 columns, 1. column names (from the original data, ex. Lake1) 2. breakpoint year 3. slope 4. slope difference from the first to the?second segment of the segmented regression. Each row in the matrix would be the results
2018 May 22
0
Using tryCatch in a for loop
On 5/22/2018 11:32 AM, Bailey Hewitt wrote:
> Hi Bert,
>
> Thank you for the quick response!
>
> In its current?state?the code?prints three lines that say "warning". What I was expecting is that I would?get?a matrix with 4 columns, 1. column names (from the original data, ex. Lake1) 2. breakpoint year 3. slope 4. slope difference from the first to the?second segment of
2018 May 22
2
Using tryCatch in a for loop
Data and code as promised:
#Creating a test dataset
Year<- c(2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014)
Lake1<- c(2, 4, 5, 2, 1, 1, 2, 3, 4, 5, 6, 2, 3, 1, 2)
Lake2<- c(1, 3, -1, 4, -2, 1, 2, 3, 4, 5, 6, 2, 3, 1, 2)
Lake3<- c(1, 2, 5, -3, 1, 1, 2, 3, 4, 5, 6, 2, 3, 1, 2)
Lake4<- c(1, 1, 1, 1, 1, 1, 1, 250, 240, 240, 240, 240, 240, 239,
2005 Aug 10
2
Samba3 server tries to sync WINS with itself and fails
I have a Samba 3 server that is trying to sync with itself. I have
wins support = yes in the samba configuration file and there are no
other WINS servers on the network.
The IP address of the Samba server is 192.168.10.4 and is trying to
sync with itself but fails...
Here's the error from log.nmbd
[2005/08/10 12:34:21, 0] nmbd/nmbd_nameregister.c:register_name_response(130)
2018 May 22
0
Using tryCatch in a for loop
No. If your ouput is a numeric "matrix", it cannot include alpha. Columns
in a data frame can be of different classes, but each column must be single
class.
and finally, of course, see ?cat -- I think you are misusing it. If you
simply want to return "somestuff", your function should be:
function(w) {"somestuff"}
not
function(w) {cat("somestuff")}
As
2018 May 22
3
Using tryCatch in a for loop
Hello All,
I have been trying to use a for loop to run segmented regressions (from?R package segmented)?on many columns of data in a data frame with the end goal of writing a new file with the following columns: column title, breakpoint year, slope, and difference in slope. Unfortunately, when one of the columns doesn't have a breakpoint the code stops and provides?an error or warning. I
2017 Nov 13
19
[Bug 103721] New: Frequent freezes with nouveau on Thinkpad P50
https://bugs.freedesktop.org/show_bug.cgi?id=103721
Bug ID: 103721
Summary: Frequent freezes with nouveau on Thinkpad P50
Product: xorg
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: nouveau at
2018 May 22
0
Using tryCatch in a for loop
Others may have greater insight, but my response is: Exactly what did or
didn't happen that makes you say the code didn't work? That is, what did or
didn't you get when you ran it compared to your expectations?
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in
2013 Mar 19
1
Error when adding lines to a plot using the mixed-effect model and metafor package
Hi,
I am a student using R for my final year project, with the metafor package being particularly helpful. I have been following the steps laid out in the manual 'Conducting Meta-analysis in R with the Metafor package' (Viechtbauer, 2010) and applying it to my own data of infected Anopheles mosquitoes across Africa.
In particular, I am attempting to apply a mixed-effect model to my data