Displaying 20 results from an estimated 4000 matches similar to: "write.csv(..., col.names = FALSE) (PR#13202)"
2009 Nov 02
1
two small wishes (with code sugegstions) for R-core
Dear R developers,
It would be great if you could implement the two minor code changes suggested below, which would help processing large objects in R.
Jens Oehlschl?gel
# Wish no. 1: let [.AsIs return the class AFTER subsetting, not the class of the original object
# Wish no. 2: adjust write.csv and write.csv2 for multiple calls in chunked writing
# Rationale no. 1: a couple of packages
2010 Aug 12
2
Append to csv without header
Hi,
I am writing a function that writes to a csv file for every call.
However, for the subsequent calls, I want to append the data to the existing
csv file without appending the column names again.
I tried searching in the previous posts, but I am stuck with different
errors.
Here is what I am doing (dataF is a data-frame):-
outputFilePath <- paste(getwd(), "/",
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,
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")
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
2007 Apr 12
3
Method dispatch for print() in package its
Dear all,
in the package its the print() method does not seem to correctly work in all circumstances:
> selectMethod(print, "its")
Method Definition:
function (x, ...)
{
print(x@.Data <mailto:x@.Data> , ...)
}
<environment: namespace:its>
Signatures:
x
target "its"
defined "its"
> fundPME.lst[[1]]$irr
An object of
2007 Aug 03
2
Problem with making dll under Windows
Dear all,
I have problems to compile a DLL for Windows XP with R version 2.5.1 (2007-06-27).
See output below:
C:\AZ_DATEN\C, C++\BE_speedup>R CMD SHLIB dmypow.c
Goto undefined subroutine &DynaLoader::bootstrap_inherit at C:\Programme\R\R-2.5
.1\share\perl/XSLoader.pm line 80.
Compilation failed in require at c:/Programme/Perl/lib/IO/Handle.pm line 262.
BEGIN failed--compilation aborted
2007 Apr 19
2
rbind() of factors in data.frame
Dear all,
I would like to inquire, if it is a desired feature that the combination with rbind() of two data frames with factors columns does not sort the factors levels of the combined data frame.
> str(rbind(data.frame(a = factor(c(4, 3))), data.frame(a = factor(c(2, 1)))))
'data.frame': 4 obs. of 1 variable:
$ a: Factor w/ 4 levels
2004 Oct 06
6
lattice package for R 2.0.0
Dear all,
I am trying to install packages with the new R 2.0.0. However for
several packages, like MASS, lattice or R2HTML, I get an error like:
> library(lattice)
Error in library(lattice) : 'lattice' is not a valid package --
installed < 2.0.0?
>
However, I have just downloaded the latest versions from CRAN.
As far as lattice is concerned, it seems that the Windows binary is
2004 Jun 23
3
Cannot Restore Workspace with R 1.9.1 (PR#7012)
Full_Name: Stefan Albrecht
Version: 1.9.1
OS: Windows NT 4.0
Submission from: (NULL) (194.127.2.73)
Hi all,
upgrading to R 1.9.1 I am no longer able to restore saved data in .RData with
after some involved data manipulations and calculations (fatal error!).
In addition I get the message
Error: object 'family' not found whilst loading namespace 'MASS'.
This problem does not
2003 Nov 06
2
Summary: How to represent pure linefeeds chr(10) under R for Windows
Thanks to all who have responded.
My concern was to be able to write a csv file that can have line feeds in
string columns chr(10).
Why? Excel allows line feeds chr(10) within cells and line breaks
chr(13)+chr(10) at line ending,
but the windows version of R automatically replaces \n by \r\n in writing
and \r\n by \n in reading (text mode).
The clues for a solution came from Brian Ripley and
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>
2018 Apr 19
3
R Bug: write.table for matrix of more than 2, 147, 483, 648 elements
Le 19/04/2018 ? 09:30, Tomas Kalibera a ?crit?:
> On 04/19/2018 02:06 AM, Duncan Murdoch wrote:
>> On 18/04/2018 5:08 PM, Tousey, Colton wrote:
>>> Hello,
>>>
>>> I want to report a bug in R that is limiting my capabilities to
>>> export a matrix with write.csv or write.table with over
>>> 2,147,483,648 elements (C's int limit). I found
2008 Jun 22
1
readLines problem in iteration
Hi there
My script at each iteration produces a .dat file which I save in a directory with write.table. Then I need to read each line of this file and create a directory for each line and put elements of that row in that directory. I do it with the following script which I have inserted somewhere between my outer iteration loop, it works fine for the first iteration, but the problem is that it
2005 Aug 10
1
Why only a "" string for heading for row.names with write.csv with a matrix?
Consider:
> x <- matrix(1:6, 2,3)
> rownames(x) <- c("ID1", "ID2")
> colnames(x) <- c("Attr1", "Attr2", "Attr3")
> x
Attr1 Attr2 Attr3
ID1 1 3 5
ID2 2 4 6
> write.csv(x,file="x.csv")
"","Attr1","Attr2","Attr3"
"ID1",1,3,5
2015 Mar 19
2
[LLVMdev] Final added to parser<bool>
//===----------------------------------------------------------------------===//
// FalseParser
//===----------------------------------------------------------------------===//
class FalseParser : public parser<bool> {
public:
explicit FalseParser(Option &O) : parser<bool>(O) { }
// parse - Return true on error.
bool parse(cl::Option& O, StringRef ArgName, StringRef
2009 Jan 14
1
Memory use
Dear R-help list,
I am just trying to increase my memory for R, but for some reason I cannot really increase the memory size as much as I would like. I have 3 GB of RAM on a Windows XP (R 2.8.1)
> memory.size()
[1] 879.4667
> memory.size(T)
[1] 1162.75
> memory.limit()
[1] 3072
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 421697 11.3 1476915 39.5 1476915 39.5
Vcells
2012 Jan 23
3
How can I access information stored after I run a command in R?
Dear all,
Supposed I run the following command:
###############################
#install.packages("Rassoc", dependencies=TRUE)
library("Rassoc")
ca=c(139,249,112)
co=c(136,244,120)
a=rbind(ca,co)
MAX3(a,"asy",1)
##############################
I get:
The MAX3 test using the asy method
data: a
statistic = 0.5993, p-value = 0.7933
How can one save the result
2005 Oct 18
2
Inconsistency with matrix indexing (PR#8214)
Full_Name: Stefan Albrecht
Version: 2.2.0
OS: Windows XP
Submission from: (NULL) (194.127.2.74)
Dear all,
in the new R 2.2.0, the matrix indexing has been changed. In my opinion, this
leads to an inconsistency when indexing one-row matrices.
Take
> (mat <- matrix(1:9, nrow = 3, dimnames = list(paste("r", 1:3, sep = ""),
paste("c", 1:3, sep = ""))))
2003 Nov 13
4
[LLVMdev] llvm 1.0, g++, SuSE 9, internal compiler error
> > - gcc bug
> > - problem with SuSE distribution
>
> One of these two. In theory GCC should never crash (even if the LLVM
> sources had problems), and since SuSE made modifications to the compiler
> before they shipped it, they implicitly took responsibility for the end
> result.
I agree.
> You can try sending a bug report to SuSE.
hm, sending bug report is