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
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
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
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)
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
5 matches
Mail list logo