Open jeffeaton opened 7 months ago
In function dp_read_childart(), error in code to convert 'is percentage' 0/1 values to logical. They were being read as strings ("0" or "1") which as.logical() was converting to NA.
dp_read_childart()
"0"
"1"
as.logical()
NA
Coerce them to numeric, then check ==1 to convert to logical.
==1
In function
dp_read_childart()
, error in code to convert 'is percentage' 0/1 values to logical. They were being read as strings ("0"
or"1"
) whichas.logical()
was converting toNA
.Coerce them to numeric, then check
==1
to convert to logical.