write table without quotation marks in column names....

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

write table without quotation marks in column names....

Witold E Wolski
Hi

write.table
likes to quote (") the column and row names.

Is there a way to switch it off?

Witold

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: write table without quotation marks in column names....

Pascal Oettli-2
Hi,

Did you read the help page?

?write.table

Arguments

quote
a logical value (TRUE or FALSE) or a numeric vector. If TRUE, any
character or factor columns will be surrounded by double quotes. If a
numeric vector, its elements are taken as the indices of columns to
quote. In both cases, row and column names are quoted if they are
written. If FALSE, nothing is quoted.

Regards,
Pascal



On 05/30/2013 05:13 PM, Witold E Wolski wrote:

> Hi
>
> write.table
> likes to quote (") the column and row names.
>
> Is there a way to switch it off?
>
> Witold
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: write table without quotation marks in column names....

Duncan Murdoch-2
On 13-05-30 4:28 AM, Pascal Oettli wrote:

> Hi,
>
> Did you read the help page?
>
> ?write.table
>
> Arguments
>
> quote
> a logical value (TRUE or FALSE) or a numeric vector. If TRUE, any
> character or factor columns will be surrounded by double quotes. If a
> numeric vector, its elements are taken as the indices of columns to
> quote. In both cases, row and column names are quoted if they are
> written. If FALSE, nothing is quoted.

Those last two sentences seem contradictory at first, but they are not.
  The "both cases" in the second last one refers to the cases quote=TRUE
and having it set to a numeric vector.

Duncan

>
> Regards,
> Pascal
>
>
>
> On 05/30/2013 05:13 PM, Witold E Wolski wrote:
>> Hi
>>
>> write.table
>> likes to quote (") the column and row names.
>>
>> Is there a way to switch it off?
>>
>> Witold
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> [hidden email] mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: write table without quotation marks in column names....

John Kane
In reply to this post by Witold E Wolski
?write.table

 write.table(cars, quote=FALSE)

John Kane
Kingston ON Canada


> -----Original Message-----
> From: [hidden email]
> Sent: Thu, 30 May 2013 10:13:26 +0200
> To: [hidden email]
> Subject: [R] write table without quotation marks in column names....
>
> Hi
>
> write.table
> likes to quote (") the column and row names.
>
> Is there a way to switch it off?
>
> Witold
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.