Skip to content
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

zero length vectors mess up print method a bit #148

Closed
zachary-foster opened this issue Apr 1, 2018 · 2 comments
Closed

zero length vectors mess up print method a bit #148

zachary-foster opened this issue Apr 1, 2018 · 2 comments
Labels
bug
Milestone

Comments

@zachary-foster
Copy link
Collaborator

@zachary-foster zachary-foster commented Apr 1, 2018

<Taxmap>
  17 taxa: b. Mammalia, c. Plantae, d. Felidae, e. Notoryctidae ... o. typhlops, p. sapiens, q. lycopersicum, r. tuberosum
  17 edges: NA->b, NA->c, b->d, b->e, b->f, c->g, d->h, d->i, e->j, f->k, g->l, h->m, i->n, j->o, k->p, l->q, l->r
  5 data sets:
    info:
      # A tibble: 6 x 4
        taxon_id name  n_legs dangerous
        <chr>    <fct>  <dbl> <lgl>    
      1 m        tiger     4. TRUE     
      2 n        cat       4. FALSE    
      3 o        mole      4. FALSE    
      # ... with 3 more rows
    phylopic_ids: a named vector of 'character' with 6 items
       m. e148eabb-f138-43c6-b1e4-5cda2180485a ... r. 63604565-0406-460b-8cb8-1abe954b3f3a
    foods: a list of 6 items named by taxa:
       m, n, o, p, q, r
    abund:
      # A tibble: 8 x 5
        taxon_id code  sample_id count taxon_index
        <chr>    <fct> <fct>     <dbl>       <int>
      1 m        T     A            1.           1
      2 n        C     A            2.           2
      3 o        M     B            5.           3
      # ... with 5 more rows
    new_table: a vector of 'numeric' with 0 items
        1 functions:
    reaction
@zachary-foster zachary-foster added the bug label Apr 1, 2018
@zachary-foster zachary-foster added this to the v0.2.1 milestone Apr 1, 2018
@zachary-foster
Copy link
Collaborator Author

@zachary-foster zachary-foster commented Apr 1, 2018

so do zero length tables:

<Taxmap>
  17 taxa: b. Mammalia, c. Plantae, d. Felidae, e. Notoryctidae ... o. typhlops, p. sapiens, q. lycopersicum, r. tuberosum
  17 edges: NA->b, NA->c, b->d, b->e, b->f, c->g, d->h, d->i, e->j, f->k, g->l, h->m, i->n, j->o, k->p, l->q, l->r
  5 data sets:
    info:
      # A tibble: 6 x 4
        taxon_id name  n_legs dangerous
        <chr>    <fct>  <dbl> <lgl>    
      1 m        tiger     4. TRUE     
      2 n        cat       4. FALSE    
      3 o        mole      4. FALSE    
      # ... with 3 more rows
    phylopic_ids: a named vector of 'character' with 6 items
       m. e148eabb-f138-43c6-b1e4-5cda2180485a ... r. 63604565-0406-460b-8cb8-1abe954b3f3a
    foods: a list of 6 items named by taxa:
       m, n, o, p, q, r
    abund:
      # A tibble: 8 x 5
        taxon_id code  sample_id count taxon_index
        <chr>    <fct> <fct>     <dbl>       <int>
      1 m        T     A            1.           1
      2 n        C     A            2.           2
      3 o        M     B            5.           3
      # ... with 5 more rows
    new_table:
      # A tibble: 0 x 2
      # ... with 2 variables: a <dbl>, b <chr>
NA
  1 functions:
    reaction
@zachary-foster
Copy link
Collaborator Author

@zachary-foster zachary-foster commented Apr 5, 2018

fixed

@zachary-foster zachary-foster mentioned this issue Apr 5, 2018
3 of 3 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.