Message-ID: <CACxE24=ED_d8DtF1ZqjoX=wHbhxTaqpWnyWDukL-2TVU-2em9w@mail.gmail.com>
Date: 2012-08-13T03:33:39Z
From: Erin Hodgess
Subject: 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:
> add1
results.formatted_address
"200 W Rosamond St, Houston, TX 77076, USA"
> add1[1][32:36]
<NA> <NA> <NA> <NA> <NA>
NA NA NA NA NA
> str(add1)
Named chr "200 W Rosamond St, Houston, TX 77076, USA"
- attr(*, "names")= chr "results.formatted_address"
>
What am I not seeing, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com