Package: nocturn 1.1.3

Daniel Thedie

nocturn: Sleep Data Filtering and Visualisation

An online app and command-line utility to import, filter and visualise sleep data. Can be used with sleep data collected from any type of device (e.g. radar, sleep diary,...) as long as the data contains sleep onset and wake-up times for each sleep session.

Authors:Daniel Thedie [aut, cre, cph]

nocturn_1.1.3.tar.gz
nocturn_1.1.3.zip(r-4.7)nocturn_1.1.3.zip(r-4.6)nocturn_1.1.3.zip(r-4.5)
nocturn_1.1.3.tgz(r-4.6-any)nocturn_1.1.3.tgz(r-4.5-any)
nocturn_1.1.3.tar.gz(r-4.7-any)nocturn_1.1.3.tar.gz(r-4.6-any)
nocturn_1.1.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
nocturn/json (API)
NEWS

# Install 'nocturn' in R:
install.packages('nocturn', repos = c('https://chronopsychiatry.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/chronopsychiatry/ambient-bd-nocturn/issues

Datasets:

On CRAN:

Conda:

ambient-bd

4.11 score 3 scripts 64 exports 75 dependencies

Last updated from:8a19c53149. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK179
source / vignettesOK255
linux-release-x86_64OK146
macos-release-arm64OK153
macos-oldrel-arm64OK181
windows-develOK154
windows-releaseOK121
windows-oldrelOK120
wasm-releaseOK138

Exports:check_epoch_colnamescheck_session_colnamescheck_suggestschronotypeclean_epochsclean_sessionscomposite_phase_deviationfilter_by_age_rangefilter_by_night_rangefilter_by_sexfilter_epochs_from_sessionsget_colget_colnamesget_epoch_colnamesget_epochs_summaryget_non_complying_sessionsget_removed_sessionsget_session_colnamesget_sessions_summaryget_time_per_daygroup_epochs_by_nightgroup_sessions_by_nightinterdaily_stabilityis_iso8601_datetimeload_batchload_epochsload_sessionsmax_timemean_timemin_timenocturnparse_dateparse_timeplot_bedtimes_waketimesplot_hypnogramplot_sleep_bubblesplot_sleep_clockplot_sleep_spiralplot_timeseriesplot_timeseries_sessionsread_edf_epochsread_edf_sessionsremove_sessions_no_sleepsd_timeselect_devicesselect_subjectsset_colnamesset_data_typeset_min_sleep_periodset_min_time_in_bedset_session_sleep_onset_rangeset_session_start_time_rangeshift_times_by_12hshow_log_oncesleep_regularity_indexsleep_reportsleeptimes_boxplotsleeptimes_densitysleeptimes_histogramsocial_jet_lagtime_difftime_to_hoursupdate_datewrite_log

Dependencies:askpassbase64encbootbslibcachemcellrangercircularclicommonmarkcpp11crayoncurldigestdplyredfReaderfarverfastmapfontawesomefsgenericsggnewscaleggplot2gluegtablehmshtmltoolshttpuvisobandjquerylibjsonlitelabelinglaterlifecyclelubridatemagrittrmemoisemimemvtnormotelpillarpkgconfigprettyunitsprogresspromisespurrrqpdfR6rappdirsRColorBrewerRcppreadxlrematchrlangrsvgS7sassscalesshinyshinyalertsourcetoolsstringistringrsvgeditsystibbletidyrtidyselecttimechangeutf8uuidvctrsviridisLitewithrxml2xtable

Readme and manuals

Help Manual

Help pageTopics
Check whether suggested packages are installedcheck_suggests
Calculate the Chronotypechronotype
Clean epoch dataclean_epochs
Clean session dataclean_sessions
Calculate Composite Phase Deviation (CPD)composite_phase_deviation
Example Epoch dataexample_epochs
Example Epoch data (Somnofy API v1)example_epochs_v1
Example Sessions dataexample_sessions
Example Sessions data (Somnofy API v1)example_sessions_v1
Filter sessions by age rangefilter_by_age_range
Filter sessions for nights within a night rangefilter_by_night_range
Filter by sexfilter_by_sex
Filter epochs based on session IDsfilter_epochs_from_sessions
Get a column from a dataframe safelyget_col
Get standard column names for a data frame (sessions or epochs)get_colnames
Get a list of standard column names for epochs dataget_epoch_colnames
Summarise epoch informationget_epochs_summary
Get non-complying sessions (i.e. where there is more than one session on the same day)get_non_complying_sessions
Get a table of sessions that were removed during filteringget_removed_sessions
Get a list of standard column names for sessions dataget_session_colnames
Make a summary of session informationget_sessions_summary
Calculate the number of time units in a dayget_time_per_day
Create a grouping by night for epoch datagroup_epochs_by_night
Create a grouping by night for session datagroup_sessions_by_night
Calculate Interdaily Stability (IS)interdaily_stability
Check if a column contains ISO 8601 datetime stringsis_iso8601_datetime
Load session or epoch data in batch modeload_batch
Load epoch dataload_epochs
Load session dataload_sessions
Calculate the maximum time from 12pm to 12pmmax_time
Calculate the mean time from a vector of time stringsmean_time
Calculate the minimum time from 12pm to 12pmmin_time
nocturn appnocturn
Parse a vector of date strings into Date objectsparse_date
Parse a vector of time strings into POSIXct objectsparse_time
Plot bedtimes and waketimesplot_bedtimes_waketimes
Plot Hypnogramplot_hypnogram
Plot Sleep Bubblesplot_sleep_bubbles
Plot Sleep Clockplot_sleep_clock
Plot Sleep Spiralplot_sleep_spiral
Plot epoch time series data for a given variableplot_timeseries
Plot session time series data for a given variableplot_timeseries_sessions
Read EDF Epochsread_edf_epochs
Read EDF Sessionsread_edf_sessions
Remove sessions with no sleepremove_sessions_no_sleep
Calculate the circular standard deviation of a vector of timessd_time
Select devices by IDselect_devices
Select subjects by IDselect_subjects
Set column names for a data frame (sessions or epochs)set_colnames
Set the type attribute for a data frameset_data_type
Set minimum sleep periodset_min_sleep_period
Set minimum time in bedset_min_time_in_bed
Set sleep onset time rangeset_session_sleep_onset_range
Set session start time rangeset_session_start_time_range
Shift times to break at 12 pmshift_times_by_12h
Calculate the Sleep Regularity Index (SRI)sleep_regularity_index
Generate a patient sleep report in PDF formatsleep_report
Plot boxplots for sleep onset, midsleep, and wakeup timessleeptimes_boxplot
Plot density curves for sleep onset, midsleep, and wakeup times with a dashed line showing the mediansleeptimes_density
Plot histograms for sleep onset, midsleep, and wakeup timessleeptimes_histogram
Calculate Social Jet Lagsocial_jet_lag
Compute the forward time difference from t1 to t2 (wrapping at 24)time_diff
Convert time vector to numeric hourstime_to_hours
Update the date component of a POSIXct time objectupdate_date