Skip to content

Commit

Permalink
adds explicit as.factor in rank_onerep
Browse files Browse the repository at this point in the history
Includes NEWS bullet. Roxygen updates must also have changed .Rd line-break rules.
  • Loading branch information
itcarroll committed May 3, 2020
1 parent ba52a29 commit 34fd696
Show file tree
Hide file tree
Showing 23 changed files with 165 additions and 43 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ URL: https://github.com/NCEAS/codyn/
BugReports: https://github.com/NCEAS/codyn/issues
LazyData: true
VignetteBuilder: knitr
RoxygenNote: 6.1.1
RoxygenNote: 7.1.0
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Version 2.0.4
-------------

BUG FIXES

* Adapt to R 4.0 breaking change for string to factor conversion (PR # 118)

Version 2.0.3
-------------

Expand Down
2 changes: 1 addition & 1 deletion R/rank_shift.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ rank_onerep <- function(df, time.var,

MRS <- sapply(rankdiff, function(x) mean(x$abs_ch_rank))

data.frame(year_pair = names(MRS), MRS, row.names = NULL)
data.frame(year_pair = as.factor(names(MRS)), MRS, row.names = NULL)
}


Expand Down
10 changes: 8 additions & 2 deletions man/RAC_change.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions man/RAC_difference.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions man/abundance_change.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions man/abundance_difference.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/collins08.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions man/community_diversity.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions man/community_structure.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions man/curve_change.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions man/curve_difference.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions man/cyclic_shift.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/knz_001d.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions man/mean_rank_shift.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions man/multivariate_change.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions man/multivariate_difference.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/pplots.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions man/rank_shift.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions man/rate_change_interval.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions man/synchrony.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions man/turnover.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions man/variance_ratio.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 34fd696

Please sign in to comment.