-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[traits.build wide table] Import as_wide_table
and make part of build
#19
Comments
as_wide_table
as_wide_table
and make part of build
As noted in #20 , we can drastically reduce file size by using alternative output types with better compression. Using AusTraits 4.2.1, the wide table is
However, if save as parquet format, data comes in at only 24Mb
@cboettig suggested we should not see file size as deterrent to using wide table, if that is preferable for some users. We can solve this with smarter compression methods. We can also filter before read, It's slower to read but saves RAM by only loading the set you want
can do this on csv too
|
There is a new function here that will build a single table that joins and packs all information from the relational tables into a single combined table. Information for location properties and the various categories of context properties are packed into single columns. I'd thought about writing a function that allowed
Instead 2 alternatives. In addition to the combined table output, add
|
as_wide_table
and make part of buildas_wide_table
and make part of build
The austraits package has a function
as_wide_table.R
, which converts the various tables into a single wide table (see https://github.com/traitecoevo/austraits/blob/master/R/as_wide_table.R). Suggest moving this in here and making it a possible output of the build.Benefits
Wide table is better target for some for downloads, as
But large size
A downside of the large table is that file is substantially larger, e.g. for AusTraits v4.1.0
.csv
output is 260Mb (with most 230Mb istraits.csv
)The text was updated successfully, but these errors were encountered: