Re: [R] Problem reading binaries created with fortran

2009-12-17 Thread Duncan Murdoch
over those --- but you need to know how much to skip. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] Problem reading binaries created with fortran

2009-12-17 Thread Duncan Murdoch
is a MODFLOW output with a mix of character, double and integers. One other thing: the hexView package does a very nice job of displaying the file, so you can work out what the structure is if the documentation is unclear (or nonexistent). Duncan Murdoch

Re: [R] Sweave Makefile issue

2009-12-17 Thread Duncan Murdoch
--slave yap -1 -s%1%2 %3.dvi The arguments are %1=line number, %2=filename of .Rnw file, %3=basename of master file (or of the filename) Duncan Murdoch However, it's not doing what I expect it to do. Instead of only using pdfTeX on total_article.tex (which is the file with the necessary headers

Re: [R] Problem reading binaries created with fortran (More infos)

2009-12-17 Thread Duncan Murdoch
output. Duncan Murdoch I tried to read the first line with readBin (results are copied below): zz - file(heads.hds, rb) readBin(zz,what=integer,n=2) [1] 1 1 readBin(zz,what=double,n=2) [1] 7.812502e-03 6.013470e-154 readBin(zz,what=character,n=1) [1] HEAD readBin(zz,what=integer,n=3

Re: [R] Getting Rd pages right for redefined S3 generic

2009-12-18 Thread Duncan Murdoch
say that what you've done is unwise. I would rename the function to avoid future confusion, especially if you decide to export it. Even if it's for internal use only, won't you want a reminder in 2 years time that cbind(a,b) doesn't mean what the documentation says it means? Duncan Murdoch

Re: [R] How to define new operators

2009-12-18 Thread Duncan Murdoch
the operators it recognizes to the predefined ones, plus user-defined ones of the form %op% (where op could be ++ if you liked). You can't define ++ as an operator because the parser will see it as two plus signs, not as a single infix operator. Duncan Murdoch

Re: [R] Inserting .png plots in MS Word.

2009-12-19 Thread Duncan Murdoch
. I don't know which vector formats your advisor's version of MS Word supports, but presumably their docs will tell you. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Inserting .png plots in MS Word.

2009-12-19 Thread Duncan Murdoch
) and submit it to my adviser, and keep a possibility to re-size pictures. Is it possible to add these .pdf / .eps images into word (instead of latex). I don't know, I rarely use it. Duncan Murdoch Thanks, Wenjie On Sat, Dec 19, 2009 at 1:49 PM, Duncan Murdoch murd...@stats.uwo.ca mailto:murd

Re: [R] Limit on number of times Realloc can be called?

