search for: stations

Displaying 20 results from an estimated 4390 matches for "stations".

Did you mean: station
2006 Mar 07
4
should a AR object be able to see backwards?
I have two models, Stop and Station, they relate one station to many stops. Stop has_one :station Station belongs_to :stop So I can do @station.stops, but I cant do @stop.station, is this right? For example in the view I have: <% for @stop in @stops %> <tr> <td><%= @stop.station.name %></td> <td><%= @stop.time.hour.to_s + '':''
2012 Apr 12
1
correlation matrix between data from different files
...french R-user, and I have a problem about doing a correlation matrix. I have temperature data for each weather station of my study area and for each year (for example, a data file for the weather station N?1 for the year 2009, a data file for the N?2 for the year 2010, ....). So I have 70 weather stations with one data file per year since 2005. Each station has 4 temperature sensors. Each data file has exactly the same structure: date&hour, sensor1, sensor2, sensor3, sensor4. Here's an example: time sensor1 sensor2 sensor3sensor4 01/01/2008 00:00 -0.25 -2.43 -3.25 -2.3...
2012 Jul 18
2
duplicate data between two data frames according to row names
Hi everybody. I'll first explain my problem and what I'm trying to do. Admit this example: I'm working on 5 different weather stations. I have first in one file 3 of these 5 weather stations, containing their data. Here's an example of this file: DF1 <- data.frame(station=c("ST001","ST004","ST005"),data=c(5,2,8)) And my two other stations in this other data.frame: DF2 <- data.frame(statio...
2012 Apr 23
1
take data from a file to another according to their correlation coefficient
Hi everyone. I have a question about a work on R I have to do for my job. I have temperature data coming from 70 weather stations. One data file corresponds to one station for one year (so 70 files for one year). Each file looks like this (important: each file contains NAs): time data 01/01/2008 00:00 -0.25 01/01/2008 00:15 -0.18 01/01/2008 00:30 -0.25 01/01/2008 00:45 -0.25 (one column with dat...
2007 Jun 15
6
problem getting started with stubbing in rails controller specs
...message threads separate. Have you tried setting up your expectation before issuing the get statement? For example, take this out of the setup block: get ''index'', :locale => ''en'' and move it after: Station.should_receive(:find).with(:all).and_return(@mock_stations) I set-up inter-object expectations before exercising the controller action. Does this help? -Anthony PS: If you could be more specific about which concepts about mocks and stubs are confusing you, I''d be happy to try and help.l ---------- Hi, I am getting started with writing c...
2010 Apr 13
2
SNOM M9 base station A to base station B
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <small><font face="Helvetica, Arial, sans-serif">Hello,<br> <br> I have a question concerning SNOM M9 base station.<br> <br> If my customer places a SNOM M9 base
2017 Nov 29
0
dplyr - add/expand rows
...with an additional (data.table-based) solution. Enjoy! ;) Cheers, Denes -------------------------- ## packages ########################## library(dplyr) library(data.table) library(IRanges) library(microbenchmark) ## prepare example dataset ########### ## use Bert's example, with 2000 stations instead of 2 d_df <- data.frame( station = rep(rep(c("one","two"),c(5,4)), 1000L), from = as.integer(c(60,61,71,72,76,60,65,82,83)), to = as.integer(c(60,70,71,76,83,64, 81, 82,83)), record = c("A",&quot...
2017 Nov 28
2
dplyr - add/expand rows
...> To David W.'s point about lack of a suitable reprex ("reproducible >>> example"), Bill's solution seems to be for only one station. >>> >>> Here is a reprex and modification that I think does what was requested >>> for >>> multiple stations, again using base R and data frames, not dplyr and >>> tibbles. >>> >>> First the reprex with **two** stations: >>> >>> d <- data.frame( station = rep(c("one","two"),c(5,4)), >>>> >>> from = c(6...
2010 May 20
1
How could I restrict and reordered data.frames?
Dear Everyone, I 've just begun to use the library ncdf and I would like to compare meteorological observational data with forecast data, so to make verification. The netcdf files I'm using contain data of many different parameters in many different stations. I could read easily that I needed, but naturally I do not need the data of all the stations. On the other hand, the order of the stations is not the same in the observation files and in the forecast files. Let's take that I have a list of those stations (with station numbers) where I would l...
2017 Nov 29
2
dplyr - add/expand rows
...> > > -------------------------- > > > ## packages ########################## > > library(dplyr) > library(data.table) > library(IRanges) > library(microbenchmark) > > ## prepare example dataset ########### > > ## use Bert's example, with 2000 stations instead of 2 > d_df <- data.frame( station = rep(rep(c("one","two"),c(5,4)), 1000L), > ??????????????????? from = as.integer(c(60,61,71,72,76,60,65,82,83)), > ??????????????????? to = as.integer(c(60,70,71,76,83,64, 81, 82,83)), > ??????????????????? record = c...
2005 Jun 30
3
What Does Icecast Do
Hello, I have another question as to what we need to use with our stations, if Icecast is what we need. We will be simulcasting three stations through DSL. No one will be accessing this but our stations. We will put out our programming from the main office, hook up a computer at three stations to receive the feed and put it out on air. Then also we will be on the inter...
2012 Jan 17
1
error when extracting from a data frame
(As a noob to R, this is my first posting - yes yes, groans all around...) I'm trying to extract certain rows from a data frame. I used the following to import data from a CSV txt file. data <- read.table(file="data.txt", header=TRUE) when I do this, my attempt to extract the data rows only from where the Station value equals 1? data.station1 <- data[data$Station == 1]
2010 May 10
3
dbSendQuery with R variables
Rhelpers: I'd like to modify this RSQLite statement: rs_stations<-dbSendQuery(con_stations, "select * from stations") so that stations is actually an R variable, e.g.: stations=c("stationA","stationB") How would I modify the above statement to query from stations[[1]] (aka "stationA")? --j
2017 Nov 29
0
dplyr - add/expand rows
...>> >> >> ## packages ########################## >> >> library(dplyr) >> library(data.table) >> library(IRanges) >> library(microbenchmark) >> >> ## prepare example dataset ########### >> >> ## use Bert's example, with 2000 stations instead of 2 >> d_df <- data.frame( station = rep(rep(c("one","two"),c(5,4)), 1000L), >> from = as.integer(c(60,61,71,72,76,60,65,82,83)), >> to = as.integer(c(60,70,71,76,83,64, 81, 82,83)), >>...
2009 Feb 10
1
aggregate taking way too long to count.
Folks, I'm checking the structure of a dataframe for duplicate parameters at a site station (i.e depth should be measured once, not twice), using aggregate to count each parameter within a site station. The fake data below has only 26000 rows, and takes roughly 14 seconds. My real data has 750000 rows and I had to stop execution after about an hour. The by() function is faster, but I
2009 Mar 25
4
live audio feed via telephone link
I'm looking into costs and feasibility of moving a live feed from a FM radio station from the station to a point that's past the usable range of their radio signal. It's a rural location and Internet service is not available at the station. If the destination was closer or their transmitter was more powerful, I could avoid this step and just plug in a radio, but.... My best idea so
2008 Mar 11
4
Graphing question (multiple line graphs arranged spatially)
station month bas 190 5 0.000 190 7 1.563 190 10 0.000 190 11 0.000 202 4 18.750 202 5 18.750 202 7 6.250 202 10 4.800 202 11 3.125 198 4 18.750 198 5 31.250 198 7 3.125 198 10 3.200 198 11 12.500 205 4 0.000 205 5 0.000 205 7 0.000
2017 Nov 27
2
dplyr - add/expand rows
...er <bgunter.4567 at gmail.com> wrote: > To David W.'s point about lack of a suitable reprex ("reproducible > example"), Bill's solution seems to be for only one station. > > Here is a reprex and modification that I think does what was requested for > multiple stations, again using base R and data frames, not dplyr and > tibbles. > > First the reprex with **two** stations: > > > d <- data.frame( station = rep(c("one","two"),c(5,4)), > from = c(60,61,71,72,76,60,65,82,83), > to = c(60,70...
2018 Dec 17
1
Geoblocking on Icecast stations (radionomy)
Hi, I stumpled upon Icecast, but I effectively can only play few stations because somehow most of the stations that I'm interested in use the radionomy service. After some research I found out that I'm not the only one and that this company is blocking many countries worldwide: https://www.google.com/search?q=this+radio+station+is+not+available+in+your+country+si...
2012 Sep 26
5
create new column in a DF according to values from another column
Hi everyone, I have a small problem in my R-code. Imagine this DF for example: DF <- data.frame(number=c(1,4,7,3,11,16,14,17,20,19),data=c(1:10)) I would like to add a new column "Station" in this DF. This new column must be automatically filled with: "V1" or "V2" or "V3". The choice must be done on the numbers (1st column). For example, I would like