Changes in version 1.1.4 (2021-09-27) Solved an issue that could result in problems with vignette building. Changes in version 1.1.3 (2021-08-11) Code in the Readme file that violated CRAN policy has been replaced. Changes in version 1.1.2 (2021-04-25) Enhancement: now also files in which a sleep stage (e.g. N3) is missing can be read in. Changes in version 1.1.1 (2021-03-29) Updated the reference and doi to the companion paper by Blume & Cajochen. Created a CITATION file for the publication. Changes in version 1.1.0 (2021-03-02) Bug fix: the load_prep.R function resulted in an error when input files had less than two columns, this has been fixed. Bug fix: in the unlikely event that there is only one REM sleep episode, the code resulted in an error. This has been fixed. Enhancement: the user can now also specify csv files as input files to the SleepCycles() function. Enhancement: the user can now specify in the ‘sleepstart’ argument whether the first NREMP of a night should start with N1 (default) or N2. Changes in version 1.0.1 (2020-12-04) No changes since version 0.8. This is the first version available on CRAN. Changes in version 1.0.0 No changes since version 0.8. This is the first version submitted to CRAN. Changes in version 0.8 First NEWS update. All changes will be documented in this file from now on. This is also the first version available on CRAN.