2009-12-20 Thread Duncan Murdoch
(double), double); The second argument to Realloc is supposed to be the number of elements to allocate. sizeof(t) is 4 or 8 (32 bit or 64 bit), sizeof double is 8, so you always allocate 12 or 16 elements. Then in the next line you write out of bounds. Duncan Murdoch t[i

[R] Playing with rgl: a Youtube video

2009-12-21 Thread Duncan Murdoch
! Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Problem with expand.grid

2009-12-22 Thread Duncan Murdoch
the grid of unique values in each column, which you could do using expand.grid(lapply(dDF, unique)) Duncan Murdoch R version 2.11.0 Under development (unstable) (2009-12-20 r50794) expand.grid(data.frame(y=1:10, t=1:10)) Error in `[[-.data.frame`(`*tmp*`, i, value = c(1L, 2L, 3L, 4L, 5L, 6L

Re: [R] Playing with rgl: a Youtube video

2009-12-22 Thread Duncan Murdoch
On 22/12/2009 12:49 PM, Mark Knecht wrote: On Mon, Dec 21, 2009 at 4:42 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: I've just posted a demo made with the rgl package to Youtube, visible here: http://www.youtube.com/watch?v=prdZWQD7L5c For future reference, here are the steps I used: 1

Re: [R] Playing with rgl: a Youtube video

2009-12-23 Thread Duncan Murdoch
On 23/12/2009 7:13 AM, Rainer M Krug wrote: On Tue, Dec 22, 2009 at 8:10 PM, Duncan Murdoch murd...@stats.uwo.ca mailto:murd...@stats.uwo.ca wrote: On 22/12/2009 12:49 PM, Mark Knecht wrote: On Mon, Dec 21, 2009 at 4:42 AM, Duncan Murdoch murd...@stats.uwo.ca

Re: [R] Unwanted association between a function and a namespace

2009-12-23 Thread Duncan Murdoch
is to *never* store anything in your workspace between sessions. Start with a clean global environment each time. Duncan Murdoch My guess is that if I knew how that happened, I'd then know why plyr is loaded by namespace. However, I'm lost for ideas on how that could have happened. Suggestions

Re: [R] Unwanted association between a function and a namespace

2009-12-23 Thread Duncan Murdoch
On 23/12/2009 6:08 PM, p_conno...@slingshot.co.nz wrote: Quoting Duncan Murdoch murd...@stats.uwo.ca: On 23/12/2009 3:36 PM, p_conno...@slingshot.co.nz wrote: I can't understand how the plyr package is turning up here: [...] I can understand that lattice would be using grid without

Re: [R] Remove double quotation marks

2009-12-29 Thread Duncan Murdoch
: cat(paste(variable, 1), \n) variable 1 I see no quotation marks. (If you use print() you'll see some, but they aren't part of the string, they are just used in the default display by print().) Duncan Murdoch __ R-help@r-project.org mailing list

Re: [R] pass functions and arguments to function

2009-12-29 Thread Duncan Murdoch
:length(fs)) fs[[i]](pars[[i]]) process2(X) } and call it as f(X, list(g1, g2, g3), list(par1, par2, par3)) Duncan Murdoch f = function(X ) { process1(X) g1(X, par1) g2(X, par2) g3(X, par3) process2(X) } If I pass g2(X, par2),g3(X, par3), g1(X, par1) to f, I would expect

Re: [R] pass functions and arguments to function

2009-12-29 Thread Duncan Murdoch
of parameters, then the calls could be do.call(fs[[i]], pars[[i]]) But it's very unlikely that you are doing something that's a good idea. Duncan Murdoch f - function(X, fs, pars) { process1(X) for (i in 1:length(fs)) fs[[i]](pars[[i]]) # doesn't work here process2(X) } On Tue

Re: [R] seg-fault... but on what

2009-12-30 Thread Duncan Murdoch
? Can you make it happen reproducibly with the same script? Can you simplify the script so it happens quickly, rather than requiring 28 million iterations? Without a simple recipe to reproduce it, I doubt if anyone would be able to track down the problem. Duncan Murdoch *** caught segfault

Re: [R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread Duncan Murdoch
to print sequential results rather than wait for the entire function to complete before listing the functhion's output? Call print, e.g. print(x - lm(...)) print(y - vif(...)) etc. Duncan Murdoch Thanks, John minBMI-function(SS,SimData) { SampleData-sample(1:SS,size=SS,replace=TRUE

Re: [R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread Duncan Murdoch
) [1] 1 [1] 2 Error in f(2) : error Duncan Murdoch John John David Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology Baltimore VA Medical Center 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD 21201-1524 (Phone) 410

Re: [R] using optim

2010-01-02 Thread Duncan Murdoch
a scalar value. If you have a length 2 vector to optimize, what does that mean? Duncan Murdoch Thanks, Happy New Year, Erin __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] package license questions

2010-01-03 Thread Duncan Murdoch
code. You still maintain all the rights you ever did, but it doesn't stop them from commercializing closed-source products using your code as a library, whatever that means. Duncan Murdoch I am a big supporter of the open source community and have personally benefitted greately from open

Re: [R] F77_CALL, F77_NAME definition

2010-01-03 Thread Duncan Murdoch
(dpotri) ? It's your search. The definition is in src/include/R_ext/RS.h. BTW, this sort of question is much more of an R-devel question than an R-help one. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] F77_CALL, F77_NAME definition

2010-01-03 Thread Duncan Murdoch
to search only in *.h files, whereas with the GUI searches it's easy. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] F77_CALL, F77_NAME definition

2010-01-03 Thread Duncan Murdoch
On 03/01/2010 10:32 AM, Barry Rowlingson wrote: On Sun, Jan 3, 2010 at 3:20 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: I think it's better to use a reasonable text editor here; I used Textpad. I don't think there's anything too special about it, but it does have Search | Find in files

Re: [R] locator and print

2010-01-04 Thread Duncan Murdoch
output that can control buffering. Duncan Murdoch Thanks in advance, Thomas __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] How to dynamically display title for a graph

2010-01-04 Thread Duncan Murdoch
, data=my_tab,main=sprintf(title is %s,X)) } xbox(age) Use deparse(substitute(X)) in the sprintf. This says: get the expression passed as X, and convert it to text. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] polygamma or Hurwitz zeta function

