| as.data.frame.genderapi | R Documentation |
Flattens a prediction (one row) or a batch (one row per item, in
submission order) into a data frame. JSON null becomes NA.
confidence is copied unchanged; it is not converted into a percentage
or probability. The original list keeps every field, including fields not
shown here.
## S3 method for class 'genderapi_prediction'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
## S3 method for class 'genderapi_batch'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
A |
row.names, optional |
Ignored; present for compatibility with the generic. |
... |
Ignored. |
Columns: index, id, charged_credits (batch only), input_type,
input_value, gender, result_status, reason, confidence,
confidence_kind, sample_count, source, name, country,
country_source, match_name, match_method, match_scope,
match_country, and for batches error_status, error_code,
error_detail.
A data frame.
res <- structure(
list(data = list(gender = NULL, result_status = "unknown",
reason = "not_found", confidence = NULL,
confidence_kind = NULL, source = "none"),
meta = list()),
class = c("genderapi_prediction", "genderapi_response")
)
as.data.frame(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.