| 7.4.speed.em.code | R Documentation | 
Functions associated with Speed/Emissions terms.
#calculations
fitSpeedEm(em, time, speed, engine.on = NULL,
           data = NULL, method = 1, min.speed = 5,
           bin.size = NULL, ..., 
           fun.name="fitEmSpeed")
                       
#speed/emissions Plots
speedEmPlot(speed, em = NULL, time = NULL, 
         ..., data = NULL, engine.on = NULL,
         min.speed = 5, bin.size = NULL,  
         plot.type = 1, method = 1,
         fun.name="speedEmPlot")
| em,time,speed | (Typically pems.element vectors)  | 
| engine.on | (Optimal, single Numeric) The time the emission source, e.g. 
monitored vehicle engine, was started. If not supplied, this 
is assumed to be start of the supplied  | 
| data | (Optional, typically  | 
| method | (Optinal, Numeric) The method to use when calculating 
and binning data: method  | 
| min.speed | (Optinal, Numeric) measurements when speeds were less than 
this value are exluded, default value  | 
| bin.size | (Optinal, Numeric) The data binning scale to use. For 
 | 
| ... | (Optional) Other arguments, currently passed on as supplied to associated calculation or plotting function, or back to pemsPlot. | 
| fun.name | (Optional character) The name of the parent function, to be used in error messaging. | 
| plot.type | (Optional numeric) For  | 
fitSpeedEm builds a speed and g/km emissions 
data sets for the supplied emissions, speed and 
time-series data. 
speedEmPlot generates a plot of one or more 
data set generated by fitSpeedEm. 
fitSpeedEm generates a speed/emissions contribution 
report as a pems dataset. 
speedEmPlot generates a speed/emissions contribution 
report as a lattice plot. 
Regarding engine.on: This is specifically the time 
the engine is turned on rather than the row of data set 
where this happens. In some cases, they are same, e.g. when 
the data is logged at a regular 1-Hz and data capture is 
complete. 
Regarding method: Method 1 [Doc further]. 
[Doc further]
(See References.)
Karl Ropkins
fitColdStart uses methods described in:
[COPERT on speed/emission terms]
[Ropkins speed/emissions]
See common.calculations (and 
checkUnits and 
convertUnits) for details of data management.
###########
##example 1 
###########
#basic usage
#to do/maybe not run... time to compile...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.