Converts various representations of a Google Sheet into a sheets_id object. Anticipated inputs:

This is a generic function.

as_sheets_id(x, ...)

Arguments

x

Something that uniquely identifies a Google Sheet: a sheets_id, URL, or dribble.

...

Other arguments passed down to methods. (Not used.)

Examples

as_sheets_id("abc")
#> [1] "abc" #> attr(,"class") #> [1] "sheets_id" "drive_id"