Displaying 20 results from an estimated 5000 matches similar to: ""Debain" way of installing packages"
2006 Mar 20
2
levels for list and data.frame
Hello!
Does R core find the following pacth usefull - I created methods for
levels for list and data.frame, which can be usefull to get a list of
levels for entries in a list or columns in a data.frame. Patch is
attached and shown bellow example
# Example
> tmp <- list()
> tmp$a <- factor(letters[1:10])
> tmp$b <- factor(letters[5:14])
> tmp$c <- 1:10
> tmp1 <-
2006 Mar 06
1
Sort problem in merge()
Hello!
I am merging two datasets and I have encountered a problem with sort.
Can someone please point me to my error. Here is the example.
## I have dataframes, first one with factor and second one with factor
## and integer
> tmp1 <- data.frame(col1 = factor(c("A", "A", "C", "C", "0", "0")))
> tmp2 <- data.frame(col1 =
2005 Feb 11
2
Notes on bug reports 3229 and 3242 - as.matrix.data.frame
Hello R developers.
I encountered the same problem as Uwe Ligges with as.matrix.data.frame()
in bug reports 3229 and 3242 - under section not-reproducible.
Example I have is:
> tmp
level 2100-D
1 biological_process unknown NA
2 cellular process -5.88
3 development -8.42
4 physiological process -6.55
5
2005 Mar 25
4
Gmail invitation
Hello R users!
I just found out that I have 49 invitations for Gmail (gmail.google.com).
I have been using it now for a while and is really nice. Don't forget
1 GB for free.
I will invite those who respond to this mail by FIFO.
--
Lep pozdrav / With regards,
Gregor Gorjanc
------------------------------------------------------------------------
University of Ljubljana
Biotechnical
2006 Oct 30
4
read.fwf and header
Hi!
I have data (also in attached file) in the following form:
num1 num2 num3 int1 fac1 fac2 cha1 cha2 Date POSIXt
1 1 f q 1900-01-01 1900-01-01 01:01:01
2 1.0 1316666.5 2 a g r z 1900-01-01 01:01:01
3 1.5 1188830.5 3 b h s y 1900-01-01 1900-01-01 01:01:01
4 2.0 1271846.3 4 c i t x 1900-01-01 1900-01-01 01:01:01
5 2.5 829737.4 d j u w 1900-01-01
6 3.0
2006 Oct 30
4
read.fwf and header
Hi!
I have data (also in attached file) in the following form:
num1 num2 num3 int1 fac1 fac2 cha1 cha2 Date POSIXt
1 1 f q 1900-01-01 1900-01-01 01:01:01
2 1.0 1316666.5 2 a g r z 1900-01-01 01:01:01
3 1.5 1188830.5 3 b h s y 1900-01-01 1900-01-01 01:01:01
4 2.0 1271846.3 4 c i t x 1900-01-01 1900-01-01 01:01:01
5 2.5 829737.4 d j u w 1900-01-01
6 3.0
2006 Jul 02
4
Test for argument in ...
Hello!
Say I have a function foo1, which has argument ... to pass various
arguments to foo2 i.e.
foo1 <- function(x, ...)
{
foo2(x, ...)
}
Say that foo2 accepts argument arg1 and I would like to do the following:
- if foo1 is called as foo1(x) then I would like to assign some value to
arg1 inside foo1 before calling foo2
arg1 <- "some value"
foo2(x, arg1=arg1)
- if foo1 is
2005 Feb 22
6
Run Sweave and LaTeX directly from command line
Hello!
Those of you, who use Sweave a lot, will probably find my shell script
usable. You can get it at:
http://www.bfro.uni-lj.si/MR/ggorjan/programs/shell/Sweave.sh
No warranty, however don't hesitate to contact me if you find an error or
have a patch!
--
Lep pozdrav / With regards,
Gregor GORJANC
---------------------------------------------------------------
University of
2005 Feb 23
4
Sweave and \input or \include LaTeX commands
Hello!
I was just wondering if Sweave can work with \input or \include
LaTeX commands. So, is it aware of such a possible hierarchy in
documents. I would test that, but I don't have such a report
available at the moment.
I thought of that when I was writting shell script for Sweave
from command line and I have solved that part there.
--
Lep pozdrav / With regards,
Gregor GORJANC
2004 Dec 31
4
R-intro
Hello!
I was reading R-intro and I have some suggestions:
R-intro.html#A-sample-session
rm(fm, fm1, lrf, x, dummy)
suggestion
rm(fm, fm1, lrf, x, y, w, dummy)
The next section will look at data from the classical experiment of Michaelson and Morley to measure the speed of light.
file.show("morley.tab")
mm <- read.table("morley.tab")
suggestion
mm <- data(morley)
2005 Feb 07
2
Programming/scripting with "expressions - variables"
Hello to Rusers!
I am puzzled with R and I really do not know where to look
in for my problem. I am moving from SAS and I have difficulties
in translating SAS to R world. I hope I will get some hints
or pointers so I can study from there on.
I would like to do something like this. In SAS I can write
a macro as example bellow, which is afcourse a silly one but
shows what I don't know how
2005 Mar 27
3
F90
Hello!
Has anyone successfully compiled F90 sources in R-package? I found the
same question on r-devel list from 2002 and I wonder if there is any
progress. I heard that g95 and gfortran can be usable.
And one more thing. I have a program written in F90 and lets suppose that
compiler is not a problem. I've read manual 'Writing R Extensions' and
successfully loaded one F77 subroutine
2005 Mar 27
3
F90
Hello!
Has anyone successfully compiled F90 sources in R-package? I found the
same question on r-devel list from 2002 and I wonder if there is any
progress. I heard that g95 and gfortran can be usable.
And one more thing. I have a program written in F90 and lets suppose that
compiler is not a problem. I've read manual 'Writing R Extensions' and
successfully loaded one F77 subroutine
2004 Nov 12
4
How to get mode (the most frequent value in distribution)?
Hello!
I have a continous distribution and would like to get mode (the most
frequent value in distribution). I easily found mean, median and other
basic thing but not mode function. Can anyone help?
I know there my might be problems with multiple modes, but still I think
that there should be a mode function in R.
Please send mail to R-help list and me, so I can get response faster.
Thank
2006 Feb 10
8
Fitdistr and MLE for parameter lambda of Poisson distribution
Hello!
I would like to get MLE for parameter lambda of Poisson distribution. I
can use fitdistr() for this. After looking a bit into the code of this
function I can see that value for lambda and its standard error is
estimated via
estimate <- mean(x)
sds <- sqrt(estimate/n)
Is this MLE? With my poor math/stat knowledge I thought that MLE for
Poisson parameter is (in mixture of LaTeX
2005 Feb 11
2
Notes on bug reports 3229 and 3242 - as.matrix.data.fram e
> From: Gorjanc Gregor
>
> ! Look after character !
>
> From: Prof Brian Ripley [mailto:ripley@stats.ox.ac.uk]
> You too have not give an reproducible example!
> ! Yes, I was not able to do it from my data. But bellow is one. It is
> ! a stupid one, but it works. The problem is use of as.data.frame in
> ! tmp1$L <- as.data.frame(tmp$L). This looks like to produce
2007 May 19
4
GPG key for Ubuntu packages
Hi!
Is anyone experiencing the following:
$ gpg --keyserver subkeys.pgp.net --recv-key E2A11821
gpg: requesting key E2A11821 from hkp server subkeys.pgp.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
Regards, Gregor
2005 May 08
2
Extract just some fields from XML
Hello!
I am trying to get specific fields from an XML document and I am totally
puzzled. I hope someone can help me.
# URL
URL<-"http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=11877539,11822933,11871444&retmode=xml&rettype=citation"
# download a XML file
tmp <- xmlTreeParse(URL, isURL = TRUE)
tmp <- xmlRoot(tmp)
Now I want to extract only
2005 Apr 24
4
Upgrading R
Hello!
New version of R has came out and I would like to thank to all developers
on this matter. So I should probably upgrade. Fine and no problem. For
windows I just grab the latest precompiled binnaries and install them. Then
I see a report on a bug, which is or will be fixed in pacthed version. So
I need to get binnaries from patched build and install them, right?
How often do you people
2005 Apr 24
4
Upgrading R
Hello!
New version of R has came out and I would like to thank to all developers
on this matter. So I should probably upgrade. Fine and no problem. For
windows I just grab the latest precompiled binnaries and install them. Then
I see a report on a bug, which is or will be fixed in pacthed version. So
I need to get binnaries from patched build and install them, right?
How often do you people