Re: [R] zeros in double matrix rather than character matrix

2012-11-28 Thread Irucka Embry
g >Subject: Re: [R] zeros in double matrix rather than character matrix > >Irucka, > >It looks like your file, Input_Parameter.csv, is not delimited with commas, ",", >but with semicolons, ";". What results do you get from submitting these commands? > >

Re: [R] zeros in double matrix rather than character matrix

2012-11-28 Thread Irucka Embry
@usgs.gov >Cc: r-help@r-project.org >Subject: RE: [R] zeros in double matrix rather than character matrix > >In read.csv() you specify sep="," but your data indicates that the separator >is ";". I'm not sure what is going on with your header line since read.csv >

Re: [R] zeros in double matrix rather than character matrix

2012-11-28 Thread Irucka Embry
Hi Arun, thank-you! That small change in the code worked perfectly. Irucka <-Original Message-> >From: arun [smartpink...@yahoo.com] >Sent: 11/28/2012 8:36:37 AM >To: iruc...@mail2world.com >Cc: r-help@r-project.org >Subject: Re: [R] zeros in double matrix rather

Re: [R] zeros in double matrix rather than character matrix

2012-11-28 Thread Jean V Adams
;1.0996;3.0952;0.94324;2.3146;0.9822;1.0752;2. > 6336;4.7202;0.82122;1.2563;0.73988;1.7051;2.3569;1.4296;0.85812;4. > 8422;1.9687;2.511;4.5446;1.9065;2.3899;2.2784;4.174;2.6654;4.8175;3. > 9665;3.902;3.5763;1.337;4.0643;3.6533;0.78097;1.6724;4.957;3.7316;1. > 7372;4.9859;4.2946;4.3697;2

Re: [R] zeros in double matrix rather than character matrix

2012-11-28 Thread Irucka Embry
ov] >Sent: 11/28/2012 7:21:16 AM >To: iruc...@mail2world.com >Cc: r-help@r-project.org >Subject: Re: [R] zeros in double matrix rather than character matrix > >Irucka, > >What is the code that you are using that results in a character matrix? >What does the cha

Re: [R] zeros in double matrix rather than character matrix

2012-11-28 Thread Irucka Embry
-> >From: Jean V Adams [jvad...@usgs.gov] >Sent: 11/28/2012 7:21:16 AM >To: iruc...@mail2world.com >Cc: r-help@r-project.org >Subject: Re: [R] zeros in double matrix rather than character matrix > >Irucka, > >What is the code that you are using that resul

Re: [R] zeros in double matrix rather than character matrix

2012-11-28 Thread Jean V Adams
Irucka, What is the code that you are using that results in a character matrix? What does the character matrix look like? If your matrix is called m, submit the following code and share the results with us. m[1:6, ] as.numeric(m[1:6, ]) Jean iembry wrote on 11/27/2012 11:35:15 PM: > > Hi,

[R] zeros in double matrix rather than character matrix

2012-11-27 Thread iembry
Hi, how are you? I have 1000 total columns with 100 rows and I have shown 4 columns of 100 rows below. I want the zeros to be read in as numerical or integer values rather than a character. Right now I have a 100x0 character matrix rather than a 100x1000 double matrix. What do I need to do to re