similar to: How to select a row from one dataframe that is "close" to a row in another dataframe

Displaying 20 results from an estimated 100 matches similar to: "How to select a row from one dataframe that is "close" to a row in another dataframe"

2010 Apr 16
6
bwplot puts the bars in the wrong place
Dear R-Help, With the attached data set, I am still getting incorrect bwplots > xyplot(gdf$tt~gdf$OnHour |gdf$Runway, data=gdf) # Is correct > bwplot(gdf$tt~gdf$OnHour |gdf$Runway, data=gdf, horizontal=FALSE) # Puts the boxes on the wrong x-axis values # look especially at 0 and 3. How do I fix this? What is happening? Thanks, Jim Rome
2010 Feb 01
3
merging data frames gives all NAs
Dear kind R helpers, I have a vector of runway names in rwy ("31R", "31L",... the number is user selectable) arrgnd is a data frame with data for all flights and all runways, with a Runway column. I am trying to subset arrgnd into a dat frame for each selected runway, and then combine them back together using the following code: for (j in 1:nr) { # nr = number of
2010 Mar 20
1
POSIXct conversion stops part way through a df column
I have a date/time imported from Excel in my dataframe oooi (with several hundred thousand rows), for example the input data near row 3100 is ActualOnLocal 11/12/2008 21:35 11/12/2008 22:03 11/12/2008 22:12 11/12/2008 22:38 11/12/2008 23:16 11/12/2008 23:23 11/13/2008 7:00 11/13/2008 7:03 11/13/2008 7:05 11/13/2008 7:11 I want to convert the column to POSIXct oooi$dpt <-
2011 Jun 07
2
ggplot2 and facet
I have a data frame (attached) that has interpolated EOT errors for each minute before flight landing. It also has the runway and an index for the flight: > > times[1:4,] time error runway flight 1 0 -0.02206235 04R 1 2 1 -0.07961631 04R 1 3 2 -0.13795380 04R 1 4 3 -0.20726073 04R 1 > > sapply(times, class) time error
2011 Jun 08
3
How to suppress factor labels
I am using ggplot2 to make a boxplot that overlays a scatterplot: pp = qplot(time, error, data=times, size=I(1), geom="jitter", main=title, ylab="Error (min)", xlab="Time before ON (min)", alpha=I(1/10), color=times$runway, ylim=c(-30,40)) pp2 = pp + with(times, facet_wrap(~ runway, ncol=2)) print(pp2 + geom_boxplot(alpha=.5,
2011 May 25
2
Importing fixed-width data
I have a data set where the lines look like: 2011-05-13 00:00:00 EONAAL330 dfa13002516PSCNONA 2011-05-13 00:00:01 EONAAL223 laa13044510AS.NONM Some lines are missing the field before and after the NON: 2011-05-13 00:00:05 EONBHS229 mia13001621NON I read them into R using df = read.fwf(file, widths=c(19,-4,7,3,8,2,1,3,1),
2010 Apr 09
2
How to use tapply for quantile
I am trying to calculate quantiles of a data frame column split up by two factors: # Calculate the quantiles quarts = tapply(gdf$tt, list(gdf$Runway, gdf$OnHour), FUN=quantile, na.rm = TRUE) This does not work: > quarts 04L 04R 15R 22L 22R 27 32 33L 33R 0 NULL Numeric,5 NULL Numeric,5 NULL Numeric,5 NULL Numeric,5 NULL 1 NULL
2011 Aug 27
2
Am having trouble calling a function
In my main R program, I have source("retaanalysis/Functions/doAirport.R") .... stuff to read data and calculate ads sapply(ads, function(x) {doAirport(x, base)} ) And doAirport has # analyze the flights for a given airport doAirport = function(df, base) { # Get rid of unused runway factor levels (from other airports) df$lrw <- drop.levels(df$lrw) # In gdata package #
2006 May 19
2
system of tab
Hello, I would like to create a system of tab by means of Ajax (like in netvibes). Somebody would have a track(runway). A library to be used.... Thank you in advance.
2011 Jun 10
1
Double x grid in ggplot2
I am trying to overlay raw data with a boxplot as follows: pp = qplot(factor(time, levels=0:60, ordered=TRUE), error, data=dfsub, size=I(1), main =" title", ylab="Error (min)", xlab="Time before ON (min)", alpha=I(1/10), ylim=c(-30,40), geom="jitter") + facet_wrap(~ runway, ncol=2) +
2011 Jul 17
1
How to speed up interpolation
df is a very large data frame with arrival estimates for many flights (DF$flightfact) at random times (df$PredTime). The error of the estimate is df$dt. My problem is that I want to know the prediction error at each minute before landing. This code works, but is very slow, and dominates everything. I tried using split(), but that rapidly ate up my 12 GB of memory. So, is there a better R way of
2010 Jan 16
3
Comparing dates in dataframes
I have two data frames. One (arr) has all arrivals to an airport for a year, and the other (gw) has the dates and quarter hour of the day when the weather is good. arr has a Date and quarter hour column. >names(arr) [1] "Date" "weekday" "hour" "month" "minute" [6] "quarter" "ICAO"
2014 Sep 25
1
Forwarding in switch mode
Dear all, I like tinc and am using it widely in the company I work for. Currently I'm experimenting with 'switch' mode & have a problem with packets being forwarded. I've tried possible combinations with next parameters: a) Broadcast = direct b) Forwarding = kernel c) DirectOnly = yes From the documentation, it looks like (a) should be enough to stop packet forwarding
2010 Apr 01
2
pdf files in loops
I need to make a bunch of PDF files of histograms. I tried gatelist = unique(mdf$ArrivalGate) for( gate in gatelist) { outfile = paste("../", airport, "/", airport, "taxiHistogram", gate, ".pdf", sep="") pdf(file = outfile, width = 10, height=8, par(lwd=1)) title=paste("Taxi time for Arrival Gate", gate, "by
2010 Apr 20
0
Fwd: Re: bwplot puts the bars in the wrong place
Peter, that finally worked. hrs = seq(1, 24, 1) g = bwplot(tt~OnHFact |Runway, data=gdf, ylab="Taxi time (min)", main=title, xlab="Hour of day", par.strip.text=list(cex=0.7), rot=90, xlim=c(0, 25), drop.unused.levels=FALSE, scales=list(x = list(rot=90, cex=.6 ,at=hrs, labels=hrlabs )), panel =
2003 Dec 16
16
mailing list for basic questions - preliminary sum up
Dear R-user, I already received quite a lot of replies to this mail and like to do a preliminary sum up. A few were sceptical about the use of such a beginner mailing list. The arguments were that people starting with R will only stay subscribed for a short time until they reached the R-help "level" and therefore only beginner will teach beginner how to use R. But as far
2009 Feb 24
44
Motherboard for home zfs/solaris file server
Hello, I am building a home file server and am looking for an ATX mother board that will be supported well with OpenSolaris (onboard SATA controller, network, graphics if any, audio, etc). I decided to go for Intel based boards (socket LGA 775) since it seems like power management is better supported with Intel processors and power efficiency is an important factor. After reading several
2006 Jan 25
0
Seeking Rails Developers in Bay Area (Marin County)
Hi There, We have a couple open positions for Rails developers in Marin County, just across from Golden Gate Bridge from San Francisco. For a variety of reasons, we''d prefer folks from a Java background, but mostly we need smart, agreeable, disciplined, and self-directed. Here''s the full job description. Please use the address at the end of the message rather than
2006 Mar 09
5
Newbie - Help Please
I am just getting off the ground with RoR. (actually just walking out to the runway) I want to setup a development / test environment as close to the production environment as possible except for OS (Win XP for Dev, Linux for Prod). I have Apache, MySQL, PhP installed and operating close enough to the production environment that all the PhP stuff I''ve done in the past seems to work
2010 Mar 23
2
Computer disappearing from browse list after a few minutes
Hi all! I am using samba server at the company i work. Samba version is: 2:3.2.5-4lenny9 Some settings: os level = 255 domain logons = no wins support = yes domain master = yes local master = yes preferred master = yes i have dhcp configured witch sends wins server address (this samba servers address) to all clients. After I (re)start samba within a minute or so all computer of our network