2010-01-04 Thread Duncan Murdoch
function, on the same man page as digamma and trigamma. Duncan Murdoch I'd appreciate any help. Hakan Demirtas __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Dynamic arguments in rbind function

2010-01-04 Thread Duncan Murdoch
) } Then to bind them all, simply use do.call(rbind, imp). Duncan Murdoch } combined - rbind(*imp.1, imp.2, imp.3, imp.4, imp.5, imp.6*) Your expertise in resolving this issue would be greatly appreciated. Steve [[alternative HTML version deleted

Re: [R] mean for subset

2010-01-05 Thread Duncan Murdoch
(counts)[counts == 3] subset - dataset[ dataset$NAME %in% keep,] tapply(subset$SCORE, subset$NAME, mean) Clara DawnJames Tom NA NA 64.0 78.7 Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] adding 3D arrows to 3D plots

2010-01-07 Thread Duncan Murdoch
here: http://www.mathworks.com/matlabcentral/fileexchange/8396-draw-3d-arrows; it could probably be translated into rgl if you wanted that. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Duncan Murdoch
this is that you won't see help relevant to your current session, you'll see help relevant to the background task. In 2.10.x there aren't many differences, but you'll find it more limiting in 2.11.x and later. Duncan Murdoch I am sorry to say that the new dynamic help is a HUGE nuisance to me. Had

Re: [R] Strange behaviour of as.integer()

2010-01-07 Thread Duncan Murdoch
, as the man page states, non-integer values are truncated towards zero. Normal printing rounds them. So .57*100, which is slightly less than 57, is rounded to 57 for printing, but is truncated to 56 by as.integer. .57*100 57 [1] TRUE Duncan Murdoch

Re: [R] How to report or correct translations typos?

2010-01-07 Thread Duncan Murdoch
; this message is just to confirm you've done what you should do). Duncan Murdoch Thank you for your help. Kenneth __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Duncan Murdoch
the default format. There's nothing that we used in CHM help that couldn't be duplicated in Javascript, without the security holes. I see it as more important that R core enables others to do what they want, rather than to maintain ancient designs. Duncan Murdoch

Re: [R] diag, diag- and [ , [-

2010-01-07 Thread Duncan Murdoch
into it. ([- is done internally in some fairly ugly code, so this might take a while.) As a workaround, I think this does what you want: n - 1 submatrix - M[1:n,1:n,drop=FALSE] diag(submatrix) - rep(100, n) M[1:n,1:n] - submatrix Duncan Murdoch Thanks a lot in advance. Best regards, Roger

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Duncan Murdoch
On 07/01/2010 9:47 AM, Michal Kulich wrote: On 7.1.2010 12:18, Duncan Murdoch wrote: You don't need Rgui, you could run Rterm, which would have a smaller footprint. It's not very hard to start it and minimize it, but if you want it running invisibly, you'll need to figure out how to hide

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Duncan Murdoch
On 07/01/2010 9:51 AM, Gabor Grothendieck wrote: On Thu, Jan 7, 2010 at 9:20 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 07/01/2010 9:05 AM, Michael Friendly wrote: Michal Kulich wrote: On 7.1.2010 9:49, Dieter Menne wrote: I am sorry to say that the new dynamic help is a HUGE

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Duncan Murdoch
On 07/01/2010 10:00 AM, Michal Kulich wrote: On 7.1.2010 15:52, Duncan Murdoch wrote: Not necessarily. The current help system can display information about the current session, e.g. the result of ls(), as a simple example. But if you use a single background session you won't get relevant

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Duncan Murdoch
from source or get the forthcoming Fedora RPM, which will have static pages as the default), without starting an R session. What's so hard about leaving an R session running, and using bookmarks as Dieter described? Duncan Murdoch Jon On 01/07/10 10:32, Duncan Murdoch wrote: A more useful

Re: [R] Problem with writeBin and importing into gfortran compiled programs

2010-01-07 Thread Duncan Murdoch
it can read, but you need to figure out what the differences are before you can match them up. The viewRaw() function in the hexView package is a simple way to look at the bytes in the files. Duncan Murdoch __ R-help@r-project.org mailing list https

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Duncan Murdoch
than no help at all! Then fix the search tool so it can search dynamic web pages. They can be spidered too, just like static ones. Duncan Murdoch As others have done, I have switched back to 2.9.2 until I can build all help files (on Windows). Thanks to those people who are figuring out how

Re: [R] Debugging issues encountered during the R CMD check process

2010-01-07 Thread Duncan Murdoch
the environment variable R_KEEP_PKG_SOURCE=yes I don't know if it will help in this case. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] startup file

2010-01-07 Thread Duncan Murdoch
On 07/01/2010 4:10 PM, mkna005 mkna005 wrote: Hi! I was wondering if it is possible to have a startup script similar to matlab as such when R starts up the script is automatically executed? Thanks Yes, see ?Startup. Duncan Murdoch __ R-help@r

Re: [R] %d/%m/%Y can not be displayed in a .rd file

2010-01-07 Thread Duncan Murdoch
) Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Duncan Murdoch
On 07/01/2010 2:58 PM, Kevin Wright wrote: On Thu, Jan 7, 2010 at 9:32 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 07/01/2010 10:00 AM, Michal Kulich wrote: On 7.1.2010 15:52, Duncan Murdoch wrote: Not necessarily. The current help system can display information about the current

Re: [R] [Fwd: snowfall on Win7]

2010-01-07 Thread Duncan Murdoch
lines; you'll need to scroll to the right to see anything). Duncan Murdoch I have two processor on my Toshiba... Murph __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-08 Thread Duncan Murdoch
Michal Kulich wrote: On 7.1.2010 20:22, Duncan Murdoch wrote: A more useful example than ls() would be methods(). I think it would be nice to have a list of methods included in the man page for a generic function, and links to their pages if they have their own man pages. You might want

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-08 Thread Duncan Murdoch
Dieter Menne wrote: Duncan Murdoch wrote: What's so hard about leaving an R session running, and using bookmarks as Dieter described? It pollutes my space, and I am a Window-closing maniac, so it won't survive the next attack. http://www.microsoft.com/downloads/en

Re: [R] Is there any function in R like ezplot in matlab?

2010-01-09 Thread Duncan Murdoch
it: xvals - yvals - seq(0, 30, len=1000) zvals - outer(xvals, yvals, f) contour(xvals, yvals, zvals, levels=0) Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Online R documentation

2010-01-09 Thread Duncan Murdoch
graphical output in the man pages is one of the eventual goals of the new help system. I doubt it will make it into 2.11.x, but it will probably be there in 2.12.x. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] Calling FING.EXE under RGui.EXE for windows.

2010-01-09 Thread Duncan Murdoch
$ or writing to CONOUT$ without checking whether they can be opened. When you run it from Rterm, Rterm is in a console, which appears to be good enough. So it may be anyone who wants to use it will have to contact Microsoft to find out how... Duncan Murdoch Uwe On 07.01.2010 12:25, Gabor

Re: [R] Calling FING.EXE under RGui.EXE for windows.

2010-01-09 Thread Duncan Murdoch
guess you could get find.exe to work by calling it from a batch file with a pause at the end and using the wait=FALSE,invisible=FALSE options. The above observations are in Win XP SP3, not anything newer. Duncan Murdoch On Sat, Jan 9, 2010 at 5:24 PM, Duncan Murdoch murd...@stats.uwo.ca wrote

Re: [R] Calling FING.EXE under RGui.EXE for windows.

2010-01-10 Thread Duncan Murdoch
spot the difference between their exec and our system()? Duncan Murdoch On Sat, Jan 9, 2010 at 7:27 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 09/01/2010 6:31 PM, Gabor Grothendieck wrote: That doesn't explain why this returns character(o) even though we have launched a console

Re: [R] Calling FING.EXE under RGui.EXE for windows.

2010-01-10 Thread Duncan Murdoch
(c:/WINDOWS/system32/find \Hello\ c:/temp/foo.txt nul) So perhaps we're not setting up the pipe correctly, but it works with most other programs, so I'm going to assume find is using it incorrectly, unless someone points out what we're doing wrong. Duncan Murdoch On 10/01/2010 8:18 AM, Gabor

Re: [R] Calling FING.EXE under RGui.EXE for windows.

2010-01-10 Thread Duncan Murdoch
it doesn't make sense to add it to the R bug list. Duncan Murdoch On Sun, Jan 10, 2010 at 1:24 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: I'm quitting on this one. For the record, I took a look at a fairly old version of the Tcl code (from 8.4.13) that I had around from an old attempt to get

Re: [R] Help with Order

2010-01-11 Thread Duncan Murdoch
by their numerical value, not by the strings. So the solution is to set stringsAsFactors=FALSE, either in each read.csv call, or globally with options(stringsAsFactors=FALSE). Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] example() leaves console prompting to press Enter for new graphs

