Displaying 20 results from an estimated 10000 matches similar to: "fix for a major format.pval limitation"
2007 Mar 20
1
wishlist -- Fix for major format.pval limitation (PR#9574)
Full_Name: Charles Dupont
Version: 2.4.1
OS: linux 2.6.18
Submission from: (NULL) (160.129.129.136)
'format.pval' has a major limitation in its implementation. For example
suppose a person had a vector like 'a' and the error being ?0.001.
> a <- c(0.1, 0.3, 0.4, 0.5, 0.3, 0.0001)
> format.pval(a, eps=0.01)
If that person wants to have the 'format.pval'
2007 Mar 02
0
Patch for format.pval limitation in format.R
'format.pval' has a major limitation in its implementation for example
suppose a person had a vector like 'a' and the error being ?0.001.
> a <- c(0.1, 0.3, 0.4, 0.5, 0.3, 0.0001)
> format.pval(a, eps=0.001)
The person wants to have the 'format.pval' output with 2 digits always
showing like this
[1] "0.10" "0.30"
2012 Dec 14
1
format.pval () and printCoefmat ()
Hi List,
My goal is to force R not to print in scientific notation in the sixth column (rel_diff - for the p-value) of my data frame (not a matrix).
I have used the format.pval () and printCoefmat () functions on the data frame. The R script is appended below.
This issue is that use of the format.pval () and printCoefmat () functions on the data frame gives me the desired results, but coerces
2015 Nov 19
0
format.pval
Today I stumbled upon a very strange behaviour of format.pval. If all p
values are below the threshold eps one gets
format.pval(c(0.0002, 0.0004), eps = 0.001)
## [1] "< 0.001" "< 0.001"
format.pval(0.0004, eps = 0.001)
## [1] "< 0.001"
i.e., "< [eps]" as described in the manual of format.eps.
Yet, if one ore more are above (and one or more
2019 Jun 20
0
base::format adds extraneous whitespace for some inputs
I can reproduce this.
It has to do with whether the value rounds down to 9 or up to 10, and
thus needs another space, I think. I agree that it shouldn't happen,
but at least you can get rid of the space by using trim = TRUE.
# rounds to 9 vs 10
format(9.95, digits = 2)
format(9.96, digits = 2)
format(9.95, digits = 2, nsmall = 2)
format(9.96, digits = 2, nsmall = 2)
format(9.95, digits =
2006 Feb 14
1
weird behavior of nsmall in format
>From the help page of format, nsmall should control the number of digits.
> format(0.123456789, nsmall = 10)
[1] "0.1234567890"
> format(0.123456789, nsmall = 1)
[1] "0.1234568"
> format(0.123456789, nsmall = 2)
[1] "0.1234568"
> format(0.123456789, nsmall = 8)
[1] "0.12345679"
It adds zeros fine but for
2005 Sep 22
0
FW: FDR analyses: minimum number of features
Dear Dr. Graves
Many thanks for your response. FDRs and their associated q values do
differ from Type I error rates and P values (See Storey and Tibshirani
PNAS 2003;100:9440-5). It is an approach that is rapidly gaining
popularity in the analysis of genomic data where we have massive numbers
of covariates measured on a comparatively modest number of subjects. To
my mind it is a real advance
2009 Nov 13
2
format (PR#14062)
Full_Name: Dirk Jacob
Version: R 2.8.1 and 2.9.1
OS: Win XP
Submission from: (NULL) (153.96.32.62)
I want to convert numbers to strings
like:
> inputs= c(0.3+0*(1:12) )
> (format(inputs,digits=3,scientific=T,collapse=" "))
and it works
[1] "3e-01" "3e-01" "3e-01" "3e-01" "3e-01" "3e-01" "3e-01"
2008 Oct 01
0
cubic bivariate interpolation on regular grid
Please help me to produce smoothed contour plots.
I have dependent data generated at regular intervals of two independent
variables and would like to produce smoothed contour plots - I cannot get
interp (alima) to produce cubic interpolations of the data, only linear
ones. I'm interested in smoothing as the data generation process is
stochastic and produces small variations which I'd
2007 Jan 16
2
Why does not the command 'length(a <- 1:5) <- 4' not work?
when running the command
> length(a <- 1:5) <- 4
there are two responses.
If 'a' does not exist then the response is
Error in length(a <- 1:5) <- 4 : object "a" not found
If 'a' does exist then the response is
Error in length(a <- 1:5) <- 4 : could not find function "<-<-"
I would assume that 'length(a <- 1:5) <-
2008 Oct 01
1
Please help me to produce smoothed contour plots
Please help me to produce smoothed contour plots.
I have dependent data generated at regular intervals of two independent
variables and would like to produce smoothed contour plots - I cannot get
interp (alima) to produce cubic interpolations of the data, only linear
ones. I'm interested in smoothing as the data generation process is
stochastic and produces small variations which I'd
2019 Jun 20
2
base::format adds extraneous whitespace for some inputs
Dear R Core Team,
First of all, thank you for your amazing work on developing and
maintaining this wonderful language.
I just stumbled upon the following behavior in R version 3.6.0:
format(9.91, digits = 2, nsmall = 2)
format(9.99, digits = 2, nsmall = 2)
yield "9.91" and " 9.99" with an extraneous whitespace.
My expected output for the second command is
2006 May 01
1
format.info() versus format.default(): Comments please
The format.info() function currently takes args (x, digits = NULL,
nsmall = 0), while format.default() takes many more:
function (x, trim = FALSE, digits = NULL, nsmall = 0, justify = c("left",
"right", "centre", "none"), width = NULL, na.encode = TRUE,
scientific = NA, big.mark = "", big.interval = 3, small.mark = "",
2005 Sep 26
2
is.Date function question
Why is there no is.Date function in R? I am running 2.1.1 does it exist
in newer version? If there is a reasoning behind the lack of a is.Date
function what is it?
Thanks
Charles
--
Charles Dupont Computer System Analyst School of Medicine
Phone: (615) 936-6510 Department of Biostatistics Vanderbilt University
1999 Feb 28
0
Formatting in formatC and format (PR#129)
[This turned into a bug report which will go to r-devel, so I have taken it
off r-help.]
Bugs reported here:
(1) formatC's help page need some clarification.
(2) formatC needs to treat modes "double" and "real" as equivalent.
(3) format's help page or (preferably) format needs correction re the
meaning of `digits'
On Sun, 28 Feb 1999, Martin Maechler wrote:
2006 Dec 13
2
exporting a table to latex
Hi
I am using the latex() command from the Hmisc package to export table
to latex. For formating of the values, I use the format() function. But
I don't manage to get the format of the values right: I don't want
scientific notation, but if I say scientific=FALSE, I get many digits
after the decimal point which I can not control with digits=... and
nsmall=... in the format command.
2013 Sep 23
0
dovecot 2.2.5 with plugin listescape and shared mailbox with dot in INBOX
Hi list,
I have a problem with dovecot 2.2.5 and nightly (latest 20130923) with :
* plugin listescape enabled
* shared mailbox
* and mail_shared_explicit_inbox = no
Problem is I can't get list of mails in INBOX of my shared users.
For example :
----------------------------------------------------------
2013-09-23 22:20:06 imap-login: Info: Login: user=<roms>, method=PLAIN,
2008 Aug 07
1
Bug in format.default(): na.encode does not have any effect for (PR#12318)
Hi!
If I use format() on numeric vector, na.encode argument does not have any e=
ffect. This
was reported before:
- https://stat.ethz.ch/pipermail/r-help/2007-October/143881.html
- http://tolstoy.newcastle.edu.au/R/e2/devel/06/09/0360.html
It works for other (say character) classes!
> format(c("a", NA), na.encode=3DTRUE)
[1] "a " "NA"
>
2005 Oct 31
1
Problem with migrate
I have a migration that is failing.
I am trying to create new records in a table.
class BasicAnswerTypes < ActiveRecord::Migration
def self.up
# this adds basic answer types and response types to the database
ResponseType.create :name => "boolean"
end
def self.down
ResponseType.find_by_name("boolean").destroy
end
end
when I run rake
2009 Sep 23
1
How to show number in the %f format?
Hi,
I have the following matrix, which is printed %e format (in C's way).
I am wondering how make it be printed in %f format (in C's way)?
Regards,
Peng
> significant_analysis_results[,7:8]
pval(ki-wt) pval(ko-wt)
Nab2 1.913348979e-06 2.731944670e-09
Rasal1 2.482254110e-05 1.054711084e-05
Ccndbp1 6.307674516e-08 2.268947934e-04
Svep1 0.000000000e+00