Nothing
Code
cereal_to_json(df$a)
Error <rlang_error>
`data` must be a data frame, not the number 1.
Code
json
Output
{
"a": {
"type": "numeric",
"example": "1",
"details": []
},
"b": {
"type": "integer",
"example": "2",
"details": []
},
"c": {
"type": "Date",
"example": "2023-01-01",
"details": []
},
"d": {
"type": "POSIXct",
"example": "2019-01-01",
"details": {
"tzone": "America/New_York"
}
},
"e": {
"type": "character",
"example": "x",
"details": []
},
"f": {
"type": "factor",
"example": "blue",
"details": {
"levels": ["blue", "green", "red"]
}
},
"g": {
"type": "ordered",
"example": "small",
"details": {
"levels": ["small", "medium", "large"]
}
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.