This function removes specified recordings from an ITS file, adjusts the recording start and end centisecond counts, then saves a NEW ITS file with the name "originalname_edited.its".

For more information, including example outputs and explanations of all output columns, see https://htanderson.github.io/ITSbin/

remove_recordings(
  ITS.folder,
  ITS.file,
  edited.ITS.folder,
  recordings.to.remove
)

Arguments

ITS.folder

Directory (string) containing ITS files.

ITS.file

Single .its file to be altered (string)

edited.ITS.folder

Directory (string) to store edited ITS file.

recordings.to.remove

Integer: Recording number(s) to be removed?

Value

An its/xml file

Examples

if (FALSE) { remove_recordings( ITS.folder = "SERVER/ITS_Files/ITS", ITS.file = "subj001.its", recordings.to.remove = 1) }