Greg Snow wrote:
> 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.
>
I think that was only half the problem. If you do that, you end up with
one column containing both City and State, comma-separated. P
Hi David,
If the delimier is "tab" try this.
my.df<-read.table("my_file.txt", head=T, sep="\t")
Cheers,
Miltinho
Brazil
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of David Arnold
> > Sent: Friday, June 13, 2008 5:15 PM
> > To: r-hel
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: [EMA
Assuming that the only problem is the blank in the city names, here is
one way of doing it:
> inFile <- textConnection("City State JanTemp Lat Long
+ Mobile, AL 44 31.288.5
+ Montgomery, AL 38 32.986.8
+ Phoenix, AZ 35 33.6112.5
+ Little Rock, AR 31
4 matches
Mail list logo