2010-01-11 Thread Duncan Murdoch
the graphics window. If you close it, the next window you open will have the state you wanted. If you had had a window open before you called example, it would have been restored. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] R for windows 64 bit

2010-01-11 Thread Duncan Murdoch
compiler. Brian Ripley made a posting last week on the R-devel list about an experimental build using gcc. Duncan Murdoch How should I increase the memory, and more importantly to set a higher max vector size? It still stops me saying Could not allocate vector of size 145

Re: [R] Calling FING.EXE under RGui.EXE for windows.

2010-01-11 Thread Duncan Murdoch
if there is no console, it won't work. But find and xcopy have no business talking to the console. They should simply work with stdin/stdout. Duncan Murdoch Re, John Schexnayder IBM Tape Manufacturing - Information Technology San Jose, CA 95138 jsc...@us.ibm.com From: Gabor Grothendieck

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Duncan Murdoch
identifier. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] How to install an archived version of a package in windows

2010-05-27 Thread Duncan Murdoch
source (see the R Admin manual, or http://www.murdoch-sutherland.com/Rtools/), then simply do install.packages(foo.tar.gz, type=source, repos=NULL) from within R, or Rcmd INSTALL foo.tar.gz from outside. Duncan Murdoch __ R-help@r-project.org

Re: [R] Rprofile: distinguish between Rgui, Rterm, JGR?

2010-05-27 Thread Duncan Murdoch
only there? Look at .Platform$GUI. It shows Rgui or RTerm for those two. I don't have JGR installed, but I'd guess it shows something differently there. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] difference in sort order linux/Windows (R.2.11.0)

