if (FALSE) {
data(net)
dpc <- c(seq(1,20,3), 20:10)
PC_E25_1400 <- my_age(x = net$ldv, y = dpc, name = "PC_E25_1400")
class(PC_E25_1400)
plot(PC_E25_1400)
PC_E25_1400sf <- my_age(x = net$ldv, y = dpc, name = "PC_E25_1400", net = net)
class(PC_E25_1400sf)
plot(PC_E25_1400sf)
PC_E25_1400nsf <- sf::st_set_geometry(PC_E25_1400sf, NULL)
class(PC_E25_1400nsf)
yy <- data.frame(a = 1:5, b = 5:1) # perfiles por categoria de calle
pro_street <- c("a", "b", "a") # categorias de cada calle
x <- c(100,5000, 3) # vehiculos
my_age(x = x, y = yy, pro_street = pro_street)
}
Run the code above in your browser using DataLab