Learn R Programming

eixport (version 0.4.0)

sfx_explode: splits line by vertex

Description

sfx_explode splits line by vertex

Usage

sfx_explode(x, ...)

Arguments

x

spatial lines.

...

ignored

Value

spatial lines

Examples

Run this code
# NOT RUN {
{
# Do not run
data(emisco)
emisco <- emisco[1:100, "V8"]
dfco <- sfx_explode(emisco)
etm <- to_munich(sdf = dfco)
names(etm)
class(etm)
head(etm$Emissions)
head(etm$Street)
write.table(x = etm$Emissions, file = paste0(tempfile(), "_Emissions.txt"),
row.names = FALSE, sep = " ", quote = FALSE)
write.table(x = etm$Street, file = paste0(tempfile(), "_Street.txt"),
row.names = FALSE, sep = " ", quote = FALSE)
}
# }

Run the code above in your browser using DataLab