Skip to content

Commit 871bb7d

Browse files
committed
Fixed probing computation
1 parent d85e43c commit 871bb7d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Rwaves
22
Title: Electropenetrography (EPG) data analysis
3-
Version: 0.0.2
3+
Version: 0.0.3
44
Authors@R:c(
55
person(given = "Marco",
66
family = "Chiapello",

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Rwaves 0.0.3
2+
3+
* Fix probing number
4+
5+
* Fix probing number time computation
6+
7+
* Update the processed dataframe to reflect the new computed data
8+
19
# Rwaves 0.0.2
210

311
* Updated the formulas. Now the compute values are correct

R/functions.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ rwaves <- function(x){
7979
ff24 <- function(x){
8080
newname <- paste0("f", 24)
8181
x$cum <- c(diff(x$time), x$time[length(x$time)])
82-
temp <- x %>%
82+
temp <- (x %>% filter(waveforms != 99) %>% pull(cum) %>% sum()) - x %>%
8383
dplyr::filter(waveforms == 1) %>%
8484
dplyr::group_by(waveforms) %>%
8585
dplyr::summarize(Sum = sum(cum)) %>%
8686
dplyr::pull(Sum)
87-
dplyr::tibble(!!newname := x$time[nrow(x)] - temp)
87+
dplyr::tibble(!!newname := temp)
8888
}
8989
# %probtimeinC
9090
ff115 <- function(x, d = 2){
@@ -101,7 +101,7 @@ rwaves <- function(x){
101101
dplyr::summarize(Sum = sum(cum)) %>%
102102
dplyr::pull(Sum)
103103
dplyr::tibble(!!newname := temp / tt * 100)
104-
q }
104+
}
105105
###########################################################################
106106
# FUNCTION
107107
## Intermediate table

data/processed.rda

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)