Cause of Error 1:nrow(X) : argument NA / NaN

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Cause of Error 1:nrow(X) : argument NA / NaN

Jean-Louis Abitbol-2
Dear R Helpers

I am trying to get function smedian.hilow to work using Hmisc summarize
on variable conc in dataframe pkindivmtd by time and dose using:

sconc <- summarize(conc,llist(time,dose),smedian.hilow)

I get the error message

Erreur dans 1:nrow(X) : argument NA / NaN

Contents of pkindivmtd is

> contents(pkindivmtd)

Data frame:pkindivmtd   1296 observations and 9 variables    Maximum #

                Labels Units Levels Storage
dose              Dose    mg        integer
day                                 integer
hour                                integer
subject        Subject              integer
conc     Concentration ng/mL         double
fday                             10 integer
fsubject                         37 integer
fdose             Dose            4 integer
time              Time hours        integer


What I am doing wrong ?

Sorry for not providing a reproducible example as when I generate
randomly the 3 variables it works !

Many thanks,


[hidden email] mailing list
PLEASE do read the posting guide!