similar to: write.table(* , digits = ..) ?

Displaying 20 results from an estimated 90000 matches similar to: "write.table(* , digits = ..) ?"

2002 Aug 05
2
options(digits) (PR#1879)
[this message needed manual improvement by the mailing list administrator since it was `HTMLified' .. ``please do not''] Apologies for bothering you about a fairly trivial matter. I have been getting some inconsistencies with the display digits in R V1.5. I have been using the hypergeometric distribution function, and have found that when printing out the results from this
2000 Dec 06
3
write.table
Good morning, suppose the following: m <- round(matrix(rnorm(16), ncol=4), 3) a <- rev(c(0.01, 0.025, 0.05, 0.1)) rownames(m) <- a colnames(m) <- c("0.25,0.75", "0.4,0.6", "0.1,0.9", "0.4,0.9") m 0.25,0.75 0.4,0.6 0.1,0.9 0.4,0.9 0.1 1.034 -0.119 -1.213 0.619 0.05 0.035 1.074 0.525 1.671 0.025 -1.687 0.960
2001 Dec 17
1
write.table (PR#1219)
Full_Name: Adam B. Olshen Version: 1.3.1 OS: Linux Submission from: (NULL) (140.163.222.233) There appears to be a bug with write.table if the object being written is a matrix. Specifically, the option row.names=F gives an error. I have seen this problem repeated in the Windows implementation. An example is below. Adam Olshen olshena@mskcc.org This works: >
2002 Jul 05
1
write.table error
I am getting the following when trying to write a dataframe to a file. I would appreciate any advice to where the problem lies. Thanks Ross Darnell > write.table(all,file="agree.csv",row.names=F) Error in "rownames<-"(*tmp*, value = row.names(x)) : length of dimnames[1] not equal to array extent > is.data.frame(all) [1] TRUE > dim(all) [1] 854 18 >
2001 Dec 27
1
write.table and large datasets
Hi, I'll continue the discussion about the write.table() and problems with large datasets. The databases I have to work with are quite huge, 7500 obs x 1200 vars were on of the smallest of them. I usually write a perl script to preprocess them line-by-line and extract only the variables which I need later. This results into quite a manageable size but I have to have the dataset in ASCII
2001 Feb 01
3
summary() vs mean()
Forgive what may seem to be a trivial question/problem. Below is some simple R 1.2.1(Windows) code with output. > summary(mammals, digits=10) Name Body.Weight Brain.Weight Red Fox :1 Min. : 3.0 Min. : 26.0 Pig :1 1st Qu.: 35.5 1st Qu.: 138.5 Man :1 Median : 100.0 Median : 406.0 Kangaroo:1 Mean : 761.2 Mean :1000.0 Jaguar :1 3rd
2002 Jan 08
3
write.table - format
Hello there I ` m a newbie in R and have a question about the output of write.table My command looks like this: write.table(datatr$V1[data.chull],file="outr.txt", quote = FALSE, sep = "\t") In the outputfile (outr.txt) I have an "x" in the left corner and a new row with numbers for each column(1,2,3...). I just want the values in my file. What should I change in
2002 Aug 06
1
write.table() adds unnecessary spaces to right align integer column
When using write.table() to write data frames the integer columns are padded with unnecessary spaces (0x20) so that these columns are right align if you look at them in a text editor. However, I think it is quite a vast of file size. For instance, I am reading a tab-delimited 4200kb microarray data file and writing it back verbatim using write.table() and it becomes 5100kb, a 20% increase. Is this
2002 Nov 04
3
write table and dinnames
I would write in tab-text file a table like this one: TAB colname1 TAB colname2 TAB TAB... colnameN rowname1 # # # rowname2 # # # rownameM # # # then I wrote something like: mymatrix <- matrix(nrow=M,ncol=N,byrow=T) rownames(mymatrix) <- chvector1 colnames(mymatrix) <- chvector2
2002 Apr 29
2
append with write.table()
Dear list, I get the following message while trying to append an object to a file. In addition it is not appended. Do you know why? > write.table(PoxAv, "/home/uleopold/lsk_PoxAv", append=TRUE , quote=FALSE, sep="\t") Warning message: appending column names to file in: write.table(PoxAv, "/home/uleopold/lsk_PoxAv", append = TRUE, Regards, Ulrich --
2000 May 31
3
read.table and strip.white
Hi! I want to read data (using read.table(.)) from a file like: "col1", "col2", "col3" 1, 1, 1 2, 2, 2 But the white spaces are interpreted: x <- read.table("filename", header=TRUE, sep=",") ## or read.csv(...) colnames(x) [1] "col1" " col2" " col3" ^ ^ So I would like to pass
2001 May 02
2
rounding
Howdy! I'm trying to print a correlation matrix where every r is rounded to two digits after the colon. How can I get that? I tried options(digits=2) but that rather yields two digits minimum precision so that I get 0.0068 instead of 0.01. Ragnar -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2005 Jun 01
2
A Way to Write DTMF Digits as text to CDR?
I've gotten my CDR working the way I like, but I am looking to customize it a bit. I have set up an IVR menu, which works great. I would like to be able to capture the prompted DTMF digits pressed by callers, to my CDR database but I don't see any AGI or Asterisk commands that allow one to customize the CDR contents. Am I thinking about this on the wrong track? If someone calls sales
2006 Sep 14
1
digits in summary.default
Dear all, the number of significant digits in summary default is digits = max(3, getOption("digits") - 3) on my platform this results to be 4. The point is that if you have, say, integer data of magnitude greater than 10^3 the command summary will produce heavily rounded results. A simple example follow: > x <- c(123456,234567,345678) > x [1] 123456 234567 345678 >
1999 Sep 24
2
R's startup : .Rprofile & .Renviron -- info and RFC
[RFC = Request for Comments] { Yes, the documentation for .Renviron is really not there (but the FAQ...); the rest is in ?Startup } In R's Startup (on Unix only??) {unless --no-environ is specified} ~/.Renviron (if there) is read as an 'sh' script before R is called, then R looks ((for the site-wide Rprofile and then)) for .Rprofile in the current directory and then for
2019 Mar 21
3
prettyNum digits=0 not compatible with scientific notation
R developers, Seems I get a bad result ("%#4.0-1e" in particular) when trying to use prettyNum digits=0 with scientific notation. I tried on both my Linux box and on an online R evaluator and saw the same problem, so it's not limited to my box at least. I see the problem in both R 3.5.3 and R 3.3.2. options(scipen=-100) prettyNum(1, digits=0) [1] "%#4.0-1e" prettyNum(2,
2019 Mar 22
2
prettyNum digits=0 not compatible with scientific notation
FWIW, it doesn't seem to be happening on Mac OS: > format(2^30, digits=0) [1] "1.e+09" > prettyNum(12345.6, digits=0) [1] "1.e+04" A glibc misfeature? -pd > On 22 Mar 2019, at 10:10 , Martin Maechler <maechler at stat.math.ethz.ch> wrote: > > Thank you, Robert for raising this here ! > >>>>>> Robert McGehee
2000 Oct 17
3
"wizard" for building R-packages...
Suppose one wanted to build an R wizard for packaging... One would need to specify and create: package-name/ package-name/Description package-name/INDEX package-name/R/ package-name/man/ package-name/src/ >From this, we'd "probably" like to: - script-up the Description - provide a script for regenerating INDEX by calling out to the
2002 Jul 09
3
portable snprintf implementation
This may be of interest: http://www.ijs.si/software/snprintf/ It looks like this version may well be more complete and conform the standards than the version that comes with R. BTW: I am currently patching unix/sys_std.c and modules/gtkconsole.c such that they don't store lines in the history that are identical to the previous line. Is there any interest in posting those patches here? RenE
2012 Nov 08
2
Formatting digits in a table with mix of numbers and characters
Hello, I am currently trying to find an easy way to take a table with a mix of numbers and characters and format the numbers in the table to be constrained to 4 significant digits. Example: #this is my table creation > table <- matrix(c(12.34567, "--", 10, 12.34567, "--", "NA", "--", 123.45678, "--"), ncol = 3, byrow=TRUE) > > table