search for: motorcycles

Displaying 20 results from an estimated 55 matches for "motorcycles".

Did you mean: motorcycle
2006 Jan 19
4
create an object from a string?
I''m trying to dynamically create an instance of an object at runtime, from a String. I have a method that returns one of a number of Strings ("Car", "Motorcycle", "Bicycle"), and when I receive the String, I then want to instantiate one of those objects. Seems like there should be a way to do it in Ruby, but maybe I''ve been up too long --
2017 Nov 09
4
weighted average grouped by variables
hi all I have this dataframe (created as a reproducible example) mydf<-structure(list(date_time = structure(c(1508238000, 1508238000, 1508238000, 1508238000, 1508238000, 1508238000, 1508238000), class = c("POSIXct", "POSIXt"), tzone = ""), direction = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L), .Label = c("A", "B"), class =
2017 Nov 09
1
weighted average grouped by variables
Hello, Using base R only, the following seems to do what you want. with(mydf, ave(speed, date_time, type, FUN = weighted.mean, w = n_vehicles)) Hope this helps, Rui Barradas Em 09-11-2017 13:16, Massimo Bressan escreveu: > Hello > > an update about my question: I worked out the following solution (with the package "dplyr") > > library(dplyr) > > mydf%>% >
2017 Nov 09
0
weighted average grouped by variables
Hello an update about my question: I worked out the following solution (with the package "dplyr") library(dplyr) mydf%>% mutate(speed_vehicles=n_vehicles*mydf$speed) %>% group_by(date_time,type) %>% summarise( sum_n_times_speed=sum(speed_vehicles), n_vehicles=sum(n_vehicles), vel=sum(speed_vehicles)/sum(n_vehicles) ) In fact I was hoping to manage everything in a
2017 Nov 11
0
weighted average grouped by variables
> On 9 Nov 2017, at 14:58, PIKAL Petr <petr.pikal at precheza.cz> wrote: > > Hi > > Thanks for working example. > > you could use split/ lapply approach, however it is probably not much better than dplyr method. > > sapply(split(mydf, mydf$type), function(speed, n_vehicles) sum(mydf$speed*mydf$n_vehicles)/sum(mydf$n_vehicles)) > gives you averages > The
2017 Nov 09
2
weighted average grouped by variables
Hi Thanks for working example. you could use split/ lapply approach, however it is probably not much better than dplyr method. sapply(split(mydf, mydf$type), function(speed, n_vehicles) sum(mydf$speed*mydf$n_vehicles)/sum(mydf$n_vehicles)) gives you averages aggregate(mydf$n_vehicles, list(mydf$type), sum)$x gives you sums Cheers Petr > -----Original Message----- > From: R-help
2015 Mar 28
2
samba4.2.0 crashes on connection attempt with an internal samba error...
Rowland Penny schrieb am 28.03.2015 10:30: > I do not understand how you managed to install libgnutls-dev in the > first place, when I try to install it, I get: Well, it has been about a year ago, when I installed my servers. And by then libgnutls-dev had been available without any problem. Maybe there are some remnants on the system - I frankly don't know. I will definitely try
2017 Nov 09
1
weighted average grouped by variables
Dear Massimo, It seems straightforward to use weighted.mean() in a dplyr context library(dplyr) mydf %>% group_by(date_time, type) %>% summarise(vel = weighted.mean(speed, n_vehicles)) Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team
2001 Jul 22
1
Just back in town
Hi folks, I've been out of twon for a few days (by motorcycle, net-less) and just got back into town tonight. I'll be catching up on email tomorrow. (OK, I know I'm more than a few days behind on email, but I'm still going to try ;-) Monty --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list,
2001 Jul 22
1
Just back in town
Hi folks, I've been out of twon for a few days (by motorcycle, net-less) and just got back into town tonight. I'll be catching up on email tomorrow. (OK, I know I'm more than a few days behind on email, but I'm still going to try ;-) Monty --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list,
2016 Jul 25
1
Xapian 1.4.0 released
Kevin writes: > Of course, I can fix it by myself and check every terms length, but > that will add more overhead to big data computing. How is the overhead different whether your code checks it or Xapian does? Best regards, Adam -- "Oh, we all like motorcycles, to some degree." Adam Sj?gren asjo at koldfront.dk
2011 Apr 21
0
[Calendar API] Beautiful new flash games here with pictures and wonderful commentary
...d X to jump        download   see       (brave_chicken(305.1 Kb      You are courageous chickens you collect fruit and vegetables, beverages and weapons without being afraid of ghosts use arrows and space               download  see     (chopperride.rar (2.5 Mb    You are driving a new motorcycles at the heart of the city is full of difficult slopes you need to override them and collect the stars and reach to the end use arrows                   download  see                    (curl-rush.rar  (5.5 Mb    You are a small cat tried to jump on the branches of trees to collect stars and ke...
2009 May 26
3
Still can't find missing data
I'm trying to prepare some cross tabs, looking at a number of variables against a variable "connector" which has 2 values: "OD Passenger" and " Connector". When I produce a xtabs one way I have observations under "Connector" but against a different variable "Connector" shows all 0 values. What is wrong? I've looked into the na commands
2009 Feb 19
1
How do I get xtabs to show missing data?
I presume the behavior below (no Connector values in the second table) is because I have na values in my dataframe. How do I get them to list? I found references to na.action and na.pass, but I could not figure out how I could use them with xtabs to list the na as a value. I'm sure there's a simple syntax I need, but it's not obvious to me. > # Weighted Data
2006 Jan 11
15
How to use custom url formats?
I''m new to Rails and am trying to use a field called "code" instead of "id" in my URLs. For example, assuming I''ve got a database of motorcycles makes where the codes are "Honda", "Yamaha", "Suzuki", and "Kawasaki", etc. To show the info about Honda I want to use this url: http://www.mysite.com/makes/honda/ instead of: http://www.mysite.com/makes/show/1/ I have a controller called makes_co...
2006 Aug 09
3
Rails 1.1.5: Mandatory security patch (and other tidbits)
We''re still hard at work on Rails 1.2, which features all the new dandy REST stuff and more, but a serious security concern has come to our attention that needed to be addressed sooner than the release of 1.2 would allow. So here''s Rails 1.1.5! This is a MANDATORY upgrade for anyone not running on a very recent edge (which isn''t affected by this). If you have a public
2019 Sep 25
4
Centos 8 Mate?
On 9/25/19 12:06 AM, Nicolas Kovacs wrote: > But on the desktop, I've switched to OpenSUSE Leap, and I'm a happy > camper now. I can highly recommend it. Sports every major and minor > desktop environment under the sun, and it's a nice blend of semi-rolling > releases based on a rock-solid SLES base. > Why do you need "every major and minor desktop environment
2010 Apr 04
1
How to add a column to dtm showing a part from directory source?
Hello Experts, I'm new with R and having troubles doing my graduation project.I have 20 subfolders including almost 20000 txt files.What i need to do is to create a dtm and add a column to it showing a "class" information of the txt files. My directory source is like "C:\\R\\20news-18828\\comp.graphics" for the comp.graphic subfolder.I need to take only
2012 Sep 06
1
use of ddply() within function
...) }} return(costaux_result) } Summarizing what it is supposed to do: * In previous step of our analysis, we have constructed a dataframe, CARaux. CARaux represents different cost categories (fuel prices, taxes, maintenance) etc for cars and motorcycles. The costs are differentiated according to the projection year ("YEAR") considered, the policy scenario considered ("SC") and the car type considered. * The function moncostcarmoto takes as only argument one of four possible aggregate cost types: "MONCOST_EXCLTAX&q...
2006 Jan 09
4
Switching databases in Rails v1.0 app
Hello, I need some guidance. I have a need to: a) Login, validating against a "system-level" user database - no big deal, then b) Depending upon the login, select a customer database for processing. For instance, assume that my login profile lists an area of interest: cars, motorcycles or boats. Each of these has a database, with identical table formats. If my login shows my area of interest to be boats, then I want to disconnect from the system-level database, and establish a connection to the boats database. At this point in time only the system-level database appears in th...