Or ?file.path for a more OS- independent approach.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live:
?paste
Sent from my iPad
On Aug 2, 2013, at 6:20, Robert U wrote:
> Dear R-users,
>
> I am quite sure this is a beginner question, but i cannot manager to find the
> answer on the Internet...
>
>
> I am using write.table function inside some kind of loop. I'd like to write
> my tables in
Dear R-users,
I am quite sure this is a beginner question, but i cannot manager to find the
answer on the Internet...
I am using write.table function inside some kind of loop. I'd like to write my
tables in different folders without having to change the path inside the
function every time, b
I would bet the problem is end-of-line convention. This is a very old problem
of text file conversion that has many solutions, none of which should be
addressed by R. Rather, you should use any of the many standard file transfer
mechanisms that understand EOL issues in text files, rather than tr
Ah.
On Thu, May 30, 2013 at 6:56 PM, Gary Dong wrote:
> I am working in Windows system. But a software I am using requires data
> input in ascii (.dat, delimiters can be tabs or spaces). I was able to save
> the data into .dat (ascii) from SPSS, but it keeps causing problems. Thank
> you!
Don't
I am working in Windows system. But a software I am using requires data
input in ascii (.dat, delimiters can be tabs or spaces). I was able to save
the data into .dat (ascii) from SPSS, but it keeps causing problems. Thank
you!
Gary
On Thu, May 30, 2013 at 3:51 PM, Sarah Goslee wrote:
> On Thu,
On Thu, May 30, 2013 at 6:35 PM, Gary Dong wrote:
> Dear R users,
>
> I have a data set in .csv and I hope to convert it to .dat (ascii) so it
> can work in an UNIX environment. Anyone can help me? Thank you!
Please expand. Why can't you work with csv in a UNIX environment?
I do it all the time.
Dear R users,
I have a data set in .csv and I hope to convert it to .dat (ascii) so it
can work in an UNIX environment. Anyone can help me? Thank you!
Gary
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.
?write.table
write.table(cars, quote=FALSE)
John Kane
Kingston ON Canada
> -Original Message-
> From: wewol...@gmail.com
> Sent: Thu, 30 May 2013 10:13:26 +0200
> To: r-help@r-project.org
> Subject: [R] write table without quotation marks in column names
>
>
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 indic
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, r
Hi
write.table
likes to quote (") the column and row names.
Is there a way to switch it off?
Witold
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the post
CSV files are on disk, with filenames. You can call them whatever you want, but
they are not variables in R.
Data frames are variables in memory. You can read any CSV file into any data
frame you like, but it replaces the original contents of the data frame
completely. You can also write a data
Hi Jeff,
I got it...Thank you for your help!
On Wed, Sep 26, 2012 at 11:53 AM, s.s.m. fauzi wrote:
> Hi Jeff,
> Do I need to call the .csv template to perform this operation?
>
> Shukor
>
>
> On Wed, Sep 26, 2012 at 11:50 AM, Jeff Newmiller > wrote:
>
>> Perhaps you might try
>>
>> template[
Hi Jeff,
Do I need to call the .csv template to perform this operation?
Shukor
On Wed, Sep 26, 2012 at 11:50 AM, Jeff Newmiller
wrote:
> Perhaps you might try
>
> template[ , names(tbl) ] <- tbl
>
> where I have used tbl instead of table, for reasons previously mentioned.
> -
Perhaps you might try
template[ , names(tbl) ] <- tbl
where I have used tbl instead of table, for reasons previously mentioned.
---
Jeff NewmillerThe . . Go Live...
DCN:Basic
Hi Jeff,
Thank you for the respond.
I'm not really familiar with cbind.
Anyway, there is a duplication in my input and the template, and I want to
preserve the column order.
Shukor
On Wed, Sep 26, 2012 at 11:30 AM, Jeff Newmiller
wrote:
> Thanks for posting dput data, but I don't understand yo
Thanks for posting dput data, but I don't understand your question.
are you familiar with cbind?
Is there duplication of column names in your input table and template? Are they
always duplicated in the template? What characteristics of the template are you
trying to preserve? Column order?
Othe
Hi,
I have a table with data, as below:
dput(table):
structure(list(Adrian.Cole = c(0L, 0L, 0L, 0L, 0L, 0L), Alison.Wong =
c(0L, 0L, 0L, 0L, 0L, 0L), Andrei.Savu = c(0L, 0L, 0L, 0L, 0L, 0L),
Bruno.Dumon = c(0L, 0L, 0L, 0L, 0L, 0L), Edward.J..Yoon = c(0L, 0L, 0L,
0L, 0L, 0L), Eugene.Koontz =
Yes. See the append option in write.table. This is okay for outputing results
but you will not be able to use the data in R.
--- On Tue, 8/5/08, Rajasekaramya <[EMAIL PROTECTED]> wrote:
> From: Rajasekaramya <[EMAIL PROTECTED]>
> Subject: [R] write .table
> To:
hi there
Can i write two objects in one file.
one is a list and another is a vector.
The vector here is the names of the list.so can i write
for(i in 1:60) # i have 60 list elements.
{
write.table(names(mylist[[i]],mylist[[i]],filename=test.txt,sep="\t",append=TRUE)
}
my testfile.txt should hav
21 matches
Mail list logo