The code is as below:
schema = schema(`Key`=int64(),
Sex = string(),
`Age` = int64(),
`Date of Birth` = date32(),
`Institution` = string(),
`Admission Date` = date32(),
`Discharge Date` = date32(),
`Elderly Home` = string(),
`Paycode` = string())
class(schema)
R returns:
Error in `check_schema()`:
! `schema` must be an object of class 'Schema' not 'list'.
Run `rlang::last_error()` to see where the error occurred.
> class(schema)
[1] "list"
Is it possible to convert the list into schema
?
The version that I run : The version should be Arrow package version: 11.0.0.2.
> arrow::arrow_info()
Arrow package version: 11.0.0.2
Arrow options():
arrow.use_threads FALSE