Skip to content
Back to formatted view

Raw Message

Message-ID: <20160811192902.Horde.nJ_GGTouEOJXrMPuBDKxClA@mail.sapo.pt>
Date: 2016-08-11T18:29:02Z
From: Rui Barradas
Subject: Appending Data to a .csv File
In-Reply-To: <87A0221A59DE694A9C954687E34E740A6CB3C334@BABWNA05.office.dir>

Hello,

Have you tried ?write.table?
write.csv is a wrapper for write.table with the appropriate settings  
such as sep = ",", etc.
 From the help page for write.csv:

"These wrappers are deliberately inflexible: they are designed to  
ensure that the correct conventions are used to write a valid file.  
Attempts to change append, col.names, sep, dec or qmethod are ignored,  
with a warning. "

So you must use write.table, with a call for file A, with col.names  
set to TRUE, then subsequent calls with col.names = FALSE.

Read the help page carefully, and try the different options.

Hope this helps,

Rui Barradas


Quoting Mihai.Mirauta at bafin.de:

> Hallo,
>
> For the moment I have a relatively large number of portfolios of  
> different companies (say, company A with portfolios 1 to 10, company  
> B with portfolio1 1 to 15 and so on to company Z with Portfolios 1  
> to 5). What I am doing, is loading these simulations out of csv   
> (relatively large amount of data) for each of the company and  
> calculating the quantiles, for example. I write the data for company  
> A (say write.csv(quantiles, ?Quantiles.csv?).
>
> Now I want to write the quantile results for company B into the same  
> file, adding thus to the data for company A. I have tried to use  
> write.csv(quantilesB, ?Quantiles.csv?, append=TRUE) but I receive  
> the error   ?Versuch ignoriert 'append' zu setzen? ? it seems to  
> ignore the append. It is not so important to me if that is a csv  
> data or an RData format, as long as I can run the program for  
> company A, put the results for A in file ?Quantiles?, than run the  
> program for B, add the results for B in the file and so on for  
> company C, D etc.
>
> Thank you for your help,
>
> Mihai
>
>
> F?r die rechtswirksame ?bermittlung elektronischer Dokumente im  
> Sinne des ? 3a VwVfG er?ffnet die BaFin den Zugang ausschlie?lich  
> ?ber folgende Kommunikationsadressen:
>
> ? F?r die ?bermittlung qualifiziert elektronisch signierter  
> Dokumente per E-Mail: qes-posteingang at bafin.de
> ? F?r die ?bermittlung per De-Mail: poststelle at bafin.de-mail.de
>
> Andere E-Mail-Adressen der BaFin stehen lediglich f?r die allgemeine  
> Kommunikation, jedoch ausdr?cklich nicht f?r eine  
> rechtsverbindliche, die gesetzliche Schriftform ersetzende  
> Kommunikation zur Verf?gung.
>
> Eingehende elektronische Dokumente m?ssen l?ngere Zeit archiviert  
> werden (Langzeitaufbewahrung). Deshalb bittet die BaFin darum, bei  
> der rechtsverbindlichen, die gesetzliche Schriftform ersetzenden  
> Kommunikation ?ber die E-Mail-Adresse qes-posteingang at bafin.de  
> ausschlie?lich qualifiziert elektronisch signierte PDF-Dokumente der  
> Spezifikation PDF/A mit eingebetteter Signatur zu ?bersenden.
>
> Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte  
> Informationen enthalten. Sollten Sie nicht der richtige Adressat  
> sein oder diese E-Mail irrt?mlich erhalten haben, informieren Sie  
> bitte sofort den Absender und vernichten diese E-Mail. Das  
> unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist  
> nicht gestattet. Der Inhalt dieser E-Mail kann nicht zu einer  
> irgendwie gearteten Verpflichtung zu Lasten der BaFin ausgelegt  
> werden.
>
> This e-mail may contain confidential and/or privileged...{{dropped:22}}