similar to: write.csv causes system() and ? to stop working

Displaying 20 results from an estimated 30000 matches similar to: "write.csv causes system() and ? to stop working"

2010 Jun 01
2
New behavior of 'write.csv' append argument?
Dear R users, I have recently begun to reuse some functions I made several months ago. The scripts write to a .csv file using the 'write.csv' function with the append option set to TRUE. This used to work fine, albeit with the warning "appending column names to file". I upgraded to R version 2.11.0 on OSX 10.5.8 and 'write.csv' will no longer append any files - I get the
2008 Apr 08
1
Combining many csv files into one and adding a column with an id of each csv file read
Dear R experts, I have been looking into the help-pages and old questions from the R-Help site, but the options offered there don't seem to work in my case. First of all, I am working on Windows XP, using R version 2.6.2. I am attaching two csv files as an example of how the data I am traying to put together is delivered to us. On the first row of every csv file is the name of the
2008 Aug 08
1
write.csv writing the "index"
I have a simple command to export a data.frame: write.csv(output, "TotalPredicted2008.dat") The structure of the data.frame can be seen with: > head(output) DayOfYear Sales 1 1 1429 2 2 3952 3 3 3049 4 4 2844 5 5 2219 6 6 2340 But it seems that the index is getting written out to the file. The first few lines look like:
2010 Jan 21
1
How to write '"' to a csv with the default setting of write.csv?
Please see the following example. I can not write '"' to a csv file successfully. Could somebody let me if it is possible to write '"' to a csv file with the default setting of write.csv? my_home$ Rscript main_quote.R > x=rbind( + "\"A\"" + , "\"B\"" + ) > x [,1] [1,] "\"A\"" [2,]
2008 Oct 09
1
Write multiple objects / data frames into a single .csv -- write.csv
Hello, Is there a way to put multiple data.frames or objects into a single .csv ? I know I can use sink() to do this for a text file. Is there way to do it for a .csv? e.g. for sink() sink("c5.k.s.p.92.LN.sl.vs.mean.txt") symnum(c5.k.92.LN.sl.vs.mean) symnum(c5.s.92.LN.sl.vs.mean) symnum(c5.p.92.LN.sl.vs.mean) sink() Could I put these all into a single .csv, in a similar format to
2011 Nov 11
1
Have write.csv write csv without observation number
Hello all, Have a little annoying issue with wreite.csv. It always writes out observation number. Is there a way to avoid this. Thanks, DL -- View this message in context: http://r.789695.n4.nabble.com/Have-write-csv-write-csv-without-observation-number-tp4030672p4030672.html Sent from the R help mailing list archive at Nabble.com.
2011 Jan 13
1
Unexpected behaviour of write.csv - read.csv
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Assuming the following: > x <- data.frame(a=1:10, b=runif(10)) > str(x) 'data.frame': 10 obs. of 2 variables: $ a: int 1 2 3 4 5 6 7 8 9 10 $ b: num 0.692 0.325 0.634 0.16 0.873 ... > write.csv(x, "x.csv") > x2 <- read.csv("x.csv") > str(x2) 'data.frame': 10 obs. of 3 variables: $ X:
2007 Aug 10
0
set up a blank csv file and write time series to it row by row
Dear Friends. Greetings! I have asked the question of how to set up a blank file and write a list to it as a row for many times, with the number of lists unknown. I have received many beautiful solutions. Thanks go to Professor *Murdoch, Professor *Menne, Professor Grothendieck and Dr. Olshansky. I have organized the solutions below: ########################################## *Set up a
2024 Jun 29
1
write.csv problems
Hi, Rui et al.: On 6/29/24 14:24, Rui Barradas wrote: > ?s 17:02 de 28/06/2024, Spencer Graves escreveu: >> Hello, All: >> >> >> ?????? I'm getting strange errors with write.csv with some objects of >> class c('findFn', 'data.frame'). Consider the following: >> >> >> df1 <- data.frame(x=1) >> class(df1) <-
2007 Mar 12
1
write.csv feature/bug with pipe
gentoo linux, version 2.4.1: > d= as.data.frame(matrix(1:20, 4, 5)) > d V1 V2 V3 V4 V5 1 1 5 9 13 17 2 2 6 10 14 18 3 3 7 11 15 19 4 4 8 12 16 20 > write.csv(d, file="d1.csv"); > write.csv(d, file=pipe("cat > d2.csv")) > write.csv(d, file=pipe("gzip -c > d3.csv.gz"), col.names=T) Warning message: attempt to change 'col.names'
2017 May 02
0
Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?
Thanks for looking into this. A few notes regarding all the UTF encodings on Windows 10 ... The default eol for write.csv (via write.table) is "\n" and always gives as.raw (c (0x0d, 0x0a)), that is, <Carriage Return> <Line Feed> as adjacent bytes. This is fine for UTF-8 but wrong for UTF-16 and UTF-32. EXAMPLE: Using UTF-32 for exaggeration (note also that 3 nul bytes are
2008 Feb 11
1
Help with write.csv
Dear all, I am new to R. I am using the impute package with data contained in csv file. I have followed the example in the impute package as follows: > mydata = read.csv("sample_impute.csv", header = TRUE) > mydata.expr <- mydata[-1,-(1:2)] > mydata.imputed <- impute.knn(as.matrix(mydata.expr)) The impute is succesful. Then I try to write the imputation results
2011 Apr 08
2
a bug in "write.csv"?
Dear Rxperts! A simple example where "write.csv" does not seem to accept user specified arguments.. Why? write.csv(t(1:10),"./te1.csv",quo=F,col.names=F) Warning message: In write.csv(t(1:10), "./te1.csv", quo = F, col.names = F) : attempt to set 'col.names' ignored However, write.table does fine..
2009 Feb 18
1
basic inquiry regarding write.csv
i have a loop which looks likes this: > data.info <- rbind(data.info, cbind(station.id, year, date, > max.discharge)) + y <- split(data.info, data.info[station.id]) + for (i in names(y)) {write.csv(y[[i]], file=paste(i, ".csv", sep=","))} i am wondering, where the file (which i am about to write in .csv format) will be saved? i looked at ?write.csv and
2018 Mar 14
0
truncation/rounding bug with write.csv
What OS are you on? On Ubuntu 17.10 with R 3.4.3 all seems well (see below for your example, I just added a setwd()). [ That said, I long held a (apparently minority) view that csv is for all intends and purposes a less-than-ideal format. If you have that much data, you do generally not want to serialize it back and forth as that is slow, and may drop precision. The rds format is great for R
2007 Jul 16
1
How to write a data.frame into n different csv-files
Hello, I want to write a data.frame with 10 different entries x (by index y)? into ten different csv-files. In every output file should be one of the ten numbers of x. I tried this one, but I can't write into ten different files, like test1.csv to test10.csv: x <- rnorm(10) y <- c(1:10) z <- data.frame(y,x) n <- nrow(z) for (i in 1:n) write.csv(z$x[i],
2010 Jan 06
1
Write a blank line to CSV
Greetings and happy new year! I'm attempting to write a series of tables to a CSV file, and would like to insert a blank line after each table. To do this, I use: > write.csv(NULL,"tables.csv",append=T) which appears to work, except that this warning is thrown: > Warning message: > In write.table(NULL, "tables.csv", append = T, col.names = NA, : > appending
2007 Sep 07
1
write.csv / string extraction and field limits
Hello, I have a peculiar problem which I am hoping I can get help on. I am using the write.csv command to write a matrix structure to a file, which I later read in excel. The command works quite well for most strings and numerical values in the matrix structure. However, I have found that when a field in the matrix contains a string of long length, when the matrix is finally written the file
2008 Feb 29
1
write.csv +RMySQL request
Hello, I am relatively new to R and learning its ins and outs. As part of a website I am building, I need to read and write csv files directly from an SQL database. Basically I want to convert R variables (dataframes) into CSV format, store them as another R variable (as a properly formatted text string suitable for csv reading) and then send this to one row in a database. The SQL part is fine,
2011 Oct 14
1
is there an option to "turn off" scientific notation in write.csv
Dear Help-Rs,   I'm working with a file that contains large numbers and I need to export them "as is".  for example take:   x <- c(27104010002005,27104020001805,27104090001810,90050013000140,90050013000120) y <- c(1:5) df <- data.frame(cbind(x,y))   When I then try a simple: write.csv(df,file="df.csv")   I get:  x y 1 2.7104E+13 1 2 2.7104E+13 2 3 2.71041E+13 3