Displaying 20 results from an estimated 2000 matches similar to: "Function scale (PR#2209)"
2003 Jul 22
2
read.table with option dec=',' (PR#3532)
Full_Name: Antoine Lucas
Version: 1.7.0 (2003-04-16)
OS: Linux
Submission from: (NULL) (193.51.197.253)
I have a problem using read.table:
If in a dataframe, we have a string containing a dot, write.table
will not write any file while using option "dec=','".
Example
> m <- "1.5"
> write.table(m,dec=',')
Error in if (n%%nrowv == 0) value <-
2007 Jul 23
2
persp and greek symbols in the axes labels
Hello,
I am plotting a 3D function using persp and I would like to use greek
symbols in the axes labels.
I have found examples like this one on the web:
plot(0,0,xlab=expression(kappa[lambda]),ylab=substitute(paste(phi,"=",true,sigma),list(true=5)))
this works well with plot but not with persp:
with the command
persp(M,theta = -20,phi =
2002 Feb 20
3
importing images
I would like to import "tif" images in R and I do not find any
function that can do that. In Matlab there exists the function "imread"
that can read the most known images format. Does a similar function
exist for R ?
Thanks in advance
--
Herve CARDOT
____________________________________________________________
Unite Biometrie et Intelligence Artificielle, INRA Toulouse
BP
2018 Jan 22
3
Inconsistent rank in qr()
Le 22/01/2018 ? 17:40, Keith O'Hara a ?crit?:
> This behavior is noted in the qr documentation, no?
>
> rank - the rank of x as computed by the decomposition(*): always full rank in the LAPACK case.
For a me a "full rank matrix" is a matrix the rank of which is indeed min(nrow(A), ncol(A))
but here the meaning of "always is full rank" is somewhat confusing. Does it
2017 Jul 05
2
[New Patch] Fix disk corruption when writing
Le 05/07/2017 ? 13:09, Duncan Murdoch a ?crit :
> On 05/07/2017 5:26 AM, January W. wrote:
>> I tried the newest patch, but it does not seem to work for me (on
>> Linux). Despite the check in Rconn_printf, the write.csv happily writes
>> to /dev/full and does not report an error. When I added a printf("%d\n",
>> res); to the Rconn_printf() definition, I see
2007 Jun 05
1
multiple plot in odfWeave
Hello R users,
I found the odfWeave package to create an odf document. It seems to be a
very nice tool.
So i tried to used it to create a report with multiple plot:
I create an odt file with some code inside:
I connect to a mysql database
I get a list of projects
foreach project I would like to make a plot (a map exactly)
then in a R console I use the odfweave (inFile, outFile) function.
2018 Jan 23
1
Inconsistent rank in qr()
Le 23/01/2018 ? 08:47, Martin Maechler a ?crit?:
>>>>>> Serguei Sokol <sokol at insa-toulouse.fr>
>>>>>> on Mon, 22 Jan 2018 17:57:47 +0100 writes:
> > Le 22/01/2018 ? 17:40, Keith O'Hara a ?crit?:
> >> This behavior is noted in the qr documentation, no?
> >>
> >> rank - the rank of x as
2017 May 29
3
stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
Here is an attached patch.
Best,
Serguei.
Le 29/05/2017 ? 12:21, Serguei Sokol a ?crit :
> The problem or actual R implementation relies on an assumption
> that median(x[i] | x[i] <= quantile(x, 1/3)) == quantile(x, 1/6)
> which reveals not to be true despite very trustful appearance.
>
> If we continue with the example of x=y=1:9
> then quantile(x, 1/6)=2.5 (here quantile()
2017 May 29
2
stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
A usually trustworthy R correspondent posted a pure R implementation on SO at some point in his lost youth:
https://stackoverflow.com/questions/3224731/john-tukey-median-median-or-resistant-line-statistical-test-for-r-and-line
This one does indeed generate the line of identity for the (1:9, 1:9) case, so I do suspect that we have a genuine scr*wup in line().
Notice, incidentally, that
>
2018 Jan 22
2
Inconsistent rank in qr()
Hi,
I have noticed different rank values calculated by qr() depending on
LAPACK parameter. When it is FALSE (default) a true rank is estimated and returned.
Unfortunately, when LAPACK is set to TRUE, the min(nrow(A), ncol(A)) is returned
which is only occasionally a true rank.
Would not it be more consistent to replace the rank in the latter case by something
based on the following pseudo code ?
2018 Jan 18
1
wrong matrix dimension in sparseQR
Hi,
I came across a case when the dimensions of matrices returned by qr()
operated on a sparse matrix does not coincide with the initial matrix.
Here is a spinet code that should produce an example (one of many that I could provide):
?m=205
?n=199
?set.seed(7);
?a=matrix(rnorm(m*n), m, n)
?a[sample(seq(m*n), m*(n-4))]=0
?a=as(a, "Matrix")
?qa=qr(a);
?stopifnot(nrow(qa at R) ==
2018 Dec 03
2
Bug report: Function ppois(0:20, lambda=0.9) does not generate a non-decreasing result.
function ppois is a function calculate the CDF of Poisson distribution, it should generate a non-decreasing result, but what I got is:
> any(diff(ppois(0:19,lambda=0.9))<0)
[1] TRUE
Actually,
> ppois(19,lambda=0.9)<ppois(18,lambda=0.9)
[1] TRUE
Which could not be TRUE.
Code is tested in both R 3.5.1 and Microsoft R Open 3.5.1.
_
2018 Dec 04
3
Bug report: Function ppois(0:20, lambda=0.9) does not generate a non-decreasing result.
Le 04/12/2018 ? 11:27, I?aki Ucar a ?crit?:
> On Tue, 4 Dec 2018 at 11:12, <qweytr1 at mail.ustc.edu.cn> wrote:
>> function ppois is a function calculate the CDF of Poisson distribution, it should generate a non-decreasing result, but what I got is:
>>
>>> any(diff(ppois(0:19,lambda=0.9))<0)
>> [1] TRUE
>>
>> Actually,
>>
>>>
2018 Nov 27
1
Subsetting row in single column matrix drops names in resulting vector
> > The behaviour of a[1,] is unchanged, for backwards compatibility
> > reasons. But in pqR one can explicitly mark an argument as
> > missing using "_". When an array subscript is missing in this way,
> > the names will not be dropped in this context even if there is
> > only one of them. So a[1,_] will do what you want:
> >
> > > a =
2018 Nov 27
1
Subsetting row in single column matrix drops names in resulting vector
Dmitriy Selivanov (selivanov.dmitriy at gmail.com) wrote:
> Consider following example:
>
> a = matrix(1:2, nrow = 2, dimnames = list(c("row1", "row2"), c("col1")))
> a[1, ]
> # 1
>
> It returns *unnamed* vector `1` where I would expect named vector. In fact
> it returns named vector when number of columns is > 1.
> Same issue applicable
2003 Nov 21
2
Who can provide me RWeb installation
Hi,
RWeb web site is down past couple days, I am insterested in this
project and want to try it for my projects. Deos anyone have this
installation and user guide? Thanks!
Best Regards,
WeiQiang Li
2007 Jun 05
1
odfTable
Hello,
I am using the odfWeave packages;
I draw a table using the function odfTable:
partCols <- gsub(?\\.?, ? ?, names(partenaires))
odfTable(partenaires, useRowNames = FALSE, colnames=partCols)
it's working as I have a table in my output file.
I would like to know how to change the background color for the header
cells.
I assuming i have to use tableStyles, but I don't understand
2012 Feb 15
1
Is there a maximum limit for the domU memory ?
Hello everybody
The current limit (we''re working with Xen 4.0.1 on a debian squeeze
server) for the domU memory is 256 Gb
Is it possible to do something to get domUs with more than that ?
Do we have to upgrade Xen hypervisor for that purpose or is a kernel
recompilation sufficient ?
We would like to have a vm with 768 Gb memory...
Thanks for your kind answers !
--
Emmanuel
2017 Jul 05
3
[New Patch] Fix disk corruption when writing
I tried the newest patch, but it does not seem to work for me (on Linux).
Despite the check in Rconn_printf, the write.csv happily writes to
/dev/full and does not report an error. When I added a printf("%d\n", res);
to the Rconn_printf() definition, I see only positive values returned by
the vfprintf call.
Cheers,
j.
On 4 July 2017 at 21:37, Duncan Murdoch <murdoch.duncan at
2010 Jun 09
1
minor tick marks
Hi !
I need a plot for data extending over several orders of magnitude on the y axis.
The following command generates a nice looking semi-log plot for my data:
plot(x,y,log="y",type="l",lty=3, ylim=c(0.01,2),yaxp=c(0.01,1,1),las=1)
I would appreciate having also minor tick marks in-between the 3 major ticks obtained with the above command. The "minor.tick" function