Re: [R] reading in hexadecimal data - not working with data ending in E

2014-10-09 Thread mark . hogue
Thanks to all for your help. The colClasses option did do the trick. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

Re: [R] reading in hexadecimal data - not working with data ending in E

2014-10-08 Thread John McKown
On Wed, Oct 8, 2014 at 6:02 AM, wrote: > I am trying to read in data from an instrument that is recorded in > hexadecimal format. Using either: > > y.hex <- read.table(file="hex.data", as.is=TRUE) > > or > > y.hex <- read.table(file="hex.data", text=TRUE) > > gets all the data in just fin

Re: [R] reading in hexadecimal data - not working with data ending in E

2014-10-08 Thread Duncan Murdoch
On 08/10/2014 7:02 AM, mark.ho...@srs.gov wrote: I am trying to read in data from an instrument that is recorded in hexadecimal format. Using either: y.hex <- read.table(file="hex.data", as.is=TRUE) or y.hex <- read.table(file="hex.data", text=TRUE) gets all the data in just fine ex

Re: [R] reading in hexadecimal data - not working with data ending in E

2014-10-08 Thread William Dunlap
I did not see a reproducible example, but you should use colClasses="character" to read in the data as character, then use something like as.hexmode() to convert it to integers. E.g., > z <- read.table(text="ColA ColB\n1e 33\n2e 44\n10 5e\n", header=TRUE, colClasses="character") > str(z)

[R] reading in hexadecimal data - not working with data ending in E

2014-10-08 Thread mark . hogue
I am trying to read in data from an instrument that is recorded in hexadecimal format. Using either: y.hex <- read.table(file="hex.data", as.is=TRUE) or y.hex <- read.table(file="hex.data", text=TRUE) gets all the data in just fine except points like `055E` or `020E`. In these cas