RCall.jl icon indicating copy to clipboard operation
RCall.jl copied to clipboard

Don't specify `AbstractArray` for column types in DataFrame `rcopy`

Open asinghvi17 opened this issue 2 months ago • 8 comments

This allows other packages to hook into the conversion system when loading R DataFrames.

My usecase here is to provide seamless interop between R and Julia for sf dataframes, so people can take advantage of all of R's tooling without having to re-implement it in Julia.

An example of the use is that by defining rcopytype and rcopy for sfc_MULTIPOLYGON, which is a simple features collection of multipolygons, I can get those geometries converted to the relevant GeoInterface.jl geometry representation for free.

asinghvi17 avatar May 07 '24 19:05 asinghvi17