It looks like your original data may be tab seperated, if that is the case then 
just use read.delim or use sep='\t' in read.table or scan.

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTECTED]
(801) 408-8111



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of David Arnold
> Sent: Friday, June 13, 2008 5:15 PM
> To: [email protected]
> Subject: [R] Importing data with different delimters
>
> All,
>
> I have a data file with 56 entries that looks like this:
>
> City State      JanTemp Lat     Long
> Mobile, AL      44      31.2    88.5
> Montgomery, AL  38      32.9    86.8
> Phoenix, AZ     35      33.6    112.5
> Little Rock, AR 31      35.4    92.8
> Los Angeles, CA 47      34.3    118.7
> San Francisco, CA       42      38.4    123.0
>
> I would like to "read" this data into a dataframe. Is it
> possible to do without editing the datafile?
>
> D.
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to