Displaying 20 results from an estimated 2000 matches similar to: "Reading timestamp column from MySQL"
2010 Jun 30
1
Sweave PDF files show plot symbols as "q"
I'm guessing this is a FAQ but I can't find it and that it is probably
not exclusive R related but relevant so I thought I'd ask:
When I view the PDF output from Sweave (e.g. Example 1 from the author's
web site at [1]) on a Linux system using the standard PDF viewer [2],
the circles for the outliers in the plot [boxplot(Ozone ~ Month, data =
airquality)] show up as the letter
2011 Jan 26
1
Compilation errors when installing gee
Hi,
I am trying to install gee on our server but I get the error below. I do not have root on this machine so no control on how R was installed itself. It looks like it cannot find blas libs, the only ones i can find on the machine are:
/usr/lib64/libblas.so.3 -> libblas.so.3.0.3
/usr/lib64/libblas.so.3.0 -> libblas.so.3.0.3
/usr/lib64/libblas.so.3.0.3
and :
$ R CMD config BLAS_LIBS
2010 Dec 17
1
help with function
Hello List
I'm moving this over from the bioC list as, although the problem I'm working on is biological, the current bottle neck is my poor understanding of R.
I wonder if someone would help me with the following function.
cumulMetric <- function(deMirPresGenes, deMirs){
???
#need to match position of each miR in deMirPresGenes with its FC to form a vector of FC in correct order
?
2011 Feb 09
1
samr - extract genes from siggenes.table
Hi BioC user,
I have a problem extracting the gene set I would like to work with.
Here is I work with my data:
normData <- read.delim("normalizedData.txt",sep ="\t")
######### two class unpaired comparison
# y must take values 1,2
classes <- c(-1,-2,1,2)
#prepere the data for the samr analysis
data.x <-as.matrix(normData[,8:11])
d=list(x=data.x,y=classes,
2010 Sep 09
1
Error in normalizePath(path) : with McAfee
Dear R People:
I keep getting the "Error in normalizePath(path) :" while trying to
obtain the necessary packages to use with the "Applied Spatial
Statistics with R" book.
I turned off the Firewall (from McAfee) but am still getting the same message.
Does anyone have any idea on a solution please?
> sessionInfo()
R version 2.11.1 (2010-05-31)
i386-pc-mingw32
locale:
[1]
2003 May 02
2
Suppressing Scientific Notation
R gurus,
Every so often(*) someone asks how to suppress scientific notation in
printing, so I thought I'd give it a shot, but I need some help.
The formatting decision is made(**) on line 286 of src/main/format.c :
if (mF <= *m) { /* IFF it needs less space : "F" (Fixpoint) format */
where mF is the number of characters for "normal" printing and *m is the number
2018 Oct 08
2
bug with OutDec option and deferred_string altrep object
While implementing R's new 'altrep' functionality in the TERR engine,
I discovered a bug in R's 'deferred_string' altrep object: it is not
using the correct value of the 'OutDec' option when it expands a
deferred_string. See the following example:
R 3.5.1: (same results in R 3.6.0 devel engine built 10/5)
> options(scipen=0, OutDec=".")
>
2010 Feb 02
1
[R] Suppressing scientific notation on plot axis tick labels (PR#14202)
On 02/02/2010 6:20 AM, Dimitri Shvorob wrote:
> Ruben Roa has kindly suggested using 'scipen' option - cf.
>
>> fixed notation will be preferred unless it is more than ???scipen??? digits
>> wider.
>
> However,
>
> options(scipen = 50)
> x = c(1e7, 2e7)
> barplot(x)
>
> still does not produce the desired result.
This is strange. I see what
2004 Jan 01
4
force fixed format
Hello,
A small problem I can't solve
> p <- 0.0001
> p
[1] 1e-04
How can I force the printout of p to 0.0001?
I have tried 'format', 'round', 'signif', 'print' in different combinations without success.
Fredrik Lundgren
2004 Jul 12
3
Segfault with options() (PR#7078)
This is completely undocumented use of options, but it does cause a
segfault with r-patched and r-devel on Linux:
options(list('digits', 'scipen'))
Strangely enough,
options(list('digits'))
and
options(list(digits = 10, scipen = 2))
work as might be expected.
Deepayan
2009 Aug 17
4
number in R
Hi,
i export data from an csv file like this :
Data <- read.csv2("c:/Art.csv",sep=",") # import data into R
> Data <- Data [1:5,1:5]# extracting the first 5 rows and columns
> Data
Policy.Number AXA.Entity Country LoB ccy.data
1 6e+13 BNL BNL P EUR
2 6e+13 USA BNL P EUR
3 6e+13 UK BNL
2010 Nov 11
3
User input after opening graphing device
If I run the following:
> windows()
>
> bringToTop(-1)
>
> interactive()
[1] TRUE
>
> run <- readline(prompt = "Continue (Yes = 1, No = 2):")
Continue (Yes = 1, No = 2):
> dummy <- 1
> run
[1] ""
it does not allow user input though the session is interactive (it jumps right over the readline command).
It would be great
2010 Feb 02
2
Suppressing scientific notation on plot axis tick labels
Is there a better alternative to
x = c(1e7, 2e7)
x.lb = c(0,1e7,2e7)
s.lb = format(x.lb, scientific = FALSE, big.mark = ",")
barplot(x, yaxt = "n", ylab = "")
axis(side = 2, at = x.lb, labels = s.lb)
(I am sure there is a better alternative to line 2 :)).
Thank you.
--
View this message in context:
2010 Aug 10
1
axis labels defaulting to scientific notation
The labels on the x-axis are defaulting to scientific notation no matter
how small cex.axis is. How can I override scientific notation to get the
labels to print out as specified? Here is the code (UNIT here is
0.0105):
plot(xm,yv,log="xy",ylim=c(0.1,20)/UNIT,xlim=c(0.004,20)*UNIT,xaxt="n",t
ype="n")
axis(1,
2005 Nov 15
3
Darstellung mit Nachkommastellen
Hi!
I got a rather stupid question (I think):
Is there ANY option that makes R display numericals not like
"1e-8"
but as
"0.00000001"
by default ?
And I need the outcome to be really numerical, so formatC(...) which produces a
character or something like this won't be acceptable.
Any help on this would be appreciated, thanx.
Marc
2009 Aug 21
1
sessionInfo() fails to correctly detect locale settings
Dear R devels
Yesterday I was slightly surprised to notice that R incorrectly
detected some of the locale settings. I am not sure whether this is
important, but I preferred to drop a message. In the R output below,
some entries that should have been "en_GB.UTF-8" are presented as "C".
Regards
Liviu
> sessionInfo()
R version 2.9.1 (2009-06-26)
x86_64-pc-linux-gnu
locale:
2009 Apr 23
3
Running Edit() or Fix() on Linux Machine
Hi all,
As I am new to using R on a Linux machine I have another question if
that's ok.
I am trying to use the fix() or edit() function on this Linux machine
but I get the following error message:
Error in dataentry(datalist, modes) : invalid device
In addition: Warning message:
In edit.data.frame(get(subx,envir=parent),title = subx, ...) :
Unable to create fontset
2011 Nov 15
2
Controlling the precision of the digits printed
Has anyone come across the right combinations to print a limited number of
digits? My trial and error approach is taking too much time. Here is what I
have tried:
> op <- options()
> a <- c(1e-10,1,2,3,.5,.25)
> names(a) <- c("A", "B", "C", "D", "E", "F")
> # default
> a
A B C D
2016 May 18
3
[patch] Error in reg-tests-1c.R (R-devel)
I get an error when running "make check" after building R-devel r70629
on Ubuntu 14.04. Here are the relevant lines in the file
"reg-tests-1c.Rout.fail":
> ## m1z uses match(x, *) with length(x) == 1 and failed in R 3.3.0
> ## PR#16909 - a consequence of the match() bug; check here too:
> dv <- data.frame(var?1 = 1:3, var?2 = 3); dv[,"var?2"]
2016 Apr 19
3
Problem with X11
Dear All,
I have never had this problem before. I run debian testing on my box
and I have recently update my R environment.
Now, see what happens when I try the most trivial of all plots
> plot(seq(22))
Error in (function (display = "", width, height, pointsize, gamma, bg,
:
X11 module cannot be loaded
In addition: Warning message:
In (function (display = "", width,