On Jun 26, 2014, at 12:59 AM, Ron Crump wrote:
> Hi Carol,
>> It might be a primitive question but I have a file of text and there is no
>> separator between character on each line and the strings on each line have
>> the same length. The format is like the following
>>
>> absfjdslf
>> jfdldsk
Hi Carol,
It might be a primitive question but I have a file of text and there is no
separator between character on each line and the strings on each line have the
same length. The format is like the following
absfjdslf
jfdldskjff
jfsldfjslk
When I read the file with read.table("myfile",colCl
On 26/06/14 21:21, carol white wrote:
Hi,
with read.fwf, it works.
But I still don't understand why it doesn't work with read.table
since the sep by default is "", which is the case and in one trial, I
used read.table("myfile",colClasses = "character",
stringsAsFactors=FALSE, and stil didn't
Carol,
while sep="" is the default, it really means 'whitespace', see the
documentation of 'sep'.
Göran Broström
On 2014-06-26 11:21, carol white wrote:
Hi,
with read.fwf, it works.
But I still don't understand why it doesn't work with read.table
since the sep by default is "", which is t
On 26/06/14 20:47, Frede Aakmann Tøgersen wrote:
Hi
Actually I had to read the man before answering Carol. Here it goes:
stringsAsFactors: logical: should character vectors be converted to
factors? Note that this is overridden by 'as.is' and
'colClasses', both of which al
Hi,
with read.fwf, it works.
But I still don't understand why it doesn't work with read.table since the sep
by default is "", which is the case and in one trial, I used
read.table("myfile",colClasses = "character", stringsAsFactors=FALSE, and stil
didn't work but it should have.
Regards,
Service Solutions
T +45 9730 5135
M +45 2547 6050
fr...@vestas.com
http://www.vestas.com
Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sende
Hello,
Try using option stringsAsFactors = FALSE.
Hope this helps,
Rui Barradas
On 26/06/2014 09:32, carol white wrote:
It might be a primitive question but I have a file of text and there is no
separator between character on each line and the strings on each line have the
same length. The
On 26/06/14 19:32, carol white wrote:
It might be a primitive question
All questions are primitive; some questions are more primitive than others.
but I have a file of text and there
is no separator between character on each line and the strings on
each line have the same length. The format
vestas.com/legal/notice
If you have received this e-mail in error please contact the sender.
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of carol white
> Sent: 26. juni 2014 09:33
> To: r-help@r-project.org
>
It might be a primitive question but I have a file of text and there is no
separator between character on each line and the strings on each line have the
same length. The format is like the following
absfjdslf
jfdldskjff
jfsldfjslk
When I read the file with read.table("myfile",colClasses = "cha
11 matches
Mail list logo