Displaying 3 results from an estimated 3 matches for "arrival4".
Did you mean:
arrival
2009 Dec 26
3
How to manipulate tables
I am sorry to be bothering the list so much.
I made a table of counts of flight arrivals by hour:
cnts=tapply(Arrival4,list(Hour),table). There are up to 15 arrivals in a
bin.
> cnts
$`0`
1 2 3 4 5 6 7 8 9 10 13
1 2 5 9 2 7 5 4 2 4 1
$`1`
1 2 3 4
3 2 2 1
$`2`
1 3
2 2
. . .
My first problem is how to get this table filled in with the 0 slots.
E.g., I want
$`0`
1 2 3 4 5 6 7 8...
2009 Dec 29
1
Effect of na.omit()
I had an NA in one row of my data frame, so I called na.omit(). But I do
not understand where that row disappeared to.
>fri=na.omit(fri)
> fri
Date.Only DAY Hour Min15 Quarter Arrival.Val Arrival4
1 09/05/2008 Friday 8 33 3 32 8
2 10/24/2008 Friday 21 86 4 28 7
3 10/31/2008 Friday 8 33 4 20 5
4 10/31/2008 Friday 8 34 4 20 5
5 10/31/2008 Friday 8 35 4...
2009 Dec 26
1
Why do histogram bars vary their width?
histogram(~(Arrival4) | as.factor(Hour), type="count",
breaks=16,ylab="Arrival Count",
xlab="Arrival Rate/4",main="Friday EWR A22R D22L Configiration",
layout=c(6,4), par.strip.text=list(cex=0.7))
Why do I get plots with different bar widths? See attached.
Thanks,
Jim Rome...