I am new in R lang. , and writing a code to convert Edf files to png but I got this error
Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L, :
invalid value 0 for 'digits' argument
but I am not using the prettyNum function
I do not Know where is the problem
any one can help to me
my thanks
Hi!
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
I am using edf files dataset
pdf library
png library
generate_eeg_waveforms <- function(mode = "seizure",
which.expert = NA,
annotations.file = NA,
patient.IDs,
window,
down.sampling.factor = 4,
non.seizures.chunks = 10,
preprocessing = FALSE,
random = TRUE,
format = "png", # or pdf
save.to.file = FALSE,
dir) {
}
and the error was Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L, :
invalid value 0 for 'digits' argument
You are showing a mere function definition with no body ? This makes no sense in relation to your opening statements.
sorry, What I should to do
I deleted the bracket but I got same error
generate_eeg_waveforms(
- mode = "seizure",
- which.expert = we[1],
- annotations.file = ann.f[1],
- patient.IDs = p.ID,
- window = 10,
- down.sampling.factor = 4,
- non.seizures.chunks = 10,
- preprocessing = FALSE,
- random = FALSE,
- format = "png",
- save.to.file = TRUE,
- dir = dir
- )
Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L, :
invalid value 0 for 'digits' argument
I have no knowledge of this function or how it should work. What package is it from ?
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.