emis_grid allocates emissions proportionally to each grid cell. The process is performed by intersection between geometries and the grid. It means that requires "sr" according with your location for the projection. It is assumed that spobj is a Spatial*DataFrame or an "sf" with the pollutants in data. This function returns an object of class "sf".

emis_grid(spobj = net, g, sr, type = "lines", FN = "sum")

## Arguments

spobj A spatial dataframe of class "sp" or "sf". When class is "sp" it is transformed to "sf". A grid with class "SpatialPolygonsDataFrame" or "sf". Spatial reference e.g: 31983. It is required if spobj and g are not projected. Please, see http://spatialreference.org/. type of geometry: "lines", "points" or "polygons". Character indicating the function. Default is "sum"

## Note

When spobj is a 'Spatial' object (class of sp), they are converted into 'sf'. Also, The aggregation of data is done with data.table functions.