2010-05-28 Thread Duncan Murdoch
in the English_Canada.1252 locale and on Linux in the C locale. However, when I use the locale that's default on our system, en_US.UTF-8, I get AB CD ABCD [1] TRUE AB CD ABCD [1] FALSE as Ted did, and that certainly looks wrong. Duncan Murdoch Given: types - c(PC-D-Euro-0, PC-D-Euro-1, PC-D

Re: [R] difference in sort order linux/Windows (R.2.11.0)

2010-05-28 Thread Duncan Murdoch
, then you want to talk to the ICU people. If you do, then you'll need to look deeper to find out what you're actually using. Duncan Murdoch Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094

Re: [R] Gelman 2006 half-Cauchy distribution

2010-05-28 Thread Duncan Murdoch
in the first one. Duncan Murdoch I am interested in replicating this because I want to use half-Cauchy priors and want to play around with the scale values but I want to know what my prior looks like before using it in models. Please cc me as I am digest subscriber. Thanks! Chris

Re: [R] Gelman 2006 half-Cauchy distribution

2010-05-28 Thread Duncan Murdoch
On 28/05/2010 10:14 AM, Christopher David Desjardins wrote: Perfect. Thanks. Also using R 2.11.0 on Fedora I didn't get any warnings with my command. That's a serious problem. Can you give more details (i.e. just plain R, R under ESS, etc.)? Duncan Murdoch Chris On 05/28/2010 09:09

Re: [R] Does Sweave run in the global environment ?

2010-05-28 Thread Duncan Murdoch
as a global. Another approach (which I use) is to never run Sweave() from within R; always use R CMD Sweave (or some equivalent), and define all the local variables in the Sweave file. But this doesn't work if you want to generate lots of Sweave output files. Duncan Murdoch I want to run

Re: [R] ICD9 codes

2010-05-29 Thread Duncan Murdoch
, but it might be worthwhile to send it privately to authors of false positive messages. Duncan Murdoch On 29/05/2010 6:43 AM, (Ted Harding) wrote: It is perhaps time to bring to people's general attention that there is an issue with postings from gmail.com addresses being held for moderation

Re: [R] warning In fun(...) : no DISPLAY variable so Tk is not available

