Re: [R] Write-table and dynamic access path

2013-08-02 Thread Jeff Newmiller
Or ?file.path for a more OS- independent approach. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live:

Re: [R] Write-table and dynamic access path

2013-08-02 Thread Jim Holtman
?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

[R] Write-table and dynamic access path

2013-08-02 Thread Robert U
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

Re: [R] write table in ascii

2013-05-30 Thread Jeff Newmiller
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

Re: [R] write table in ascii

2013-05-30 Thread Sarah Goslee
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

Re: [R] write table in ascii

2013-05-30 Thread Gary Dong
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,

Re: [R] write table in ascii

2013-05-30 Thread Sarah Goslee
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.

[R] write table in ascii

2013-05-30 Thread Gary Dong
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.

Re: [R] write table without quotation marks in column names....

2013-05-30 Thread John Kane
?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 > >

Re: [R] write table without quotation marks in column names....

2013-05-30 Thread Duncan Murdoch
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

Re: [R] write table without quotation marks in column names....

2013-05-30 Thread Pascal Oettli
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

[R] write table without quotation marks in column names....

2013-05-30 Thread 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]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

Re: [R] Write table with data in other .csv template

2012-09-25 Thread Jeff Newmiller
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

Re: [R] Write table with data in other .csv template

2012-09-25 Thread s.s.m. fauzi
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[

Re: [R] Write table with data in other .csv template

2012-09-25 Thread s.s.m. fauzi
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. > -

Re: [R] Write table with data in other .csv template

2012-09-25 Thread Jeff Newmiller
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

Re: [R] Write table with data in other .csv template

2012-09-25 Thread s.s.m. fauzi
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

Re: [R] Write table with data in other .csv template

2012-09-25 Thread Jeff Newmiller
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

[R] Write table with data in other .csv template

2012-09-25 Thread s.s.m. fauzi
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 =

Re: [R] write .table

2008-08-06 Thread John Kane
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:

[R] write .table

2008-08-05 Thread Rajasekaramya
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