Skip to content
Prev 76133 / 398502 Next

Converting characters to numbers in data frames

On 8/25/05, Anon. <bob.ohara at helsinki.fi> wrote:
Try this:

   read.table(textConnection(NAMES), sep = ".")[,2:3]

You may also want to add the col.names= argument to the read.table call
if you want prettier column names.  Also I think Names and Numbers would
be sufficient to distinguish them from potential lower case counterparts.