Skip to content

Commit 4639e68

Browse files
committed
Update NEWs.md
1 parent 06be1f3 commit 4639e68

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

NEWS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
# actverse 0.2.0
44

5-
- `read_acttrust()` has been updated to handle special characters in the input files more robustly. It now reads the file content, removes any special characters, and then writes it to a temporary file before processing. This ensures that the function can handle files with special characters without errors.
6-
- `sri()` now has `min_data` as an argument, which specifies the minimum proportion of non-missing values required to compute the SRI for each time point. If the proportion of non-missing values is below this threshold, the SRI will be set to `NA` for that time point. This helps to avoid computing the SRI when there is insufficient data. Note that the first agreement value is always `NA` because there is no previous day for comparison, hence it is not treated as missing data.
7-
- `sri()` now returns a `valid_data` column, which indicates the proportion of non-missing values in the `agreement` column for each time point. This provides additional information about the data quality used to compute the SRI.
8-
- `sri()` now has different default values for `sleeping_states` and `awake_states`. The new defaults are `sleeping_states = c(1, 2)` and `awake_states = 0`. The previous defaults were `sleeping_states = 1` and `awake_states = c(0, 2)`, which considered *resting* states as awake, differing from the way that the index was originally computed.
9-
- `state_prop()` now has a default value of `c(1, 2)` for `state_values`, which considers both *sleeping* and *resting* states (for Condor Instruments actigraphy data) as the target states for calculating the proportion. The previous default was `1`, which only considered the *sleeping* state.
10-
- `state_prop()` now accepts cases when a specific value in `state_values` is not present in the data.
5+
- Changed `read_acttrust()` to handle special characters in the input files more robustly. It now reads the file content, removes any special characters, and then writes it to a temporary file before processing. This ensures that the function can handle files with special characters without errors.
6+
- Changed `sri()` parameters. Now the function has a `min_data` parameter, which specifies the minimum proportion of non-missing values required to compute the SRI for each time point. If the proportion of non-missing values is below this threshold, the SRI will be set to `NA` for that time point. This helps to avoid computing the SRI when there is insufficient data. Note that the first agreement value is always `NA` because there is no previous day for comparison, hence it is not treated as missing data.
7+
- Changed `sri()` output. Now the function returns a `valid_data` column, which indicates the proportion of non-missing values in the `agreement` column for each time point. This provides additional information about the data quality used to compute the SRI.
8+
- Changed `sri()` default parameter values. Now the function has different default values for `sleeping_states` and `awake_states`. The new defaults are `sleeping_states = c(1, 2)` and `awake_states = 0`. The previous defaults were `sleeping_states = 1` and `awake_states = c(0, 2)`, which considered *resting* states as awake, differing from the way that the index was originally computed.
9+
- Changed `state_prop()` default values. Now the function has a default value of `c(1, 2)` for `state_values`, which considers both *sleeping* and *resting* states (for Condor Instruments actigraphy data) as the target states for calculating the proportion. The previous default was `1`, which only considered the *sleeping* state.
10+
- Changed `state_prop()` defensive programming. Now the function accepts cases when a specific value in `state_values` is not present in the data.
1111
- Changed charts typefaces, colors and text casing, for better aesthetics and readability.
1212
- Changed package license from [MIT](https://opensource.org/license/mit) to [GPLv3](https://www.gnu.org/licenses/gpl-3.0).
13-
- Changed hex logo, removing the package name from the images.
13+
- Changed the Hex logo, removing the package name from the images.
1414
- Updated the Code of Conduct to [Contributor Covenant 3.0](https://www.contributor-covenant.org/version/3/0/code_of_conduct/).
1515
- Updated documentation and examples to reflect the changes in function arguments and behavior.
1616
- Update package dependencies to their latest versions.

0 commit comments

Comments
 (0)