qd_tidy

qd_tidy(object, item = 1:nrow(object))

Arguments

object

A tibble object produced by qd_read()

item

The row number of drawing to tidy

Value

A tibble object with the x and y coordinate of each stroke

Examples

apple <- qd_read("apple")
#> QuickDraw file: apple.ndjson has been downloaded already!
qd_tidy(apple,1)
#> # A tibble: 39 x 4 #> item stroke x y #> <chr> <chr> <int> <dbl> #> 1 1 1 255 255 #> 2 1 1 255 255 #> 3 1 2 255 255 #> 4 1 2 255 255 #> 5 1 3 255 255 #> 6 1 3 255 255 #> 7 1 4 255 255 #> 8 1 4 254 254 #> 9 1 5 131 205 #> 10 1 5 124 216 #> # … with 29 more rows