similar to: AW: sapply() and Monte Carlo

Displaying 20 results from an estimated 3000 matches similar to: "AW: sapply() and Monte Carlo"

2002 Jun 26
3
sapply() and Monte Carlo
Dear Helplist Some time ago, Professor Ripley gave me a tip which I thought was very very useful for Monte Carlo simulation; I thought I'd pass it on to the list, and ask whether this or a similar example could be added to the sapply() manpage. Suppose I have ten N(0,1) random variables and I'm interested in the pair that are closest together: R> min(diff(sort(rnorm(10)))) [1]
2000 Sep 04
1
quitting iESS[R] (R in ESS)
One thing that has driven me batty to no end is the fact that ESS doesn't handle R's "exit" well. Any thoughts as to the default? I'm thinking of something like: current: do what currently is done C-u Y C-c C-q : quit and save workspace C-u N C-c C-q : quit and don't save workspace. Comments? best, -tony -- A.J. Rossini Rsrch. Asst.
2000 Dec 08
0
LME and cat()
(please keep sebastian cc'd) Doug - we are managing to trigger, both on R 1.1.1 and R 1.2.0 (proper versions of NLME), the following: > warnings(model1) Warning message: Singular precision matrix in level -1, block 1 Error in cat(list(...), file, sep, fill, labels, append) : argument 2 not yet handled by cat > suggesting either an "inappropriate" use of cat(), or a
2000 Dec 11
2
row.names, rownames; colnames, no col.names?
There's a bit of a symmetry issue, which may or may not be important (led to 15 seconds of confusion until I got my bearings straight): row.names, rownames; colnames, no col.names? I _NOW_ realize the difference between row.names and rownames, but is there any reason not to have col.names for re-naming columns in a data.frame? (if there is, I don't particular need to know it, but it
2000 Nov 02
1
how to extract directory with HTML version of help pages?
Is there a simple way to determine at run-time the directory with HTML version of help pages? (to see where I'm heading here, if you've got w3 installed under (X)Emacs on Unix _or_ a Microsoft OS, do w3-find-file and load $(R_HOME)/library/html/whateverfunction.html It's slightly nicer than the standard ESS text-help. best, -tony -- A.J. Rossini Rsrch. Asst.
2000 Dec 06
1
Changes in R 1.2.0 devel?
After installing nlme_3.1-7.tar.gz under the latest R (1.2.0, via anonymous CVS), I'm unable to get it to work, i.e.: rossini 94 > /usr/local/bin/R R : Copyright 2000, The R Development Core Team Version 1.2.0 Under development (unstable) (2000-12-06) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type
2000 Oct 17
3
"wizard" for building R-packages...
Suppose one wanted to build an R wizard for packaging... One would need to specify and create: package-name/ package-name/Description package-name/INDEX package-name/R/ package-name/man/ package-name/src/ >From this, we'd "probably" like to: - script-up the Description - provide a script for regenerating INDEX by calling out to the
2000 Dec 19
1
Re: ESS for R
>>>>> "BR" == B Rowlingson <B.Rowlingson at lancaster.ac.uk> writes: >> Could you check and see if the variable is global or >> buffer-local? ("C-h v ess-dump-filename-template" should do >> it). BR> ess-dump-filename-template's value is "rowlings.%s.S" Local in BR> buffer *S+5*; global value is
2000 Nov 02
2
RSPerl...
Duncan - (but sent to R-devel, for any other thoughts?) How do you envision RSPerl being used? Without having seen the details, I can think of playing with strings; is there a preferred incantation for stringification of R objects (serialization)? (actually, the main problem I'm having is that I know how I want to code something like: Robject <-
2003 Jan 21
1
bayesian text classification...
for Spam. In the process of setting up a more effective spam filtering system, I just noticed that bogofilter, which implements extensions of the (a?) "Naive Bayes" text classification approach, will dump out R data frames; the man page suggests how to "integrate" it with R for verification. (sort of, that is). Anyway, for those of you looking for silly and perhaps
2000 Aug 11
0
Emacs Speaks Statistics (ESS) BOF at JSM
> > Date: Fri, 11 Aug 2000 15:34:01 -0400 > From: Rodney Sparapani <rodney at stat.duke.edu> > Subject: Emacs Speaks Statistics (ESS) BOF at JSM > > Statisticians: > > For those of you going to the JSM in Indy next week, we are having an > Emacs Speaks Statistics (ESS) BOF Monday, August 14th, 5:30 at the Hyatt > in Salon A. Please bring along your comments,
2002 Apr 22
2
could we add an argument to suppress printing of levels for print.factor()?
could we add an argument to suppress printing of levels for print.factor()? i.e.: print.factor <- function (x, quote = FALSE, print.levels = TRUE, ...) ## MODIFIED { if (length(x) <= 0) cat("factor(0)\n") else print(as.character(x), quote = quote, ...) if (print.levels) { ## ADDED cat("Levels:
2003 Aug 18
0
Any interest in commercial add-on libraries based on Cyte l's StatXact/LogXact?
Another example: Jerry Friedman's MART is available in R from Salford for the same price as the stand-alone TreeNet, even though they don't advertise it on their web site. Andy > -----Original Message----- > From: rossini at blindglobe.net [mailto:rossini at blindglobe.net] > Sent: Sunday, August 17, 2003 9:50 PM > To: rhelp > Cc: pralay at cytel.com > Subject: [R]
2002 Apr 10
0
programmatic installation
Okay, so I've got a set of directories containing unpacked R packages (unpacked, since for various sensible reasons, I'm editing them in warped ways). Supposing that these are in: /home/rossini/Runpacked I thought I could do something like: install.packages("MyUnPackedRPackage", # top package name lib="/home/rossini/lib/R", # where
2002 Feb 13
0
SJava still hates GUIs on Linux, both Blackdown and IBM... Can anyone verify IBM or Sun?
I've been having fun with crashes recently, both with Blackdown JDK and the IBM JDK, while building up the ROrca interface. It's just not stable for me, and my lack of grokking the intimate details of lazy evaluation is not helping. Brushing works, though, which is nice. I need a bit more stability before I get the "data add/change" features in line, though. Anyway, other
2001 Nov 29
1
installing packages from CRAN, is this approach stupid?
In order to quickly install lots ("all") of CRAN packages on a nice new machine here, I did the following: install.packages(CRAN.packages()[,1]) 1. Is this sensible (other than the obvious, "who needs everything"?) 2. Should this be made easier to do (added as a possible option)? best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics U. of Washington
2004 Aug 27
1
selecting unique columns of a matrix/data frame
Hi all, I have a very high dimensional data and apparently there are several columns that contain similar information (some columns are equal). I want to form a matrix/data frame consisting of unique columns. Does anyone have an efficient way of getting out these columns. A small section of the data frame is given below. Thanks for helping. Stephen. > newdata [,1] [,2] [,3] [,4] [,5]
2003 Aug 18
1
rterm not shutting down from ESS on Win32/could we help?
Hi to all who suffer from rterm not shutting down in xemacs/ESS on windows NT or 2000. Also hi to those who could eventually help. Here is some more information which could help and some ENCOURAGEMENT to contribute to a solution. 1. It may be an xemacs problem but it is more likely an interaction between rterm/comint/and xemacs. In fact, the problem started occurring around version R 1.6.0. I
2001 Jul 26
0
marshalling/serializing of R objects for later execution?
I know that this was a topic in March at DSC, but I was suffering from a nasty migraine that prevented me from paying as much attention as I ought to. What's the current state-of-the-art regarding packaging/serialization of R objects? Or is it still vaporish (i.e. nothing built)? I'm a bit more interested in functions/closures than "ordinary data". best, -tony -- A.J.
2001 Apr 02
0
PICT files...
So, lots of comments about PICT. If you have to go there (EPS to PICT, but vectorized PICT for an investigator to use), does anyone have suggestions? I've found EPStoPICT (www.artage.com), any other thoughts? (these are real Mac people, so while I could go the WMF route, it's about as palatable as EPS). best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics UW