Screen growth curves according to JGZ guidelines
Usage
screen_growth(
txt = "",
loc = "",
format = "1.0",
ynames = c("hgt", "wgt", "hdc"),
na.omit = TRUE,
...
)
Arguments
- txt
A JSON string, URL or file
- loc
Alternative to
txt
. Location where input data is uploaded. Argumentloc
is deprecated and will disappear in Nov 2022; please usesession
instead.- format
String. JSON data schema version number. There are currently three schemas supported:
"1.0"
,"1.1"
,"2.0"
and"3.0"
. Formats"1.0"
and"1.1"
are included for backward compatibility only. Useformat = "3.0"
for new applications.- ynames
Character vector identifying the measures to be screened. By default,
ynames = c("hgt", "wgt", "hdc")
.- na.omit
A logical indicating whether records with a missing
x
(age) ory
(yname) should be removed. Defaults toTRUE
.- ...
Ignored
Examples
host <- "http://localhost"
fn <- system.file("testdata", "client3.json", package = "james")
if (FALSE) { # \dontrun{
# first upload, then screen
r1 <- jamesclient::james_post(path = "data/upload", txt = fn)
location <- jamesclient::get_url(r1, "location")
location
screen_growth(loc = location)
session <- jamesclient::get_url(r1, "session")
session
screen_growth(session = session)
# upload & screen
screen_growth(fn)
} # }