I am reading a list of numbers from my clipboard, and have been
successful, except I can't make a histogram as R doesn't recognize my
variable as numeric. I know I need to use as.is, but the specifics
escape me.
I have used x-read.table(clipboard, header=F) to import from a txt
file. How
If read.table() is not recognizing the data as numeric, there's probably
something in the content that confused read.table(). You can try using
x - scan(clipboard)
instead and see if and how it chokes.
Andy
From: Janet Gannon
I am reading a list of numbers from my clipboard, and have
Look at the help for:
?as.numeric
HTH, Andy
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Janet Gannon
Sent: Monday, March 15, 2004 7:04 AM
To: [EMAIL PROTECTED]
Subject: [R] Simple numeric as.is question
I am reading a list of numbers from
Janet -
Try x2 - as.numeric(as.character(x))
hist(x2)
I'm not a Windows user, so I can't test this before sending.
It might solve the problem, might not.
(Flame !! : This is just ONE MORE example of the difficulties
caused by the default behavior of read.table() to make things
into
Janet Gannon wrote:
I am reading a list of numbers from my clipboard, and have been
successful, except I can't make a histogram as R doesn't recognize my
variable as numeric. I know I need to use as.is, but the specifics
escape me.
I have used x-read.table(clipboard, header=F) to import
On Mon, Mar 15, 2004 at 09:04:05AM -0500, Janet Gannon wrote:
I am reading a list of numbers from my clipboard, and have been
successful, except I can't make a histogram as R doesn't recognize my
variable as numeric. I know I need to use as.is, but the specifics
escape me.
I have used
Timur Elzhov [EMAIL PROTECTED] writes:
On Mon, Mar 15, 2004 at 09:04:05AM -0500, Janet Gannon wrote:
I am reading a list of numbers from my clipboard, and have been
successful, except I can't make a histogram as R doesn't recognize my
variable as numeric. I know I need to use as.is,
Janet Gannon wrote:
I am reading a list of numbers from my clipboard, and have been
successful, except I can't make a histogram as R doesn't recognize my
variable as numeric. I know I need to use as.is, but the specifics
escape me.
I have used x-read.table(clipboard, header=F) to import from
Janet Gannon wrote:
I am reading a list of numbers from my clipboard, and have been
successful, except I can't make a histogram as R doesn't recognize my
variable as numeric. I know I need to use as.is, but the specifics
escape me.
I have used x-read.table(clipboard, header=F) to import from
From: Peter Dalgaard
Sent: Monday, March 15, 2004 3:51 PM
To: Timur Elzhov
Cc: [EMAIL PROTECTED]; Janet Gannon
Subject: Re: [R] Simple numeric as.is question
Timur Elzhov [EMAIL PROTECTED] writes:
On Mon, Mar 15, 2004 at 09:04:05AM -0500, Janet Gannon wrote:
I am reading a list
:[EMAIL PROTECTED] On Behalf Of Janet Gannon
Sent: Monday, March 15, 2004 7:04 AM
To: [EMAIL PROTECTED]
Subject: [R] Simple numeric as.is question
I am reading a list of numbers from my clipboard, and have been
successful, except I can't make a histogram as R doesn't recognize my
On Mon, 15 Mar 2004, Tom Blackwell wrote:
Try x2 - as.numeric(as.character(x))
hist(x2)
I'm not a Windows user, so I can't test this before sending.
It might solve the problem, might not.
(Flame !! : This is just ONE MORE example of the difficulties
caused by the default behavior
12 matches
Mail list logo