Skip to content
Prev 303213 / 398503 Next

named character question

Dear R People:

Here is a goofy question:

I want to extract the zip code from an address and here is my work so far:
results.formatted_address
"200 W Rosamond St, Houston, TX 77076, USA"
<NA> <NA> <NA> <NA> <NA>
  NA   NA   NA   NA   NA
Named chr "200 W Rosamond St, Houston, TX 77076, USA"
 - attr(*, "names")= chr "results.formatted_address"
What am I not seeing, please?

Thanks,
Erin