Displaying 20 results from an estimated 2000 matches similar to: "reexpand a matrix after subsetting"
2007 Mar 02
3
from function to its name?
Hi,
I can get from a string to a function with this name:
>f1 <- function(x){ mean(x) }
>do.call("f1",list{1:4})
>get("f1")
etc...
But how do I get from a function to its name?
>funcVec <- c(f1,median)
>funcVec
[[1]]
function(x){ mean(x) }
> str(funcVec)
List of 2
$ :function (x)
..- attr(*, "source")= chr "function(x){ mean(x)
2006 Dec 07
1
templating library for R
Hi,
does anybody know of a templating library for R,
like velocity or freemarker?
It doesn't have to be very fancy just a bit
better than sub in replacing tags in a text (not
necessarily html) file.
thank you very much for your answer.
Ido
2007 Jul 05
1
ggplot2 customizing
Dear all,
I know that ggplot2 documentation is coming along,
but at the moment I can't find how to do the following:
a) change the title of the legend
b) get rid of the closing line at the bottom of the
density line.
I also observed that the density lines (after limiting the
x-scale) extend a little bit into the surrounding of the plot,
which can be seen very strong when plotted as pdf.
2007 Aug 09
1
depreciation of $ for atomic vectors
Dear All,
I would like to know why $ was deprecated for atomic vectors and
what I can use instead.
I got used to the following idiom for working with
data frames:
df <- data.frame(start=1:5,end=10:6)
apply(df,1,function(row){ return(row$start + row$end) })
I have a data.frame with named columns and
use each row to do something. I would like the
named index ($) because the column position
in
2008 Nov 03
1
dev2bitmap: extra missing
Hi,
I don't know if I am the first one to report the problem:
in 2.8.0 dev2bitmap gained aa support, but "extra" is null
if neither taa nor naa is specified.
> dev2bitmap("plot.pdf",type="pdfwrite")
Error in paste(shQuote(gsexe), " -dNOPAUSE -dBATCH -q -sDEVICE=", type, :
object "extra" not found
>
2005 Dec 13
1
correct C function usage
Hello,
I am not sure if I am interfacing with C correctly and _safely_
or if there is a better way esp. with regards to terminating
the "returned" array.
I am trying to fill an int array with values whose actual size
is determined in the C function and is always maximally as large
as length(values).
I also don't understand the purpose of $ab in the example:
conv <- function(a,
2005 Feb 23
3
bias of a boot statistic
Question:
How can I get access to the bias value of a boot statistic?
Details:
Boot function:
boot(data, statistic, R, sim="ordinary", stype="i",
strata=rep(1,n), L=NULL, m=0, weights=NULL,
ran.gen=function(d, p) d, mle=NULL, ...)
When I create an object, containing the bootstrap statistic (object <- boot
(....))I can call it and will get an output
2008 Jan 09
1
Rscript on OSX
Hi,
I directed somebody to install R (2.6.1) on his OSX computer,
following instructions from http://cran.r-project.org/bin/macosx.
She can run R from the console.
But plot(1:10) doesn't produce any output or open a window (as I am
used to from linux).
More importantly:
Rscript is not in the path (minor problem ln -s is hopefully doable). I tried
to put a hardcoded path to Rscript into the
2008 Jun 30
1
2.7.0 breaks read.table
Hi,
yes a bold statement, but I get different behaviour
from 2.6.2 and 2.7.0 in read.table, and I don't find
any documentation in http://cran.r-project.org/src/base/NEWS.
A file like (space delimited):
foo + .
bar - .
2.7.0:
> tab <- read.table("test.txt",as.is=TRUE)
> tab
V1 V2 V3
1 foom 0 0
2 bar 0 0
while until now and on 2.6.2
> tab <-
2005 Dec 04
2
tiff graphics
Colleagues
I frequently insert PDF graphics created with R into Word (Office
2004 for Mac) documents. The documents are created on either a
Linux machine (RedHat 9) or a Mac (Tiger). I am using R 2.2.0.
These pdf graphics often lose a great deal of resolution after
insertion into Word compared to their high quality when printed as
PDF documents. I recently learned that converting the
2005 Dec 04
4
Construct a data.frame in a FOR-loop
Say I have a FOR-loop for computing powers (just a trivial example)
for(i in 1:5)
{
x<-i^2
y<-i^3
}
How can I create a data.frame and a 3D plot of (i,x(i),y(i)), i.e. for
each iteration
Thanks,
Serguei Kaniovski
--
___________________________________________________________________
??sterreichisches Institut f??r Wirtschaftsforschung (WIFO)
Name: Serguei Kaniovski
2003 May 01
2
Sudden disconnect
hi all, just finished upgrading to 2.2.8a and things went well and without any sign of a glitch. I was able to log in from windows to my FreeBSD box as root just like before the upgrade.
but then, all of a sudden, the box was no longer available from windows
no sign of anything going on with the FreeBSD computer
I can putty into it and it seems fine
nmbd and smbd show up in top
what could
2007 Jul 04
1
kvm developers' forum 2007
We's like to invite all of you to attend the first annual KVM Forum
2007. Please click here http://www.qumranet.com/KVMForum2007.php to be
taken to the event site where you can learn more about the KVM Forum
2007 and register online. Hosted by the KVM Developer Community, the
purpose of the forum is to bring together developers, testers and other
technical individuals from within the community
2007 Jul 04
1
kvm developers' forum 2007
We's like to invite all of you to attend the first annual KVM Forum
2007. Please click here http://www.qumranet.com/KVMForum2007.php to be
taken to the event site where you can learn more about the KVM Forum
2007 and register online. Hosted by the KVM Developer Community, the
purpose of the forum is to bring together developers, testers and other
technical individuals from within the community
2008 Jul 28
4
RHEL 5.2 i386 image - Xen kernel doesn''t recognize the total amount of system memory
Hello,
We have installed RHEL 5.2 Server ( i386 image ) on a machine with 64GB of
RAM.
When booting the default PAE kernel ( 2.6.18-92.el5PAE ) that is shipped
with RHEL 5.2 installation the OS detects 64GB of RAM.
But when booting the Xen kernel ( 2.6.18-92.el5xen ) the OS detects only
14GB of the total amount of available RAM.
Did anyone encounter this problem before ?
Is it a normal
2015 May 19
4
preexec and msdfs proxy
Hi,
Thank you for you input!
We tried that already. That, however, doesn't do the same thing. It is then simply a DFS server and not the "magical" msdfs proxy - yes the user can now click on a link to get to the desired spot, but the proxy function _automagically_ sends the user, when they access the msdfs share, to the netapp's readonly share without the extra click. And it
2008 Aug 28
8
RHEL 5.2 Xen Kernel doesn''t detect all amount of physical memory
Hello All,
Does anyone know what is the current status of RHEL 5.2 x86_64 with respect
to the maximum amount of RAM detected by the Xen 64 bit kernel
(the one that shipped with Red Hat distribution )
In the following link
https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Virtualization_Guide/ch-virt-hw-support.html
it states that 32GB of RAM is the maximum amount of
2003 Mar 09
4
rsync and timestamps of local files
Is there a way to make rsync check the local file system for changes in the files
prior to it performing a diff with the remote site?
2015 May 21
1
preexec and msdfs proxy
Hey,
thanks for the input!
I am looking into that. It is however a bit complicated due to the authentication lines and share connect lines being only related due to proximity in the log. It would probably work for most of the instances, but it would not be 100% viable, meaning we would be getting compaints and questions from our user "I ain't got that share?! WTF!!"
I was going to
2018 Dec 20
2
4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect
On Thu, Dec 20, 2018 at 11:17 AM Ido Schimmel <idosch at idosch.org> wrote:
>
> On Thu, Dec 20, 2018 at 03:09:22PM +0100, Christian Borntraeger wrote:
> > On 20.12.2018 10:12, Ido Schimmel wrote:
> > > +Willem
> > >
> > > On Thu, Dec 20, 2018 at 08:45:40AM +0100, Christian Borntraeger wrote:
> > >> Folks,
> > >>
> >