2010-05-29 Thread Duncan Murdoch
for Tcltk to use. If you do have X11 available, then just set the DISPLAY environment variable in the normal way; if you don't, then you're not going to be able to use that package on Unix. (The Windows implementation is self-contained, so it should work there.) Duncan Murdoch library

Re: [R] Vector docs

2010-05-30 Thread Duncan Murdoch
(classes=vector) but it won't show methods in unattached packages. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] error on Windows OS

2010-05-31 Thread Duncan Murdoch
. Duncan Murdoch Thanks a lot Cheers __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible

Re: [R] Building a what list for scan to use

2010-05-31 Thread Duncan Murdoch
(biglist) - paste(name, 1:(2+4*n)) Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

Re: [R] Y-axis range in histograms

2010-05-31 Thread Duncan Murdoch
$mids, h$counts, log=y) # Plot on a log scale abline(v=h$breaks,col=lightgray) # Indicate the bins Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] error on Windows OS

2010-05-31 Thread Duncan Murdoch
INSTALL GWSR_1.0.tar.gz); it is sometimes tricky to see what the state of the system is from R. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Question about the license of an R package

2010-06-01 Thread Duncan Murdoch
. If GPL-3 offers something that GPL-2 doesn't (e.g. compatibility with other GPL-3 code), they can use that. If GPL-3 places restrictions they don't like (e.g. incompatibility with GPL-2 code), they can use GPL-2. Duncan Murdoch Thanks in advance for any help. Mauricio

Re: [R] Seeking help on Vectorize()

2010-06-03 Thread Duncan Murdoch
-- but it warns you that's likely not what you intended. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal

Re: [R] Your message to R-help awaits moderator approval

2010-06-05 Thread Duncan Murdoch
rule is violated? So frustrated, why can't I post question! The problem is that you are posting from gmail.com, and yjmha69 was posting from yahoo.com. The messages will eventually make it through if you are patient. Duncan Murdoch - Original Message From: r-help-boun...@r

Re: [R] Write.fwf works from Mac, throws different number of row error in Windows

2010-06-05 Thread Duncan Murdoch
it.) Duncan Murdoch mazibuko wrote: Hello, I am having a problem with write.fwf in Windows. I wrote a code to ingest a number of text files with weather data in them, process them, and then output a text file with two parts: 1) a set of column names, 2) the processed data table. I wrote and tested

Re: [R] R CMD in 2.11.1 error

2010-06-06 Thread Duncan Murdoch
fix it? I have MinGW, Perl, etc. installed in my system. The problem is in the help file, not in the R code. You need to look somewhere near line 92 of quantplus/man/gzWrite.Rd. Duncan Murdoch I also attached my function gzWrite below. Thank you very much. 00check.out

Re: [R] Package not on CRAN mirrow - what now?

2010-06-10 Thread Duncan Murdoch
list but it doesn't. What am I doing wrong ? You need to install it, it's not generally enough to just unpack it. But that will not work, because the package is marked as Unix-only. You could try to figure out what needs fixing to get it working on Windows, but it's probably not easy. Duncan

Re: [R] Capturing buffered output from Rterm

2010-06-10 Thread Duncan Murdoch
to test.Rout.) Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] R in Linux: problem with special characters

2010-06-11 Thread Duncan Murdoch
the locale command in the Linux server, I get: Yes, it's your locale settings. The C locale doesn't support the รบ character in your string, and displays it in octal. Duncan Murdoch [daniel.fernan...@pt-lnx13 ~]$ locale LANG=pt_PT.UTF-8 LC_CTYPE=C LC_NUMERIC=C LC_TIME=C LC_COLLATE=C

Re: [R] Rgui crashed on Windows XP Home

2010-06-11 Thread Duncan Murdoch
shutting down everything else on your system, etc. Duncan Murdoch Error signature is: AppName: rgui.exeAppVer: 2.111.52157.0 ModName: msvcrt.dll ModVer: 7.0.2600.2180Offset: d2b5 I get a gdb, and then gdb the Rgui.exe, I get the following message: (gdb) run Starting program: D

Re: [R] Html help

2010-06-14 Thread Duncan Murdoch
ago to allow the display of graphics generated by R within help pages. (Unfortunately it depended on a particular browser feature not supported by Internet Explorer, so I'm going to need to put together something less elegant, but that's life.) Duncan Murdoch

