Displaying 20 results from an estimated 91 matches for "gallon".
Did you mean:
ballon
2006 Sep 06
3
plot axises on both sides of a graph
Usually the y-axis is shown on the left-hand-side of a graph, is it possible
to artifically creat one more y-axis on the right-hand-side in R? What is
the main reference? Thank you in advance.
[[alternative HTML version deleted]]
2007 May 05
3
Tell me why my Shoutcase handler sucks!
...39;s really short,
under 100 lines with comments.
Of course, this is just a really rough solution that I hacked together
to experiment with interfacing with broadcasting clients and audio
players. Anyway, here it is:
http://pastie.caboo.se/59073
Thanks,
-carl
--
EPA Rating: 3000 Lines of Code / Gallon (of coffee)
2009 Jan 02
7
the first and last observation for each subject
I have the following data
ID x y time
1 10 20 0
1 10 30 1
1 10 40 2
2 12 23 0
2 12 25 1
2 12 28 2
2 12 38 3
3 5 10 0
3 5 15 2
.....
x is time invariant, ID is the subject id number, y is changing over time.
I want to find out the difference between the first and last observed y
value for each subject and get a table like
ID x y
1 10 20
2 12 15
3 5 5
......
Is there any easy way to generate
2008 Nov 24
3
select a subset
I have the complete data like
id time censor
1 10 0
1 20 0
1 30 0
2 10 0
2 20 1
2 30 0
2 40 0
3 10 0
3 20 0
3 30 1
....
for id 1, i want to select the last row since all censor indicator is 0; for
id 2, i want to select the row where censor ==1; for id 3, i also want to
select the row where censor==1. So if there is a 1 for censor, then I want
to select such a row, otherwise I want to select the
2011 Feb 20
0
Extreme Values - Help with GPD function
Hi,
I'm a second year Master's student in Applied Statistics. I am doing a
project using average weekly U.S. regular gasoline prices (in cents,
per gallon) from an Excel file (from the years 1990- May 2010). I want
to find the probability that the average weekly U.S. regular gasoline
prices (in the long term) goes over 400 cents a gallon (or $4.00 a
gallon). I am using the extRemes program (in R), and I've already
uploaded my data, and fo...
2007 Jun 10
3
find position
find the position of the first value who equals certain number in a vector:
Say a=c(0,0,0,0,0.2, 0.2, 0.4,0.4,0.5)
i wish to return the index value in a for which the value in the vector is
equal to 0.4 for the first time. in this case, it is 7.
[[alternative HTML version deleted]]
2010 Apr 22
4
how to select the first observation only?
Dear r-helpers,
I have a very simple question. Suppose my data is like
id=c(rep(1,2),rep(2,2))
b=c(2,3,4,5)
m=cbind(id,b)
> m
id b
[1,] 1 2
[2,] 1 3
[3,] 2 4
[4,] 2 5
I wish to select the first observation for each id. That is, I want to
quickly select two rows:
id b
1 2
2 4
only. how should i do this?
[[alternative HTML version deleted]]
2007 Sep 13
4
how to plot shaded area under a curve?
say, I am plotting
x=seq(0,5,len=100)
y=-(x-5)^2
plot(x,y)
how can I put some color or verticle lines below the plotted curve?
[[alternative HTML version deleted]]
2007 Oct 01
4
how to plot a graph with different pch
...is in the legend.
I tried using the points command but this does not work. Is there
another command in R that would allow me to use different symbols and
colors for the points?
Thank you kindly.
data(mtcars)
plot(mtcars$wt,mtcars$mpg,xlab= "Weight(lbs/1000)", ylab="Miles per
Gallon")
mtcars$wt.cyl<-mtcars$wt[mtcars$cyl]
mtcars$mpg.cyl<-mtcars$mpg[mtcars$cyl]
points(mtcars$wt.cyl, mtcars$mpg.cyl, pch = 17, col = "red")
title("Motor Trend Data")
text(2,10,"LTR",cex=1.2,adj=0,col=3)
legend(4,30,c("4 cylinder","6 cylin...
2017 Dec 30
0
10 Minute Time Window Aggregate By Multiple Grouping Variables
...om simulation .Detailed info the column names
and attributes for clarity
1. id: alphanumeric factor/character
2. datetime.of.trip.start: POSIXct yyyy-mm-dd hh:mm:ss
3. datetime.of.trip.end: POSIXct yyyy-mm-dd hh:mm:ss
4. trip.distance: numeric, miles
5. trip.fuel.consumed: numeric, gallons
Close to 2500 trucks , simulated for a year with varying trip behavior.
This is what I am trying to accomplish 1. First, I want to create 10 minute
intervals from a chosen start date and end date from simulation, ex:
2011-03-30 00:00:00 to 2012-04-01 00:00:00 { approximately 8760 hours *
six, 10...
2007 Jan 27
3
how to handle a longitudinal data
i have a data set with repeated measures on same people, structure like
below:
id x1 x2 ...
001 10 20 ...
001 8 45 ...
001 4 2 ...
002 ....
002 ...
002 ....
002 ....
003 ....
.......
what is the easist way to show how many observations for each subject id?
[[alternative HTML version deleted]]
2013 Jul 04
2
how to choose dates data?
i have converted my data into date format like below:
> day=as.Date(originaldate,"%m/%d/%Y")
> day[1:5]
[1] "2008-04-12" "2011-07-02" "2011-09-02" "2008-04-12" "2008-04-12"
I wish to select only those observations from 2007 to 2009, how can I
select from this list?
[[alternative HTML version deleted]]
2007 Oct 21
2
finding paired values from common subjects -- vector operation?
I have two vectors for values collected from a group of subjects, say
a=c(100,200,150,120,140,180)
b=c(200,300,420,130)
I also have two vectors which indicate the corresponding subjects for a and
b, say
for a, the subjects are
suba=c(1,2,3,4,5,6)
for b, the subjects are
subb=c(1,3,5,6)
Then, I want to find out the paired values from a and b, such as (100, 200)
(from subject 1), (150,300)
2009 Sep 02
2
Howto fit normal curve into histogram using GGPLOT2
Currently, I am doing it this way.
x <- mtcars$mpg
h<-hist(x, breaks=10, col="red", xlab="Miles Per Gallon",
main="Histogram with Normal Curve")
xfit<-seq(min(x),max(x),length=40)
yfit<-dnorm(xfit,mean=mean(x),sd=sd(x))
yfit <- yfit*diff(h$mids[1:2])*length(x)
lines(xfit, yfit, col="blue", lwd=2)
But since, ggplot2 has more appealing graphics,
I wonder how can it b...
2007 Jul 27
3
Is mechanize thread safe?
...ng a strange error in protocol.rb when I run
a script that uses mechanize in a multi threaded fashion, but not with
a single thread.
I''m trying to write a spider that does multiple gets in parallel, but
it keeps puking when I thread it.
Thanks,
-carl
--
EPA Rating: 3000 Lines of Code / Gallon (of coffee)
2012 Jan 09
3
problem with R installation package
...;ve got the same message with R 2.14.1.
In the description file, I wrote in the "Depends" item R (>=2.10.0)
In the namespace file :
import("stats","graphics")
export(granstat,granplot)
Can you help me?
Regis
________________________________________
R?gis GALLON
Doctorant MNHN
Station Marine de Dinard
Centre de recherche et d'enseignement sur les ?cosyst?mes c?tiers
38 rue du Port Blanc, 35800 Dinard.
----------
PhD student
French national museum of natural history
Dinard Marine Station
Center for research and teaching on coastal ecosystem
38 rue du...
2007 Dec 19
3
plot cummulative sum from calendar time
I have the following list of observations of calendar time:
[1] 03-Nov-1997 09-Oct-1991 27-Aug-1992 01-Jul-1994 19-Jan-1990 12-Nov-1993
[7] 08-Oct-1993 10-Nov-1982 08-Dec-1986 23-Dec-1987 02-Aug-1995 20-Oct-1998
[13] 29-Apr-1991 16-Mar-1994 20-May-1991 28-Dec-1987 14-Jul-1999 27-Nov-1998
[19] 09-Sep-1999 26-Aug-1999 20-Jun-1997 05-May-1995 26-Mar-1998 15-Aug-1994
[25] 24-Jun-1996 02-Oct-1996
2007 Aug 24
4
Confirm email... (Giant-sized gifts, decor and props)
5-foot pencils? Gallon-sized coffee mugs? 10-pound chocolate bars?
Yes! Yes! Yes! And yes to dozens of other common objects in uncommonly BIG sizes!
That's what GreatBigStuff.com is all about!
Thank you for your interest in http://www.GreatBigStuff.com.
This message is to verify that you wish to have your email...
2008 Sep 08
2
ROC curve from logistic regression
I know how to compute the ROC curve and the empirical AUC from the logistic
regression after fitting the model.
But here is my question, how can I compute the standard error for the AUC
estimator resulting form logistic regression? The variance should be more
complicated than AUC based on known test results. Does anybody know a
reference on this problem?
[[alternative HTML version deleted]]
2012 Jul 01
4
geom_boxplot
Also, it is possible to change "ylim" also?
2012/7/1 li li <hannah.hlx@gmail.com>
> Dear all,
> I have a few questions regarding the boxplot output from the
> "geom_boxplot" function.
> Attached is the output I get. Below are my questions:
>
> 1. How can I define the xlab and ylab myself?
> Also I would like to remove