diff --git a/R/write_ical.R b/R/write_ical.R
index 05d9f93..21516c7 100644
--- a/R/write_ical.R
+++ b/R/write_ical.R
@@ -25,10 +25,10 @@
#' @examples
#' df <- data.frame(
#' date = c("2020-02-10", "2020-02-11"),
-#' end = c("2020-02-13",NA),
+#' date.end = c("2020-02-13",NA),
#' title = c("Conference", "Lunch"),
#' start = c("12:00:00", NA),
-#' bye = c("13:00:00", NA),
+#' time.end = c("13:00:00", NA),
#' note = c("Hi there","Remember to come"),
#' link = c("https://icalendar.org","https://agdamsbo.github.io/stRoke/")
#' )
@@ -36,10 +36,10 @@
#' write_ical(
#' df,
#' date = "date",
-#' date.end = "end",
+#' date.end = "date.end",
#' title = "title",
#' time.start = "start",
-#' time.end = "bye",
+#' time.end = "time.end",
#' place.def = "Conference Room",
#' descr = "note",
#' link = "link"
@@ -78,6 +78,10 @@ write_ical <-
stop("Supplied title is not a valid column name")
}
+ if (any(is.na(df[,title]))) {
+ stop("Missing title values are not allowed")
+ }
+
if (is.character(place) & !place %in% colnames(df)) {
stop("Supplied place is not a valid column name")
}
@@ -109,16 +113,14 @@ write_ical <-
lubridate::hms(i[, time.start])
}
-
if (is.character(date.end) &
- !is.na(i[, time.end]) &
- is.na(i[, date.end])) {
- stop("time.end is needed for entries
- with supplied date.end")
+ is.na(i[, time.end]) &
+ !is.na(i[, date.end])) {
+ stop("time.end is missing for some date.end")
}
else if (is.character(date.end) &
- !is.na(i[, time.end]) &
- !is.na(i[, date.end])) {
+ !is.na(i[, time.end]) &
+ !is.na(i[, date.end])) {
i$end_time <-
lubridate::ymd(i[, date.end], tz = t.zone) +
lubridate::hms(i[, time.end])
diff --git a/README.md b/README.md
index ebb3c95..171b986 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-![GitHub R package version](https://img.shields.io/github/r-package/v/agdamsbo/stRoke)
-![CRAN/METACRAN](https://img.shields.io/cran/v/stRoke)
-![CRAN/METACRAN](https://img.shields.io/cran/l/stRoke)
+[![GitHub R package version](https://img.shields.io/github/r-package/v/agdamsbo/stRoke)](https://github.com/agdamsbo/stRoke)
+[![CRAN/METACRAN](https://img.shields.io/cran/v/stRoke)](https://cran.r-project.org/web/packages/stRoke/index.html)
+[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7572023.svg)](https://doi.org/10.5281/zenodo.7572023)
[![Github Actions](https://github.com/agdamsbo/stRoke/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/agdamsbo/stRoke/actions/workflows/R-CMD-check.yaml)
[![Page deployed](https://github.com/agdamsbo/stRoke/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/agdamsbo/stRoke/actions/workflows/pages/pages-build-deployment)
[![codecov](https://codecov.io/github/agdamsbo/stRoke/branch/main/graph/badge.svg?token=U0RBZYSKG5)](https://codecov.io/github/agdamsbo/stRoke)
@@ -19,7 +19,13 @@ This package is [shared on GitHub](https://github.com/agdamsbo/stRoke), and you
# Installation
-The package can be installed from GitHub:
+The package can be installed directly from CRAN:
+
+```
+install.packages("stRoke")
+```
+
+The latest version in development can be installed from GitHub:
```
remotes::install_github("agdamsbo/stRoke")
diff --git a/docs/articles/Toolbox.html b/docs/articles/Toolbox.html
index 8252946..b0ad56c 100644
--- a/docs/articles/Toolbox.html
+++ b/docs/articles/Toolbox.html
@@ -214,12 +214,12 @@ model plot (with The package can be installed from GitHub: The package can be installed directly from CRAN: The latest version in development can be installed from GitHub:stRoke::ci_plot()
variables = c("hypertension", "diabetes", "civil"))
#> Waiting for profiling to be done...
#> $`Table 1`
-#> <div id="oxsdboznol" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
+#> <div id="methqihjax" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
-#> #oxsdboznol .gt_table {
+#> #methqihjax .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
@@ -244,7 +244,7 @@ model plot (with
stRoke::ci_plot()
#> border-left-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_heading {
+#> #methqihjax .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
@@ -256,12 +256,12 @@ model plot (with
stRoke::ci_plot()
#> border-right-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_caption {
+#> #methqihjax .gt_caption {
#> padding-top: 4px;
#> padding-bottom: 4px;
#> }
#>
-#> #oxsdboznol .gt_title {
+#> #methqihjax .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
@@ -273,7 +273,7 @@ model plot (with
stRoke::ci_plot()
#> border-bottom-width: 0;
#> }
#>
-#> #oxsdboznol .gt_subtitle {
+#> #methqihjax .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
@@ -285,13 +285,13 @@ model plot (with
stRoke::ci_plot()
#> border-top-width: 0;
#> }
#>
-#> #oxsdboznol .gt_bottom_border {
+#> #methqihjax .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_col_headings {
+#> #methqihjax .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
@@ -306,7 +306,7 @@ model plot (with
stRoke::ci_plot()
#> border-right-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_col_heading {
+#> #methqihjax .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
@@ -326,7 +326,7 @@ model plot (with
stRoke::ci_plot()
#> overflow-x: hidden;
#> }
#>
-#> #oxsdboznol .gt_column_spanner_outer {
+#> #methqihjax .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
@@ -338,15 +338,15 @@ model plot (with
stRoke::ci_plot()
#> padding-right: 4px;
#> }
#>
-#> #oxsdboznol .gt_column_spanner_outer:first-child {
+#> #methqihjax .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
-#> #oxsdboznol .gt_column_spanner_outer:last-child {
+#> #methqihjax .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
-#> #oxsdboznol .gt_column_spanner {
+#> #methqihjax .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
@@ -358,7 +358,7 @@ model plot (with
stRoke::ci_plot()
#> width: 100%;
#> }
#>
-#> #oxsdboznol .gt_group_heading {
+#> #methqihjax .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
@@ -384,7 +384,7 @@ model plot (with
stRoke::ci_plot()
#> text-align: left;
#> }
#>
-#> #oxsdboznol .gt_empty_group_heading {
+#> #methqihjax .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
@@ -399,15 +399,15 @@ model plot (with
stRoke::ci_plot()
#> vertical-align: middle;
#> }
#>
-#> #oxsdboznol .gt_from_md > :first-child {
+#> #methqihjax .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
-#> #oxsdboznol .gt_from_md > :last-child {
+#> #methqihjax .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
-#> #oxsdboznol .gt_row {
+#> #methqihjax .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
@@ -426,7 +426,7 @@ model plot (with
stRoke::ci_plot()
#> overflow-x: hidden;
#> }
#>
-#> #oxsdboznol .gt_stub {
+#> #methqihjax .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
@@ -439,7 +439,7 @@ model plot (with
stRoke::ci_plot()
#> padding-right: 5px;
#> }
#>
-#> #oxsdboznol .gt_stub_row_group {
+#> #methqihjax .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
@@ -453,11 +453,11 @@ model plot (with
stRoke::ci_plot()
#> vertical-align: top;
#> }
#>
-#> #oxsdboznol .gt_row_group_first td {
+#> #methqihjax .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
-#> #oxsdboznol .gt_summary_row {
+#> #methqihjax .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
@@ -467,16 +467,16 @@ model plot (with
stRoke::ci_plot()
#> padding-right: 5px;
#> }
#>
-#> #oxsdboznol .gt_first_summary_row {
+#> #methqihjax .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_first_summary_row.thick {
+#> #methqihjax .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
-#> #oxsdboznol .gt_last_summary_row {
+#> #methqihjax .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
@@ -486,7 +486,7 @@ model plot (with
stRoke::ci_plot()
#> border-bottom-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_grand_summary_row {
+#> #methqihjax .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
@@ -496,7 +496,7 @@ model plot (with
stRoke::ci_plot()
#> padding-right: 5px;
#> }
#>
-#> #oxsdboznol .gt_first_grand_summary_row {
+#> #methqihjax .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
@@ -506,11 +506,11 @@ model plot (with
stRoke::ci_plot()
#> border-top-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_striped {
+#> #methqihjax .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
-#> #oxsdboznol .gt_table_body {
+#> #methqihjax .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
@@ -519,7 +519,7 @@ model plot (with
stRoke::ci_plot()
#> border-bottom-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_footnotes {
+#> #methqihjax .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
@@ -533,7 +533,7 @@ model plot (with
stRoke::ci_plot()
#> border-right-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_footnote {
+#> #methqihjax .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
@@ -542,7 +542,7 @@ model plot (with
stRoke::ci_plot()
#> padding-right: 5px;
#> }
#>
-#> #oxsdboznol .gt_sourcenotes {
+#> #methqihjax .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
@@ -556,7 +556,7 @@ model plot (with
stRoke::ci_plot()
#> border-right-color: #D3D3D3;
#> }
#>
-#> #oxsdboznol .gt_sourcenote {
+#> #methqihjax .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
@@ -564,64 +564,64 @@ model plot (with
stRoke::ci_plot()
#> padding-right: 5px;
#> }
#>
-#> #oxsdboznol .gt_left {
+#> #methqihjax .gt_left {
#> text-align: left;
#> }
#>
-#> #oxsdboznol .gt_center {
+#> #methqihjax .gt_center {
#> text-align: center;
#> }
#>
-#> #oxsdboznol .gt_right {
+#> #methqihjax .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
-#> #oxsdboznol .gt_font_normal {
+#> #methqihjax .gt_font_normal {
#> font-weight: normal;
#> }
#>
-#> #oxsdboznol .gt_font_bold {
+#> #methqihjax .gt_font_bold {
#> font-weight: bold;
#> }
#>
-#> #oxsdboznol .gt_font_italic {
+#> #methqihjax .gt_font_italic {
#> font-style: italic;
#> }
#>
-#> #oxsdboznol .gt_super {
+#> #methqihjax .gt_super {
#> font-size: 65%;
#> }
#>
-#> #oxsdboznol .gt_footnote_marks {
+#> #methqihjax .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
-#> #oxsdboznol .gt_asterisk {
+#> #methqihjax .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
-#> #oxsdboznol .gt_indent_1 {
+#> #methqihjax .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
-#> #oxsdboznol .gt_indent_2 {
+#> #methqihjax .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
-#> #oxsdboznol .gt_indent_3 {
+#> #methqihjax .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
-#> #oxsdboznol .gt_indent_4 {
+#> #methqihjax .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
-#> #oxsdboznol .gt_indent_5 {
+#> #methqihjax .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
diff --git a/docs/index.html b/docs/index.html
index 72a1616..54b3448 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -94,7 +94,9 @@
Installation
-
+install.packages("stRoke")
remotes::install_github("agdamsbo/stRoke")
Dev status
+
'[Intercept]'~"Intercept")
stRoke::talos[vars] |>
gtsummary::tbl_summary(label = label_select(labels_all,vars))
-#> <div id="abtpvxarbq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
+#> <div id="ghvwwjikqx" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
-#> #abtpvxarbq .gt_table {
+#> #ghvwwjikqx .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
@@ -122,7 +122,7 @@ Alternative is to use attributes, eg from
#> border-left-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_heading {
+#> #ghvwwjikqx .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
@@ -134,12 +134,12 @@ Alternative is to use attributes, eg from
#> border-right-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_caption {
+#> #ghvwwjikqx .gt_caption {
#> padding-top: 4px;
#> padding-bottom: 4px;
#> }
#>
-#> #abtpvxarbq .gt_title {
+#> #ghvwwjikqx .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
@@ -151,7 +151,7 @@ Alternative is to use attributes, eg from
#> border-bottom-width: 0;
#> }
#>
-#> #abtpvxarbq .gt_subtitle {
+#> #ghvwwjikqx .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
@@ -163,13 +163,13 @@ Alternative is to use attributes, eg from
#> border-top-width: 0;
#> }
#>
-#> #abtpvxarbq .gt_bottom_border {
+#> #ghvwwjikqx .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_col_headings {
+#> #ghvwwjikqx .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
@@ -184,7 +184,7 @@ Alternative is to use attributes, eg from
#> border-right-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_col_heading {
+#> #ghvwwjikqx .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
@@ -204,7 +204,7 @@ Alternative is to use attributes, eg from
#> overflow-x: hidden;
#> }
#>
-#> #abtpvxarbq .gt_column_spanner_outer {
+#> #ghvwwjikqx .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
@@ -216,15 +216,15 @@ Alternative is to use attributes, eg from
#> padding-right: 4px;
#> }
#>
-#> #abtpvxarbq .gt_column_spanner_outer:first-child {
+#> #ghvwwjikqx .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
-#> #abtpvxarbq .gt_column_spanner_outer:last-child {
+#> #ghvwwjikqx .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
-#> #abtpvxarbq .gt_column_spanner {
+#> #ghvwwjikqx .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
@@ -236,7 +236,7 @@ Alternative is to use attributes, eg from
#> width: 100%;
#> }
#>
-#> #abtpvxarbq .gt_group_heading {
+#> #ghvwwjikqx .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
@@ -262,7 +262,7 @@ Alternative is to use attributes, eg from
#> text-align: left;
#> }
#>
-#> #abtpvxarbq .gt_empty_group_heading {
+#> #ghvwwjikqx .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
@@ -277,15 +277,15 @@ Alternative is to use attributes, eg from
#> vertical-align: middle;
#> }
#>
-#> #abtpvxarbq .gt_from_md > :first-child {
+#> #ghvwwjikqx .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
-#> #abtpvxarbq .gt_from_md > :last-child {
+#> #ghvwwjikqx .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
-#> #abtpvxarbq .gt_row {
+#> #ghvwwjikqx .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
@@ -304,7 +304,7 @@ Alternative is to use attributes, eg from
#> overflow-x: hidden;
#> }
#>
-#> #abtpvxarbq .gt_stub {
+#> #ghvwwjikqx .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
@@ -317,7 +317,7 @@ Alternative is to use attributes, eg from
#> padding-right: 5px;
#> }
#>
-#> #abtpvxarbq .gt_stub_row_group {
+#> #ghvwwjikqx .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
@@ -331,11 +331,11 @@ Alternative is to use attributes, eg from
#> vertical-align: top;
#> }
#>
-#> #abtpvxarbq .gt_row_group_first td {
+#> #ghvwwjikqx .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
-#> #abtpvxarbq .gt_summary_row {
+#> #ghvwwjikqx .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
@@ -345,16 +345,16 @@ Alternative is to use attributes, eg from
#> padding-right: 5px;
#> }
#>
-#> #abtpvxarbq .gt_first_summary_row {
+#> #ghvwwjikqx .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_first_summary_row.thick {
+#> #ghvwwjikqx .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
-#> #abtpvxarbq .gt_last_summary_row {
+#> #ghvwwjikqx .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
@@ -364,7 +364,7 @@ Alternative is to use attributes, eg from
#> border-bottom-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_grand_summary_row {
+#> #ghvwwjikqx .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
@@ -374,7 +374,7 @@ Alternative is to use attributes, eg from
#> padding-right: 5px;
#> }
#>
-#> #abtpvxarbq .gt_first_grand_summary_row {
+#> #ghvwwjikqx .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
@@ -384,11 +384,11 @@ Alternative is to use attributes, eg from
#> border-top-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_striped {
+#> #ghvwwjikqx .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
-#> #abtpvxarbq .gt_table_body {
+#> #ghvwwjikqx .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
@@ -397,7 +397,7 @@ Alternative is to use attributes, eg from
#> border-bottom-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_footnotes {
+#> #ghvwwjikqx .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
@@ -411,7 +411,7 @@ Alternative is to use attributes, eg from
#> border-right-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_footnote {
+#> #ghvwwjikqx .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
@@ -420,7 +420,7 @@ Alternative is to use attributes, eg from
#> padding-right: 5px;
#> }
#>
-#> #abtpvxarbq .gt_sourcenotes {
+#> #ghvwwjikqx .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
@@ -434,7 +434,7 @@ Alternative is to use attributes, eg from
#> border-right-color: #D3D3D3;
#> }
#>
-#> #abtpvxarbq .gt_sourcenote {
+#> #ghvwwjikqx .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
@@ -442,64 +442,64 @@ Alternative is to use attributes, eg from
#> padding-right: 5px;
#> }
#>
-#> #abtpvxarbq .gt_left {
+#> #ghvwwjikqx .gt_left {
#> text-align: left;
#> }
#>
-#> #abtpvxarbq .gt_center {
+#> #ghvwwjikqx .gt_center {
#> text-align: center;
#> }
#>
-#> #abtpvxarbq .gt_right {
+#> #ghvwwjikqx .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
-#> #abtpvxarbq .gt_font_normal {
+#> #ghvwwjikqx .gt_font_normal {
#> font-weight: normal;
#> }
#>
-#> #abtpvxarbq .gt_font_bold {
+#> #ghvwwjikqx .gt_font_bold {
#> font-weight: bold;
#> }
#>
-#> #abtpvxarbq .gt_font_italic {
+#> #ghvwwjikqx .gt_font_italic {
#> font-style: italic;
#> }
#>
-#> #abtpvxarbq .gt_super {
+#> #ghvwwjikqx .gt_super {
#> font-size: 65%;
#> }
#>
-#> #abtpvxarbq .gt_footnote_marks {
+#> #ghvwwjikqx .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
-#> #abtpvxarbq .gt_asterisk {
+#> #ghvwwjikqx .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
-#> #abtpvxarbq .gt_indent_1 {
+#> #ghvwwjikqx .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
-#> #abtpvxarbq .gt_indent_2 {
+#> #ghvwwjikqx .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
-#> #abtpvxarbq .gt_indent_3 {
+#> #ghvwwjikqx .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
-#> #abtpvxarbq .gt_indent_4 {
+#> #ghvwwjikqx .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
-#> #abtpvxarbq .gt_indent_5 {
+#> #ghvwwjikqx .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
diff --git a/docs/reference/quantile_cut.html b/docs/reference/quantile_cut.html
index 4949ce0..5254839 100644
--- a/docs/reference/quantile_cut.html
+++ b/docs/reference/quantile_cut.html
@@ -119,8 +119,8 @@ as borders in case of y!=NULL.
x <- 1:450
y <- 6:750
summary(quantile_cut(aa,groups=4,detail.list=FALSE)) ## Cuts quartiles
-#> [1,232] (232,480] (480,728] (728,1e+03]
-#> 503 497 501 499
+#> [1,243] (243,491] (491,754] (754,1e+03]
+#> 500 501 501 498
df <- data.frame(
date = c("2020-02-10", "2020-02-11"),
- end = c("2020-02-13",NA),
+ date.end = c("2020-02-13",NA),
title = c("Conference", "Lunch"),
start = c("12:00:00", NA),
- bye = c("13:00:00", NA),
+ time.end = c("13:00:00", NA),
note = c("Hi there","Remember to come"),
link = c("https://icalendar.org","https://agdamsbo.github.io/stRoke/")
)
@@ -159,10 +159,10 @@ a time zone that is recognized by the user's OS.
write_ical(
df,
date = "date",
- date.end = "end",
+ date.end = "date.end",
title = "title",
time.start = "start",
- time.end = "bye",
+ time.end = "time.end",
place.def = "Conference Room",
descr = "note",
link = "link"
diff --git a/docs/search.json b/docs/search.json
index cc200e6..f423afb 100644
--- a/docs/search.json
+++ b/docs/search.json
@@ -1 +1 @@
-[{"path":"/articles/Simple REDCap workflow.html","id":"working-with-data-from-redcap","dir":"Articles","previous_headings":"","what":"Working with data from REDCap","title":"Simple REDCap workflow","text":"REDCap excellent tool clinical data acquisition storage. widely used world wide standard tool medical research data Denmark. case analysing data directly whole storing data REDCap, API functionality convenient secure, storing (possibly) sensitive data permanently computer. using “events” “repeated instruments” functionality REDCap, data storage format little confusing work , accustomed tidy data. library(REDCapR) provides simple way working data, however, package just exports data standard format.","code":""},{"path":"/articles/Simple REDCap workflow.html","id":"examples","dir":"Articles","previous_headings":"Working with data from REDCap","what":"Examples","title":"Simple REDCap workflow","text":"","code":"library(REDCapR) # Returns the variables \"record_id\" and \"age\". ds_some_vars <- redcap_read( redcap_uri = \"https://redcap.au.dk/api/\", # This is the address for projects at the AU-server token = \"YOUR_API_KEY_GOES_HERE\", fields = c(\"record_id\", \"age\") )$data # Return only records with IDs of 1 and 4 ds_some_rows <- redcap_read( redcap_uri = \"https://redcap.au.dk/api/\", # This is the address for projects at the AU-server token = \"YOUR_API_KEY_GOES_HERE\", records = c(1, 4) )$data"},{"path":"/articles/Toolbox.html","id":"a-toolbox","dir":"Articles","previous_headings":"","what":"A toolbox","title":"Toolbox","text":"toolbox small workshop mix old, worn, well proven tools newcomers. package seen something like . tried collect tools functions packages use regularly addition functions written fill use cases, able find solutions elsewhere. documenting testing package, used OpenAI’s chatgpt gpttools. chatgpt interesting tool, way perfect, helps tedious tasks. gpttools gptstudio interesting implementations R RStudio.","code":""},{"path":"/articles/Toolbox.html","id":"cpr-intro","dir":"Articles","previous_headings":"A toolbox","what":"CPR manipulations","title":"Toolbox","text":"Note , handled, CPR numbers (social security numbers) handled care considered highly sensitive data. CPR number structured DDMMYY-XXXX, 1st X designating decade birth, last X designate binary gender (biological sex) dependent even/uneven female/male, last digits used modulus calculation verify validity CPR number. Foreigners unidentified persons given temporary CPR numbers including letters. information can found cpr.dk. Note, CPR numbers used examples publicly known non-organic.","code":""},{"path":"/articles/Toolbox.html","id":"age_calc","dir":"Articles","previous_headings":"A toolbox > CPR manipulations","what":"age_calc()","title":"Toolbox","text":"age_calc() function created learning exercise functions similarly lubridate::time_length().","code":"(age <- age_calc(as.Date(\"1945-10-23\"), as.Date(\"2018-09-30\"))) #> [1] 72.93699 trunc(age) #> [1] 72"},{"path":"/articles/Toolbox.html","id":"cpr_check","dir":"Articles","previous_headings":"A toolbox > CPR manipulations","what":"cpr_check()","title":"Toolbox","text":"Checks validity CPR numbers according modulus 11 rule. Note due limitations possible available CPR numbers, rule apply CPR numbers 2007. Including CPR numbers letters gives warning NA, can checked modulus 11 function. used care, see message.","code":"cpr_check( c( \"2310450637\", \"010190-2000\", \"010115-4000\", \"300450-1030\", \"010150-4021\", \"010150-4AA1\" ) ) #> OBS: as per 2007 not all valid CPR numbers apply to modulus 11 rule. #> #> See the vignette 'Toolbox' #> Warning in matrix(as.numeric(unlist(strsplit(cpr_short, \"\"))), nrow = 10): NAs #> introduced by coercion #> [1] TRUE FALSE FALSE FALSE FALSE NA"},{"path":"/articles/Toolbox.html","id":"cpr_dob","dir":"Articles","previous_headings":"A toolbox > CPR manipulations","what":"cpr_dob()","title":"Toolbox","text":"Extracts date birth (DOB) CPR number. Accounts decade birth. See earlier.","code":"cpr_dob(c( \"2310450637\", \"010190-2000\", \"010115-4000\", \"300450-1030\", \"010150-4021\" )) #> [1] \"23-10-1945\" \"01-01-1990\" \"01-01-2015\" \"30-04-1950\" \"01-01-1950\""},{"path":"/articles/Toolbox.html","id":"cpr_female","dir":"Articles","previous_headings":"A toolbox > CPR manipulations","what":"cpr_female()","title":"Toolbox","text":"Gives logical vector whether female gender last digit CPR.","code":"table(cpr_female(stRoke::cprs[, 1])) #> #> FALSE TRUE #> 98 102"},{"path":[]},{"path":"/articles/Toolbox.html","id":"ci_plot","dir":"Articles","previous_headings":"A toolbox > Plotting","what":"ci_plot()","title":"Toolbox","text":"Plots odds ratios 95 % confidence intervals. Performs binary logistic regression outcome factors two (2) levels ordinal logistic regression outcome factors two levels. Mind relevant assumptions. Outputs ggplot element manipulation.","code":"data(talos) talos[, \"mrs_1\"] <- factor(talos[, \"mrs_1\"], ordered = TRUE) ci_plot( ds = talos, x = \"rtreat\", y = \"mrs_1\", vars = c(\"hypertension\", \"diabetes\") ) #> Waiting for profiling to be done..."},{"path":"/articles/Toolbox.html","id":"generic_stroke","dir":"Articles","previous_headings":"A toolbox > Plotting","what":"generic_stroke()","title":"Toolbox","text":"learning purposes. Uses annonymized data TALOS trial output Table 1 (gtsummary::tbl_summary()), plotting -called grotta-bars based mRS scores (rankinPlot::grottaBar()) ordinal logistic regression model plot (stRoke::ci_plot()).","code":"generic_stroke(stRoke::talos, \"rtreat\", \"mrs_6\", variables = c(\"hypertension\", \"diabetes\", \"civil\")) #> Waiting for profiling to be done... #> $`Table 1` #> #>