Skip to content

Attributes lost after exporting/importing data sets? #24

Answered by msberends
jukkiebah asked this question in Q&A
Discussion options

You must be logged in to vote

Good question. The classes that the AMR package provides are, just like all custom R classes in any package, only supported by R. This means that exporting the data to other formats than R will lose the attributes. Fortunately, this is not a big problem. Since the data were converted by the AMR package in the first place, rerunning functions like as.mo() and as.disk() will only take milliseconds. The functions are built so that they first check if all values that are to be transformed, already look like valid values.

As an example:

microbenchmark::microbenchmark(x <- as.mo(c("E. coli test",
                                            "Staph aureus kind of",
                               …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by msberends
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #22 on January 23, 2021 18:11.