dkahle / dkahle/mpoly

Argument varorder is not obeyed in mp()

Open
#17 2 comments 0 reactions 1 assignee Claimed by @dkahle View on GitHub
bug
Dominant language
HTML
Stars
12
Forks
12
PR merge metrics
No merged PRs in 30d

Description

`varorder` internally calls `reorder.mpoly()`, but this is not the expected behavior. `varorder`, in `mpoly()`, sets _intrinsic_ variable order, i.e. the order of the variables in then term, not the order of the terms themselves.

``` r
library("mpoly")

mp("x y + y x^2")
#> x y + x^2 y

mp("x y + y x^2", varorder = c("y", "x"))
#> x^2 y + x y
```

Created on 2019-03-18 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.