set.seed(15)
x=runif(10,1,15) # random x coord
y=runif(10,1,15) # random y coord
a=runif(10,1,15)
b=runif(10,1,15)
x=as.integer(x)
y=as.integer(y)
a=as.integer(a)
b=as.integer(b)
X=7.5
Y=7.5
store=cbind(X,Y)
onlineloc=cbind(x,y)
instore=cbind(a,b)
plot(x,y,main="Online and instore customer loc",col=" red")
points(a,b,pch=2)
points(X,Y,pch=15)
st_distance(instore,store, by_element = F)
it is giving error could not understand the st_distance function well i guess please help