[R] Loading EDF files

2019-05-03 Thread Marcelo Mariano Silva
Dear All, I have tried to load an EDF file using the code below and I received the following massage : Error in signals[[sn]]$signal[nextInCSignal[sn]:lastOne] <- samples[[sn]] : replacement has length zero What this massage means? Is there any problem with the EDF file? Code used: hdr <- read

Re: [R] Loading EDF files

2019-05-03 Thread Bert Gunter
Try samples[["sn"]] ? On Fri, May 3, 2019, 9:53 AM Eric Berger wrote: > Hi Mariano, > The problem appears to be that samples[[sn]] has zero length (or is NULL). > Consider the following code which gives the same error message. > > x <- 1:10 > x[1:5] <- as.numeric(NULL) > Error in x[1:5] <-

Re: [R] Loading EDF files

2019-05-03 Thread Eric Berger
Hi Mariano, The problem appears to be that samples[[sn]] has zero length (or is NULL). Consider the following code which gives the same error message. x <- 1:10 x[1:5] <- as.numeric(NULL) Error in x[1:5] <- as.numeric(NULL) : replacement has length zero HTH, Eric On Fri, May 3, 2019 at 4:32 PM M

[R] Loading EDF files

2019-05-03 Thread Marcelo Mariano Silva
Dear All, I have tried to load an EDF file using the code below and I received the following massage : Error in signals[[sn]]$signal[nextInCSignal[sn]:lastOne] <- samples[[sn]] : replacement has length zero What this massage means? Is there any problem with the EDF file? Code used: hdr <- read