search for: qmethod

Displaying 20 results from an estimated 45 matches for "qmethod".

Did you mean: method
2005 Jul 07
1
write.csv (PR#7992)
The write.csv() function is currently implemented as function (..., col.names=NA, sep=",", qmethod="double") { write.table(..., col.names=NA, sep=",", qmethod="double") } Surely, it should be function (..., col.names=NA, sep=",", qmethod="double") { write.table(..., col.names=col.names, sep=sep, qmethod=qmethod) } so t...
2005 Jun 29
2
write.csv suggestion
Hello all, I had some trouble recently with write.csv because I couldn't change one of the default options. A quick view of the code showed that the function was not defined in the most optimal way. Currently, write.csv <- function (..., col.names = NA, sep = ",", qmethod = "double") write.table(..., col.names = NA, sep = ",", qmethod = "double") Thus, the options passed along to write.csv are ignored by the function (unless in the ...). Perhaps a better way to define the function is as such (similar to read.csv): write.csv <- f...
2009 Nov 02
1
two small wishes (with code sugegstions) for R-core
...ument append=TRUE is used, a header should not be enforced (may be even be forbidden) # Code suggestion no. 2: please use write.csv <- function (...) { Call <- match.call(write.table, expand.dots = TRUE) for (argname in c("col.names", "sep", "dec", "qmethod")) if (!is.null(Call[[argname]])) warning(gettextf("attempt to set '%s' ignored", argname), domain = NA) rn <- eval.parent(Call$row.names) ap <- eval.parent(Call$append) Call$col.names <- if (is.logical(ap) && ap) FALSE else {i...
2017 Sep 19
0
what do you think about write.table(... qmethod = "excel")?
On Tue, Sep 19, 2017 at 1:04 PM, Paul Johnson <pauljohn32 at gmail.com> wrote: > Last week one of our clients reported trouble with a csv file I > generated with write.table. He said that columns with quotes for > character variables were rejected by their data importer, which was > revised to match the way Microsoft Excel uses quotation marks in > character variables. I
2010 Apr 08
1
Using read.table to read file created with read.table and qmethod = "escape"
df <- data.frame(a = "a\"b") write.table(df, "test.csv", sep = ",", row = F) Is there any to load test.csv into R correctly? I've tried the following: > read.table("test.csv", sep = ",") [1] V1 <0 rows> (or 0-length row.names) Warning message: In read.table("test.csv", sep = ",") : incomplete final line
2008 Oct 24
1
write.csv(..., col.names = FALSE) (PR#13202)
...eam, in write.csv() it is not possible to set both row.names = FALSE, col.names = FALSE since the col.names = FALSE gets overwritten: > write.csv function (...) { Call <- match.call(expand.dots = TRUE) for (argname in c("col.names", "sep", "dec", "qmethod")) if (!is.null(Call[[argname]])) warning(gettextf("attempt to set '%s' ignored", argname), domain = NA) rn <- eval.parent(Call$row.names) Call$col.names <- if (is.logical(rn) && !rn) TRUE else NA Call$sep <- &qu...
2018 Jul 05
0
write.table with quote=TRUE fails on nested data.frames
...b=I(data.frame(c="OtherVal", d='Four;Five;Six', e=4)), f=5) write.table(df, "~/Desktop/Tempfile.csv", quote = T, col.names = NA, sep = ";", dec = ",", qmethod = "double") The ?four;five;six? string is stored unquoted, so read.table (or read.csv) breaks down. This also affects write.csv and write.csv2, but I?ve written a patch, See here-under. Anyone who could file this for me? Best regards, Emil Bode New write.table, note that its environmen...
2018 Apr 19
3
R Bug: write.table for matrix of more than 2, 147, 483, 648 elements
...e fix but before such deep rewriting is undertaken may the following small fix (in addition to "(R_xlen_t)nr * nc") will be sufficient for cases where nr and nc are in int range but their product can reach long vector limit: replace ??? tmp = EncodeElement2(x, i + j*nr, quote_col[j], qmethod, ??? ??? ??? ??? ??? &strBuf, sdec); by ??? tmp = EncodeElement2(VECTOR_ELT(x, (R_xlen_t)i + j*nr), 0, quote_col[j], qmethod, ??? ??? ??? ??? ??? &strBuf, sdec); Serguei
2017 Sep 20
0
what do you think about write.table(... qmethod = "excel")?
On Tue, Sep 19, 2017 at 4:45 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > > > That's true, but if that's what they want to do, and they're willing to pay > to be able to write files that imitate Excel, then why not do what they ask? > > On the other hand, if they aren't willing to pay for the work, then you > should lecture them on how silly
2003 Nov 06
2
Summary: How to represent pure linefeeds chr(10) under R for Windows
...t inconsistent: need binary connection to read and text connection to write data <- data.frame(a='c\nd', b='"???????"') # writing in text mode replaces \n by \r\n file <- file(filename, "w") write.table(data, row.names=FALSE, file=file, sep=";", qmethod="double") close(file) # writing in binary mode does not replace \n, however the real line endings are also \n instead of \r\n file <- file(filename, "wb") write.table(data, row.names=FALSE, file=file, sep=";", qmethod="double") close(file) # using the eo...
2011 Mar 01
3
error in saved .csv
An embedded and charset-unspecified text was scrubbed... Name: nem el?rhet? URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110301/5c9ded63/attachment.pl>
2017 Mar 20
2
IO error when writing to disk
...tils/src/io.c (r?vision 72357) +++ src/library/utils/src/io.c (copie de travail) @@ -1120,12 +1120,23 @@ for(int i = 0; i < nr; i++) { if(i % 1000 == 999) R_CheckUserInterrupt(); if(!isNull(rnames)) - Rconn_printf(con, "%s%s", - EncodeElement2(rnames, i, quote_rn, qmethod, - &strBuf, sdec), csep); + + if(Rconn_printf(con, "%s%s", EncodeElement2(rnames, i, quote_rn, qmethod, &strBuf, sdec), csep) < 0) { + error(_("IO error, cannot write table.")); + break; + } + for(int j = 0; j < nc; j++)...
2008 Jun 22
1
readLines problem in iteration
...How can I solve this problem, is there anything wrong with my code? Thanks in advance for your help. write.table(X, file = "model.dat", append = FALSE, sep = " ", eol = "\n", na = "NA", dec = ".", row.names = FALSE, col.names = FALSE, qmethod = c("escape", "double")) mother<-getwd() count <- 0; con<- file("model.dat", open="r") while (length(line) > 0) { line<-readLines(con,n=1) count <- count +1 cat("read row no", count, ",\n&qu...
2007 Nov 08
2
Col.names parameter in write.csv (PR#10411)
Full_Name: Kingsley Oteng-Amoako Version: 2.5.1 OS: Windows 5.1.2600 (Windows XP) Submission from: (NULL) (203.185.215.144) The col.names=false in the write.csv command does not work as documented. Attempting to write a vector to a csv file without column headers does not work as documented. The col.names=false feature on the write.table command does however work and it can thus be coerced
2017 Sep 19
3
what do you think about write.table(... qmethod = "excel")?
Last week one of our clients reported trouble with a csv file I generated with write.table. He said that columns with quotes for character variables were rejected by their data importer, which was revised to match the way Microsoft Excel uses quotation marks in character variables. I explained to them that quoted character variables are virtuous and wise, of course, but they say Microsoft Excel
2012 Jan 23
3
How can I access information stored after I run a command in R?
...################ I get: The MAX3 test using the asy method data: a statistic = 0.5993, p-value = 0.7933 How can one save the result 0.7933 into a file? say: foo <- 0.7933 write.table(foo, file ="/home/foo.txt", sep = " ", row.names=FALSE,col.names=TRUE, quote=FALSE, qmethod = "double") However, instead of typing the value above, I would like to replace it by the macro (scalar, local) that has the accurate p-value. thanks in advance for your help. Tiago
2017 Sep 19
2
what do you think about write.table(... qmethod = "excel")?
On 19/09/2017 4:10 PM, Ista Zahn wrote: > On Tue, Sep 19, 2017 at 1:04 PM, Paul Johnson <pauljohn32 at gmail.com> wrote: >> Last week one of our clients reported trouble with a csv file I >> generated with write.table. He said that columns with quotes for >> character variables were rejected by their data importer, which was >> revised to match the way Microsoft
2009 Oct 08
2
how do I name data frames and files according to the index of a for loop?
...<- some_other_stuff Data_frame_name <- data.frame(Calc_1, Calc_2, Calc_3) write.table(Data_frame_name,file="~/file/goes/here.csv", append = FALSE, sep = "\t",row.names = FALSE, col.names = c("Calc_1", "Calc_2", "Calc_3"),qmethod = "double") } The naming of the data frame and the writing of the file go swimmingly, if I do it ONCE, outside of the for loop. I want to embed the process in the for loop written above, run it 2858 times, and get that many data frames and .csv files that I can then manipulate....
2011 Aug 25
2
Using write.table i have a table with two columns i would like to save it as an excel file
...ite the file path or what to name the file. I would appreciate any feedback. > write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ", + eol = "\n", na = "NA", dec = ".", row.names = TRUE, + col.names = TRUE, qmethod = c("escape", "double"), + fileEncoding = "") "area" "bedrooms" "sale.price" "9" 694 4 192 "10" 905 4 215 "11" 802 4 215 "12" 1366 4 274 "13" 716 4 112.7 "14" 963 4 1...
2005 Nov 10
4
write.table read.table with Dates
...;POSIXct" This looks good (time is not always 00:00:00 ...) This data came from several files, now I want to store the result I have in data.frame Tall and be able to retrieve this quickly some other time. This is what I do: write.table(Tall, file="somefile.csv", sep=",", qmethod="double", row.names=FALSE) Later, I do this to read the file again: fieldnames=c("Begin","test-a","test-b","Eind") T=read.table(file = "somefile.csv", col.names = fieldnames, header = TRUE, sep = ",", quote="\""...