You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using st_sf() with an input data.frame with any sub class, that class is dropped. However, this is not the case when using st_as_sf() all the time. It would be quite nice of st_sf() did not strip the subclasses so that we do not need to cast to data.frame and then back to sf.
For example, you can see that both st_sf() and st_as_sf() ignores the printing from tbl class. However, it respects it when the object has the tbl_df (tibble)class. In this case,st_sf()drops the class whereasst_as_sf()` keeps it but ignores it for printing purposes.
When using
st_sf()
with an inputdata.frame
with any sub class, that class is dropped. However, this is not the case when usingst_as_sf()
all the time. It would be quite nice ofst_sf()
did not strip the subclasses so that we do not need to cast to data.frame and then back to sf.For example, you can see that both
st_sf()
andst_as_sf()
ignores the printing fromtbl
class. However, it respects it when the object has thetbl_df
(tibble)class. In this case,
st_sf()drops the class whereas
st_as_sf()` keeps it but ignores it for printing purposes.The text was updated successfully, but these errors were encountered: