MethodError: no method matching preprocess_data(::DataFrame, ::Symbol, ::Symbol, ::Symbol, ::Nothing, ::Symbol, ::Bool)
What does this error mean? can someone kindly help to resolve this.
MethodError: no method matching preprocess_data(::DataFrame, ::Symbol, ::Symbol, ::Symbol, ::Nothing, ::Symbol, ::Bool)
What does this error mean? can someone kindly help to resolve this.
Can you please post the function that you are calling, preferable a MRE?
Can you also post the full error message?
pop1 = read_pumas(merodata1, observations = :dv,
id=:id,
time=:time,
amt=:amt,
rate=:rate,
cmt=:cmt,evid=:evid)
I am calling “read_pumas” function
Full error message:
MethodError: no method matching preprocess_data(::DataFrame, ::Symbol, ::Symbol, ::Symbol, ::Nothing, ::Symbol, ::Bool)
Closest candidates are:
preprocess_data(::AbstractDataFrame, ::Any, ::Vector{Symbol}, ::Symbol, ::Union{Nothing, Symbol}, ::Union{Nothing, Symbol}, ::Bool)
@ Pumas /build/_work/PumasSystemImages/PumasSystemImages/julia_depot/packages/Pumas/VyE8h/src/data_parsing/io.jl:1822
Stacktrace:
[1] read_pumas(df::DataFrame; observations::Symbol, covariates::Vector{Symbol}, id::Symbol, time::Symbol, evid::Symbol, amt::Symbol, addl::Symbol, ii::Symbol, cmt::Symbol, rate::Symbol, ss::Symbol, route::Symbol, mdv::Nothing, event_data::Bool, covariates_direction::Symbol, check::Bool, adjust_evid34::Bool)
@ Pumas /build/_work/PumasSystemImages/PumasSystemImages/julia_depot/packages/Pumas/VyE8h/src/data_parsing/io.jl:1698
[2] top-level scope
@ ~/data/code/Jyothi Meropenam/Merpenam.jl:56
It should be observations = [:dv]
observations takes a vector, not a symbol.
pop1 = read_pumas(merodata1, observations = [:dv],
id=:id,
time=:time,
amt=:amt,
rate=:rate,
cmt=:cmt,evid=:evid)
Its solved, thank you for the help.