set.seed(15)
x=runif(10,1,15) # random x coord
y=runif(10,1,15) # random y coord
x=as.integer(x)
y=as.integer(y)
X=7.5
Y=7.5
store=cbind(X,Y)
onlineloc=cbind(x,y)
plot(x,y,main="Online and instore customer loc",col=" red")
points(X,Y,pch=15)
#'
st_distance(onlineloc,store, by_element = F)
#> Error in st_distance(onlineloc, store, by_element = F): could not find function "st_distance"
there is some error in st function pl guide