choose_initial_car <-
function(seg){
test <- initial_fleet %>% filter(segment==seg)
return(test[sample(1:dim(test)[1],1,prob = test$number),2:3])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.