0

I generate a variable, e.g., xy_log, in R. It has the following information. Are there ways to transfer it into dataframe. I would like to save it using feather library, and make the saved dataframe used by python program.

> class(xy_log)
[1] "array"
> dim(xy_log)
[1]    4 2272 1000
> str(xy_log)
 num [1:4, 1:2272, 1:1000] 1.02e+06 2.52e-01 3.20e+01 3.99e+03 3.15e+06 ...
 - attr(*, "dimnames")=List of 3
  ..$ : chr [1:4] "E avg" "stat avg" "Angle" "int"
  ..$ : NULL
  ..$ : NULL


write_feather(xy_log, "xy_log")
Error: `x` must be a data frame
4

0 回答 0