Skip to content

Commit bd116be

Browse files
committed
v0.0.0.9018
Final clean up before v1. Vignette, Readme, fixes to get examples in Vignette working.
1 parent df746e4 commit bd116be

15 files changed

Lines changed: 791 additions & 150 deletions

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: MBSStools
22
Title: MBSS tool suite for calculations and data manipulation.
3-
Version: 0.0.0.9016
3+
Version: 0.0.0.9018
44
Authors@R: c(
55
person("Erik W.", "Leppo", email="Erik.Leppo@tetratech.com", role=c("aut","cre")),
66
person("Ann","Roseberry Lincoln", role="ctb"),

NEWS.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NEWS-MBSStools
22
================
33

44
<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->
5-
#> Last Update: 2017-09-19 13:26:34
5+
#> Last Update: 2017-09-24 16:49:46
66

77
Version history.
88

@@ -11,6 +11,32 @@ Planned Updates
1111

1212
- Documentation (vignette).
1313

14+
v0.0.0.9018
15+
===========
16+
17+
2017-09-24
18+
19+
- Add install guide notebook.
20+
21+
- Tweak vignette.
22+
23+
- Update Readme.
24+
25+
- Final version before going to v1.0.0.
26+
27+
- IonContrib, ensure data input is a data frame.
28+
29+
- PHI, ensure data input is a data frame.
30+
31+
v0.0.0.9017
32+
===========
33+
34+
2017-09-20
35+
36+
- Update vignette.
37+
38+
- Fixed example for fish metrics in metric.values(). 20170920.
39+
1440
v0.0.0.9016
1541
===========
1642

NEWS.rmd

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,28 @@ Version history.
2525

2626
* Documentation (vignette).
2727

28+
# v0.0.0.9018
29+
2017-09-24
30+
31+
* Add install guide notebook.
32+
33+
* Tweak vignette.
34+
35+
* Update Readme.
36+
37+
* Final version before going to v1.0.0.
38+
39+
* IonContrib, ensure data input is a data frame.
40+
41+
* PHI, ensure data input is a data frame.
42+
43+
# v0.0.0.9017
44+
2017-09-20
45+
46+
* Update vignette.
47+
48+
* Fixed example for fish metrics in metric.values(). 20170920.
49+
2850
# v0.0.0.9016
2951
2017-09-19
3052

R/IonContrib.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@
5353
#' @export
5454
IonContrib <- function(ion.data, ion.ref=MBSS.Ion.Ref, col.Cond="") {##FUNCTION.IonContrib.START
5555
#
56-
# # QC
56+
# # # QC
5757
# ion.data <- MBSS.Ion.Data
5858
# ion.ref <- MBSS.Ion.Ref
5959
# col.Cond <- ""
6060
# 0. Rename Data
61-
data.calc <- ion.data
61+
data.calc <- as.data.frame(ion.data)
62+
ion.ref <- as.data.frame(ion.ref)
6263
# 1. Get Ion List
6364
myIons <- ion.ref$Name[ion.ref$Name %in% colnames(data.calc)]
6465
#print(myIons)

R/PHIcalc.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ PHIcalc <- function(fun.df,fun.names=c("SampID"
5555
, "Erosn_SevL_03"
5656
, "RoadDist_m")){
5757
# 0. QC ####
58+
fun.df <- as.data.frame(fun.df)
5859
# 0.1. QC column names
5960
# Define dataframe names
6061
names.default <- c("SampID"

R/metric.values.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#' (myMetrics.Fish <- as.character(droplevels(unique(thresh[thresh[,"Index.Name"]==myIndex,"Metric"]))))
7777
#' # Taxa Data
7878
#' myDF.Fish <- taxa_fish
79-
#' myMetric.Values.Fish <- metric.values(myDF.Fish, "SampleID", "fish", myMetrics.Fish, TRUE)
79+
#' myMetric.Values.Fish <- metric.values(myDF.Fish, "SampleID", "fish", myMetrics.Fish)
8080
#' View(myMetric.Values.Fish)
8181
#'
8282
#' # Metrics, Index, Benthic Macroinvertebrates, genus

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ To aid MBSS staff with calculations and data manipulations.
3131

3232
Status
3333
------------
34-
Development stage.
34+
Final.
3535

3636

3737
Usage
3838
------------
39-
39+
By MBSS staff or those using MBSS data.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ README-MBSStools
22
================
33

44
<!-- README.md is generated from README.Rmd. Please edit that file -->
5-
#> Last Update: 2017-03-27 15:12:26
5+
#> Last Update: 2017-09-24 16:50:00
66

77
Suite of tools for data manipulation and calculations for Maryland DNR MBSS program.
88

@@ -21,7 +21,9 @@ To aid MBSS staff with calculations and data manipulations.
2121
Status
2222
------
2323

24-
Development stage.
24+
Final.
2525

2626
Usage
2727
-----
28+
29+
By MBSS staff or those using MBSS data.
5.34 KB
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: "MBSS Install Guide"
3+
output: html_notebook
4+
---
5+
6+
`MBSStools` is an R library with functions to perform various analyses by MBSS staff and those working with MBSS data. An installed copy of R is required. A copy of RStudio is recommended.
7+
8+
#Installation
9+
The code for MBSStools is hosted on GitHub at https://github.com/leppott/MBSStools and can be installed within R but the library `devtools` is required. To install devtools use the code below.
10+
11+
```{r, eval=FALSE}
12+
install.packages("devtools")
13+
```
14+
15+
Once `devtools` is installed the code below will install `MBSStools`.
16+
17+
```{r, eval=FALSE}
18+
library(devtools)
19+
install_github("leppott/MBSStools")
20+
```
21+
22+
Alternatively, a zip file containing the R library can be downloaded from GitHub (https://github.com/leppott/MBSStools) and installed manually from R's menu bar (Packages - Install package(s) from local zip files).
23+
24+
#GitHub
25+
GitHub is a code sharing website. `MBSStools` is hosted on this site for ease of updating and distribution. There is also issue tracking on the website. The most current vesion of the package will always be installed with the code above.
26+

0 commit comments

Comments
 (0)