Re: [R] Simple 3D Plot Question

2010-06-15 Thread Duncan Murdoch
*x^2*y, NA)} z - outer(xx,yy,zFunc) persp(xx,yy,z,theta=30,phi=30,ticktype=detailed) Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] Package testing

2010-06-15 Thread Duncan Murdoch
that affect your output will not. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

Re: [R] trigonometric regression

2010-06-17 Thread Duncan Murdoch
the model with cf and sf versus one without it. You'll see it in summary(fit) at the bottom of the display. If you want to include other covariates in the model, you can use anova, e.g. anova(lm(y ~ other), lm(y ~ cf + sf + other)) Duncan Murdoch __ R

Re: [R] R licensing query

2010-06-17 Thread Duncan Murdoch
RShowDoc(COPYING) from within R. Duncan Murdoch On the other hand, if you can't figure out what is really going on, and you can loosen up some funds, you can probably get Revolutions R to provider you with commercial support. McAllister, Gina gina.mcallis...@luht.scot.nhs.uk wrote: I have

Re: [R] tempfile problem

2010-06-17 Thread Duncan Murdoch
of the first n tries is going to be slow. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] 12th Root of a Square (Transition) Matrix

2010-06-18 Thread Duncan Murdoch
be nth_root - X %*% L_star %*% X_inv Duncan Murdoch I've written the code below to implement this, but the result doesn't seem to be correct. (I can't raise the resulting matrix to the 12th power to calculate the original matrix.) I believe that the reason for this is the order in which R

Re: [R] Use of .Fortran

2010-06-18 Thread Duncan Murdoch
still be problems...): SSFcoef - function(nmax, nu){ .Fortran(SSFcoef, as.integer(nmax), as.integer(nu), A = numeric((nmax+1)^2), nrowA = as.integer(nmax+1), # These are unused... ncolA = as.integer(nmax+1) )$A } Duncan

Re: [R] Call by reference or suggest workaround

2010-06-19 Thread Duncan Murdoch
, and do your assignments to the outer frame. For example, outer - function(args) { mat - matrix(NA, 3,3) recursive - function() { mat - newvalue # does the assignment into outer's frame if (!stop) recursive() } } Duncan Murdoch __ R-help@r

Re: [R] Popularity of R, SAS, SPSS, Stata...

2010-06-20 Thread Duncan Murdoch
. For example, there's probably a north Atlantic codfishing team named R DEV COD TEAM. But most of them are, and they lead to 289 cited papers in 2009/10. Duncan Murdoch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Popularity of R, SAS, SPSS, Stata...

2010-06-21 Thread Duncan Murdoch
On 21/06/2010 2:49 AM, Peter Dalgaard wrote: Duncan Murdoch wrote: On 20/06/2010 6:36 PM, Muenchen, Robert A (Bob) wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ivan Calandra Sent: Sunday, June 20, 2010

Re: [R] S3 generics need identical signature?

2010-06-21 Thread Duncan Murdoch
/library/tools/R/QC.R), and apparently the first arg doesn't need to be named x in plot.formula, due to some other exception which I can't spot right now. So I would not use the base code for plot() as an example of what you should do. Duncan Murdoch __ R

Re: [R] how to efficiently compute set unique?

2010-06-21 Thread Duncan Murdoch
On 21/06/2010 9:06 PM, G FANG wrote: Hi, I want to get the unique set from a large numeric k by 1 vector, k is in tens of millions when I used the matlab function unique, it takes less than 10 secs but when I tried to use the unique in R with similar CPU and memory, it is not done in minutes

Re: [R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread Duncan Murdoch
, you need to open a connection with that encoding, and write to that. For example: con - file(preindx.csv, open=w, encoding=UTF-8) write.table(dfPREINDX, con, sep=|,row.names=FALSE) close(con) Duncan Murdoch __ R-help@r-project.org mailing list https

Re: [R] Displaying Iteration Count

2010-06-22 Thread Duncan Murdoch
until the end. However, you can change this; in Windows you use the Misc | Buffered output menu item (or Ctrl-W), or make a call to flush.console() as Henrique showed. Duncan Murdoch On Tue, Jun 22, 2010 at 9:07 AM, Downey, Patrick pdow...@urban.org wrote: Hello, I'm running a very long

<    2   3   4   5   6   7   8   9   10   11   >