I have a dataframe called tab_mlr with coordinates about 19 features in 788 rows.
str(tab_mlr)
This object have 788 observations of 21 variables (with 2 variables as Latitude and Longitude). I create an sf object like this :
data_mlr <- sf::st_as_sf(tab_mlr, coords = c("Longitude", "Latitude"), crs = 4326)
data_mlr have 788 features, that's ok. But when i create a task with this data_mlr like this :
task <- TaskRegrST$new(
"mlr",
backend = data_mlr,
target = "Hauteur"
)
task object have 620 944 rows !!! Why not 788 rows ?