Learn R Programming

vindecodr (version 0.1.1)

decode_vin: Use the NHTSA API to Decode VINs

Description

Use the NHTSA API to Decode VINs

Usage

decode_vin(vin, ...)

Arguments

vin

either a single vehicle identification number in a character string, or multiple vehicle identification numbers in a character vector.

...

additional arguments passed to the url builder functions.

Value

a data frame with the VIN, Make, Model, Model Year, Fuel Type, and Gross Vehicle Weight Rating (GVWR) for the specified VINs.

Examples

Run this code
# NOT RUN {
# Decode a single VIN:
decode_vin("JHLRD68404C018253")

# Decode multiple VINs:
decode_vin(c("JHLRD68404C018253", "JH4DA9450MS001229"))
# }

Run the code above in your browser using DataLab