Displaying 20 results from an estimated 10000 matches similar to: "How to choose "seed" in set.seed(seed, ...)?"
2011 Jul 25
2
Simple example of using a closure in R to manage bank accounts?
Greetings. I once ran across a simple (toy) example of using a closure in R to
manage bank accounts. I've got a use for it now but can no longer find it. If
you have it (or a similar example), will you please send it to me?
(Unfortunately, a web search that includes the terms "bank" and "closure" leads
into a whole pile of unrelated stuff.)
Thanks,
-- Mike
2018 Feb 19
2
Include pre-existing PDF files as vignettes in an R package?
Thanks, Duncan. The files in question are Emacs Org-mode files, and I
think these are more or less isomorphic to Rmd files, but I haven't
used Org-mode in a long time, so I think the mapping (Org-mode ==>
Rmd) would be painful.
-- Mike
On Mon, Feb 19, 2018 at 1:20 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 18/02/2018 9:06 PM, Michael Hannon wrote:
>>
2018 Feb 19
4
Include pre-existing PDF files as vignettes in an R package?
Greetings. The group that I work with has just started using the approach
outlined in Karl Broman's handy primer:
http://kbroman.org/pkg_primer/pages/vignettes.html
to create vignettes for a couple of R packages.
This works fine as long as we have a current Rmd version of the vignette. But
we have some old PDF documents that we'd like to include as vignettes as well.
I'd like
2018 Feb 19
2
Include pre-existing PDF files as vignettes in an R package?
> On 19 Feb 2018, at 12:25, Duncan Murdoch <murdoch.duncan at gmail.com <mailto:murdoch.duncan at gmail.com>> wrote:
>
> On 19/02/2018 5:47 AM, Michael Hannon wrote:
>> Thanks, Duncan. The files in question are Emacs Org-mode files, and I
>> think these are more or less isomorphic to Rmd files, but I haven't
>> used Org-mode in a long time, so I think
2018 Feb 19
0
Include pre-existing PDF files as vignettes in an R package?
On 19/02/2018 5:47 AM, Michael Hannon wrote:
> Thanks, Duncan. The files in question are Emacs Org-mode files, and I
> think these are more or less isomorphic to Rmd files, but I haven't
> used Org-mode in a long time, so I think the mapping (Org-mode ==>
> Rmd) would be painful.
If they aren't LaTeX then they won't be able to masquerade as Sweave
files, so things are
2018 Feb 19
0
Include pre-existing PDF files as vignettes in an R package?
Yes, 'C-c C-e l l' I think, but follow the pop-up, and everything should be
ok.
On Feb 19, 2018 07:05, "Rainer Krug" <rainer_krug at icloud.com> wrote:
>
>
> > On 19 Feb 2018, at 12:25, Duncan Murdoch <murdoch.duncan at gmail.com
> <mailto:murdoch.duncan at gmail.com>> wrote:
> >
> > On 19/02/2018 5:47 AM, Michael Hannon wrote:
>
2009 Dec 30
1
Fwd: Negbin Error Warnings
Dear Clara,
Thanks for the reply. I am forwarding your message to the list, ok.
When I wrote was a way of get further information to help the helpers.
happy holidays,
milton
---------- Forwarded message ----------
From: Clara Brück <clara_brueck@web.de>
Date: 2009/12/30
Subject: Re: [R] Negbin Error Warnings
To: milton ruser <milton.ruser@gmail.com>
Dear Milton,
Thanks for
2009 Jun 08
3
caret package
Hi all
I am using the caret package and having difficulty in obtaining the results
using regression, I used the glmnet to model and trying to get the
coefficients and the model parameters I am trying to use the
extractPrediction to obtain a confusion matrix and it seems to be giving me
errors.
x<-read.csv("x.csv", header=TRUE);
y<-read.csv("y.csv", header=TRUE);
2009 Jun 08
5
mean
Hi,
I have gote the following data
x1 <- c(rep(1,6),rep(4,7),rep(6,10))
x2 <- rnorm(length(x1),6,1)
data <- data.frame(x1,x2)
and I would like to compute the mean of the x2 for each individual of x1, i. e. x1=1,4 and 6?
Thank you very much in advance,
Amori
[[alternative HTML version deleted]]
2009 Jul 16
2
Renviron.in error when compiling R 2.9.1 under Debian.
Dear all,
I'm trying to compile R 2.9.1 on my home directory under debian,
and as I need to play with RPy, I tryed compile R using:
./configure --enable-R-shlib
But, during the compilation, I get the error below:
-------------------------------------
using as R_SHELL for scripts ... /bin/sh
configure: creating ./config.status
config.status: creating Makeconf
config.status: creating Makefile
2009 Jun 08
6
Strange indices of support verctors from e1071
Hello,
In the attached file training.csv (I apologize for the large file) I
have 238 objects belonging to 13 classes, which are described by 183
properties. I would like to find a svm model for these objects.
I tried the following R statements.
library('e1071')
datatraining <- read.csv("training.csv",head=TRUE)
names<-names(datatraining)
print("before
2010 May 18
2
avoiding reinstall already installed library
Dear R-experts,
I am installing new libraries using
install.packages("ggplot2",dependencies=T).
But I perceive that many dependencies are already installed. As I am using
a low-band internet, how can avoid reinstall installed libraries?
cheers
milton
[[alternative HTML version deleted]]
2010 May 18
2
avoiding reinstall already installed library
Dear R-experts,
I am installing new libraries using
install.packages("ggplot2",dependencies=T).
But I perceive that many dependencies are already installed. As I am using
a low-band internet, how can avoid reinstall installed libraries?
cheers
milton
[[alternative HTML version deleted]]
2008 Sep 20
2
AUC / ROC for presence only.
Dear all,
I have a probability of presence of distribution of a species of interest
(varying from 0 to 1 in continuous form) and I have a set of points
where I know that species really occurs. But I don´t have points of absence.
So, for each true presence I know the estimated presence.
I would like to know how can I compute AUC, taking account these
Available data.
Best wishes,
2010 Feb 18
3
parsing strings between [ ] in columns
Dear all,
I have a data.frame with a column like the x shown below
myDF<-data.frame(cbind(x=c("[[1, 0, 0], [0, 1]]",
"[[1, 1, 0], [0, 1]]","[[1, 0, 0], [1, 1]]",
"[[0, 0, 1], [0, 1]]")))
> myDF
x
1 [[1, 0, 0], [0, 1]]
2 [[1, 1, 0], [0, 1]]
3 [[1, 0, 0], [1, 1]]
4 [[0, 0, 1], [0, 1]]
As you can see my x column is composed of
2005 Aug 30
3
64 bit R for Windows
I am assisting in the purchase of 64-bit Windows XP system for researchers who run R. These systems will have AMD Opteron processors and at least 4GB of RAM. I'd appreciate advice on whether there is a working version of R that can take full advantage of such systems.
Milton F. L?pez
IT Guy
Inter-American Tuna Commission (IATTC)
8604 La Jolla Shores Drive
La Jolla, CA 92037
Tel: (858)
2008 Jan 31
3
Help with authenticating against Active Directory.
Hello all,
I'm trying to authenticate shell login's against an MS-ADS. I don't
have admin access to the ADS, but I can talk to the admins.
I have gotten as far as getting authentication working, but the uid's
depend on the order of login. ie: the first guy to login gets 10000,
the next gets 10001, etc. The problem I have with this is that I want
to share the home
2009 Apr 18
1
install raster package on ubuntu
Dear all,
I am running R 2.8.1. under ubuntu, and I need to install
the package "raster" but I get the following error:
> install.packages("raster")
Warning in install.packages("raster") :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
2009 Oct 19
1
updating columns using other column as reference
Dear R-gurus,
Just supose I have a dara.frame that looks like
myDF<-read.table(stdin(),head=T,sep=",")
codID,namesp,k1,k2,k3,k4
1,spA,2,5,6,3
2,spB,4,5,4,6
3,spC,2,1,5,6
4,spC,5,4,3,2
5,spD,1,2,3,4
6,spE,2,4,3,1
I need to update the columns k1-k4 with the namesp, but
considering the math between Kx and codID.
My desired output must looks like:
codID,namesp,k1,k2,k3,k4
2008 Feb 27
4
plot y1 and y2 on one graph
Dear all
I have a code like
x<-1:10
y1<-x+runif(10)*2
y2<-seq(0,50,length.out=10)+rnorm(10)*10
par(mfrow=c(1,2))
plot(y1~x)
plot(y2~x)
Now I would like to plot y1 and y2 on the same graph, with its two scales
(y1 on left and y2 on rigth side).
Any help are welcome.
Kind regards
Miltinho
Brazil
[[alternative HTML version deleted]]