Re: [R] generalized hypergeometric function

2006-04-16 Thread Marc Schwartz
On Sun, 2006-04-16 at 17:54 +, Ben Bolker wrote: Marc Schwartz MSchwartz at mn.rr.com writes: On Sat, 2006-04-15 at 20:59 -0300, Bernardo Rangel tura wrote: Hi R-masters I need compute generalized hypergeometric function. I look in R-project and R-help list and not find

Re: [R] creating empty cells with table()

2006-04-19 Thread Marc Schwartz
the desired factor levels table(factor(x, levels = 0:12)) 0 1 2 3 4 5 6 7 8 9 10 11 12 0 0 4 2 5 6 1 0 2 0 0 0 0 For the barplot: barplot(table(factor(x, levels = 0:12))) HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list

Re: [R] prop.table on three-way table?

2006-04-20 Thread Marc Schwartz
dim2_no5 NaN NaN NaN NaN NaN Note that for rows where the total is 0, you end up with NaN (Not a Number), as opposed to 0. Does that get you want you want? HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https

Re: [R] x-axis tick mark labels running vertically

2004-05-07 Thread Marc Schwartz
, names.arg = c(one, two, three, four), las = 2) You can also use the axis() function separately: barplot2(1:4) axis(1, labels = c(one, two, three, four), las = 2) Setting par(las = 2) rotates the axis labels so that they are perpendicular to the axis. See ?par for more information. HTH, Marc

Re: [R] log Y scales for parplot

2004-05-14 Thread Marc Schwartz
for example than for 50 to 100, and so on? Thanks in advance for any help, Monica Monica, See the barplot2() function in the 'gregmisc' package on CRAN, which supports the use of log axis scaling. For example: barplot2(c(5000, 50, 75, 100), log = y) HTH, Marc Schwartz

Re: [R] UseR 2004 Proceeding

2004-05-25 Thread Marc Schwartz
) directly, if there is a particular paper you are interested in. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Opening help pages in new tab of existing Mozilla Firebird

2004-05-26 Thread Marc Schwartz
()$browser to use the script file. Note also that the recent version of the Mozilla standalone browser is called Firefox, in recognition of the existence of the Firebird (formerly Interbase) SQL database project. HTH, Marc Schwartz __ [EMAIL PROTECTED

Re: [R] gauss.hermite?

2004-05-27 Thread Marc Schwartz
and rmutil.zip below the middle of the page. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] How to Describe R to Finance People

2004-06-04 Thread Marc Schwartz
clients benefit from it. ..and I sleep just fine (when I do sleep)... :-) Regards, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] Plot documentation; Axis documentation

2004-06-04 Thread Marc Schwartz
is the ability to do just that when you need to. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] How to Describe R to Finance People

2004-06-04 Thread Marc Schwartz
On Fri, 2004-06-04 at 12:47, Tamas Papp wrote: On Fri, Jun 04, 2004 at 11:06:59AM -0500, Marc Schwartz wrote: I agree that quality and value are important, but I think that the issue of cost should not be discounted out of hand. Value (for both company and client) is directly tied to cost

Re: [R] How to Describe R to Finance People

2004-06-04 Thread Marc Schwartz
On Fri, 2004-06-04 at 14:26, Paul Gilbert wrote: Marc Schwartz wrote: snip I agree that quality and value are important, but I think that the issue of cost should not be discounted out of hand. Value (for both company and client) is directly tied to cost. [snip ...] Marc I

Re: [R] error during make of R-patched on Fedora core 2

2004-06-07 Thread Marc Schwartz
-patched ./R-patched/tools/rsync-recommended cd R-patched ./configure make I actually have the above in a script file that I can just run quickly, when I want to update the code. I am now running FC2, so if you have any problems, drop me a line. Best regards, Marc Schwartz

Re: [R] error during make of R-patched on Fedora core 2

2004-06-07 Thread Marc Schwartz
On Mon, 2004-06-07 at 15:51, Gavin Simpson wrote: snip Thanks Roger and Marc, for suggesting I use ./tools/rsync-recommended from within the R-patched directory. This seems to have done the trick as make completed without errors this time round. The Recommended directory also contained

Re: [R] error during make of R-patched on Fedora core 2

2004-06-08 Thread Marc Schwartz
On Tue, 2004-06-08 at 06:23, Prof Brian Ripley wrote: On Tue, 8 Jun 2004, Gavin Simpson wrote: Marc Schwartz wrote: On Mon, 2004-06-07 at 15:51, Gavin Simpson wrote: snip snip Perhaps I am being dense, but in reviewing the two documents (R Admin and the CRAN sources

Re: [R] error during make of R-patched on Fedora core 2

2004-06-08 Thread Marc Schwartz
On Tue, 2004-06-08 at 12:40, Peter Dalgaard wrote: Marc Schwartz [EMAIL PROTECTED] writes: wget -r -l1 --no-parent -A*.gz -nd -P src/library/Recommended http://www.cran.mirrors.pair.com/src/contrib/1.9.1/Recommended The above _should_ be one one line, but of course will wrap here

Re: [R] fighting with ps.options and xlim/ylim

2004-06-08 Thread Marc Schwartz
On Tue, 2004-06-08 at 20:18, ivo welch wrote: thank you, marc. I will play around with these parameters tomorrow at my real computer. yes, the idea is to just create an .eps and .pdf file, which is then \includegraphics[0.25\textwidth]{} in pdflatex. I need to tweak with the parameter

Re: [R] fighting with ps.options and xlim/ylim

2004-06-08 Thread Marc Schwartz
On Tue, 2004-06-08 at 21:02, Duncan Murdoch wrote: On Tue, 08 Jun 2004 21:18:34 -0400, ivo welch [EMAIL PROTECTED] wrote: And once I do this, I need different R parameter defaults on the axes. With the advice I have gotten, I think I am all set now. However, I am a little bit surprised

Re: [R] Re: fighting with ps.options and xlim/ylim

2004-06-09 Thread Marc Schwartz
On Wed, 2004-06-09 at 09:30, Uwe Ligges wrote: ivo welch wrote: Thanks again for all the messages. Is the 4% in par('usr') hardcoded? if so, may I suggest making this a user-changeable parameter for x and y axis? See ?par and its argumets xaxp, yaxp which can be set to i.

Re: [R] displaying a table in full vs. typing variable name

2004-06-10 Thread Marc Schwartz
On Thu, 2004-06-10 at 11:26, Uwe Ligges wrote: Rishi Ganti wrote: I have a data frame called totaldata that is 10,000 rows by about 9 columns. If about 9 equals 2, the behaviour reported below is expected. That is, of course, for sufficiently large values of about... ;-) Marc

Re: [R] import SYSTAT .syd file?

2004-06-16 Thread Marc Schwartz
://www.stattransfer.com/html/formats.html They do support Windows, MacOS and Unix/Linux. Demo downloads are available from: http://www.stattransfer.com/html/download.html Unix/Linux pricing is available at: http://www.stattransfer.com/html/prices_-_unix.html. HTH, Marc Schwartz

Re: [R] R help in Firefox on Windows XP

2004-06-17 Thread Marc Schwartz
search applet is being found and properly enabled, which is typically the primary source of problems. Check the above and let us know. Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Grouped AND stacked bar charts possible in R?

2004-06-22 Thread Marc Schwartz
of Sex and Age. Within each panel will be two groups of bars, one each for the Survived Yes/No status. Within each group will be one bar for each Class. That is one quick way of grouping things, but you can alter that and other plot attributes easily. HTH, Marc Schwartz

Re: [R] Covered Labels

2004-06-23 Thread Marc Schwartz
information. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] direction of axes of plot

2004-06-27 Thread Marc Schwartz
tick mark labels in reverse order axis(1, at = pretty(-x), labels = rev(pretty(x))) axis(2, at = pretty(-y), labels = rev(pretty(y))) HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] priceIts problem

2004-07-01 Thread Marc Schwartz
with a quick check. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] priceIts problem

2004-07-01 Thread Marc Schwartz
On Thu, 2004-07-01 at 19:26, Marc Schwartz wrote: On Thu, 2004-07-01 at 19:02, Erin Hodgess wrote: Dear R People: In library(its), there is a command priceIts. There is a problem with this command. It is returning an error message: ibm1 - priceIts(instrument=ibm,start=1998-01

Re: [R] Vertical text in plot

2004-07-02 Thread Marc Schwartz
. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] plotting many line segments in different colors

2004-07-02 Thread Marc Schwartz
with a single segment, but this is really quite slow for my purposes, as I have several thousand lines total to plot. Take a look at ?matplot or ?matlines depending upon which one might make sense for your particular application. Both functions are on the same help page. HTH, Marc Schwartz

Re: [R] counting the occurrences of vectors

2004-07-03 Thread Marc Schwartz
? HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Outliers

2004-07-04 Thread Marc Schwartz
, relative to grammar and punctuation, suggests that the HTML page was converted from another format, perhaps Word or PDF. Some things do not quite make sense, but you can get the basic idea. Note also the use of the word 'limitation' above rather than 'prohibited'. HTH, Marc Schwartz

Re: [R] density(x)

2004-07-05 Thread Marc Schwartz
character during your import. See ?read.table for the family of related functions and the default argument values for 'sep', which is the delimiting character. You should also check your source data file, since it may be problematic. HTH, Marc Schwartz

Re: [R] Function for skewness

2004-07-05 Thread Marc Schwartz
On Mon, 2004-07-05 at 09:49, Ernesto Jardim wrote: Hi, Is there a function to estimate the skewness of a distribution ? Thanks EJ See skewness() in CRAN package 'e1071'. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https

Re: [R] density(x)

2004-07-05 Thread Marc Schwartz
the nature of truehist(), so that helps to clear up that mystery :-) HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] counting the occurrences of vectors

2004-07-05 Thread Marc Schwartz
) 0102 I'd be curious to get any feedback on this and if someone has any thoughts on any gotchas with this approach. Thanks and I hope that this is of some help. Marc Schwartz __ [EMAIL PROTECTED

Re: [R] counting the occurrences of vectors

2004-07-06 Thread Marc Schwartz
On Mon, 2004-07-05 at 23:22, Gabor Grothendieck wrote: Marc Schwartz MSchwartz at MedAnalytics.com writes: the likely overhead involved in paste()ing together the rows to create objects I thought I would check this and it seems that in my original f1 function its not really

Re: [R] Improving effeciency - better table()?

2004-07-06 Thread Marc Schwartz
reviewing the following posts by Frank Harrell on this subject: http://maths.newcastle.edu.au/~rking/R/help/02b/4210.html http://maths.newcastle.edu.au/~rking/R/help/02b/3111.html HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https

Re: [R] Converting S-Plus Libraries to R

2004-07-06 Thread Marc Schwartz
. Ripley has already done the work for you in the 'mix' package on CRAN: http://cran.us.r-project.org/src/contrib/Descriptions/mix.html HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Creating Binary Outcomes from a continuous variable

2004-07-07 Thread Marc Schwartz
-0.6788456 1.9979801 -0.4026760 0.1781791 -1.1540434 [7] -1.0842728 1.6042602 -0.7950492 -0.1194323 0.4450296 1.9269333 [13] -0.4456181 -0.8374677 -1.1898772 1.7353067 1.8619422 -0.1679996 [19] -0.2656138 -1.5529884 b [1] 0 0 1 0 1 0 0 1 0 0 1 1 0 0 0 1 1 0 0 0 HTH, Marc Schwartz

Re: [R] fast NA elimination ?

2004-07-07 Thread Marc Schwartz
of doing NA elimination most efficiently? sincerely, /iaw --- ivo welch professor of finance and economics brown / nber / yale Take a look at ?complete.cases HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

Re: [R] Importing an Excel file

2004-07-07 Thread Marc Schwartz
option is to use the read.xls() function in the 'gregmisc' package on CRAN or install OpenOffice. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

Re: [R] Importing an Excel file

2004-07-07 Thread Marc Schwartz
On Wed, 2004-07-07 at 13:44, Marc Schwartz wrote: On Wed, 2004-07-07 at 13:21, Park, Kyong H Mr. RDECOM wrote: Hello, R users, I am a very beginner of R and tried read.csv to import an excel file after saving an excel file as csv. But it added alternating rows of fictitious NA values

Re: [R] text editor for R

2004-07-07 Thread Marc Schwartz
for Windows The above two tools provide for a wide variety of functionality beyond syntax highlighting. There is a syntax highlighting file listed at the above site for jEdit. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

Re: [R] Simple 'frequency' function?

2004-07-09 Thread Marc Schwartz
in a histogram type of plot using vertical lines. If you want a scatterplot type of graphic, use: plot(table(x), log = y, ylim = range(table(x)), type = p) HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] where does R search when source()?

2004-07-10 Thread Marc Schwartz
above. If the filename only is used, it needs to be in the current working directory or you get the error that Spencer experienced. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] help with paste

2004-07-12 Thread Marc Schwartz
, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] proportions confidence intervals

2004-07-12 Thread Marc Schwartz
HTH, Marc Schwartz On Mon, 2004-07-12 at 13:19, Chuck Cleland wrote: Darren also might consider binconf() in library(Hmisc). library(Hmisc) binconf(1, 10, method=all) PointEstLower Upper Exact 0.1 0.002528579 0.4450161 Wilson 0.1

Re: [R] paired t-test with bootstrap

2004-07-13 Thread Marc Schwartz
recommendations. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Permutations

2004-07-13 Thread Marc Schwartz
8 91 2 34 5 610 11 12 [21,] 7 8 910 11 12 1 2 34 5 6 [22,] 7 8 910 11 12 4 5 61 2 3 [23,] 7 8 94 5 61 2 310 11 12 [24,] 7 8 94 5 610 11 12 1 2 3 HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing

Re: [R] Permutations

2004-07-13 Thread Marc Schwartz
On Tue, 2004-07-13 at 14:29, Marc Schwartz wrote: On Tue, 2004-07-13 at 14:07, Jordi Altirriba Gutirrez wrote: Dear R users, Im a beginner user of R and Ive a problem with permutations that I dont know how to solve. Ive 12 elements in blocks of 3 elements and I want only to make

Re: [R] Permutations

2004-07-13 Thread Marc Schwartz
On Tue, 2004-07-13 at 15:02, Rolf Turner wrote: Marc Schwartz wrote (in response to a question from Jordi Altirriba): snip This does not solve the problem that was posed. It only permutes the blocks, and does not allow for swapping between blocks. For instance it does produce

Re: [R] Permutations

2004-07-14 Thread Marc Schwartz
in the function that can be brought to bear, but it is a start. In either case, the restricted permutations appear to be around 94%, if all of the assumptions are correct. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

Re: [R] MASS package?

2004-07-14 Thread Marc Schwartz
there, unless you have a corrupted/incomplete installation. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Evaluating the Yield of Medical Tests

2004-07-19 Thread Marc Schwartz
will reply (RSN) with the acceptance or rejection of my guess, however... ;-) HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] --max-vsize and --max-nsize linux?

2004-07-20 Thread Marc Schwartz
use of loops. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Precision in R

2004-07-20 Thread Marc Schwartz
particular machine is the use of .Machine, which will provide you with a list of specifications. See ?.Machine for additional information here. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Error: subscript out of bounds

2004-07-20 Thread Marc Schwartz
, probably as a result of the multiple authors involved. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] dumpClass, hasSlot in R?

2004-07-21 Thread Marc Schwartz
, June 2003 http://cran.r-project.org/doc/Rnews/Rnews_2003-1.pdf and S4 Classes and Methods by Fritz Leisch useR! 2004 Keynote Lecture Slides available at: http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Leisch.pdf HTH, Marc Schwartz

Re: [R] viewing Postscript file

2004-07-22 Thread Marc Schwartz
) HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] retrieve rows from frame assuming criterion

2004-07-23 Thread Marc Schwartz
of MyData$PUNTAR is in c(IX49, IX48). If you need to engage in more complex boolean comparisons for subsetting, especially on multiple columns, then the function subset() would be better suited. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https

Re: [R] merge, cbind, or....?

2004-07-23 Thread Marc Schwartz
than the number of rows in 'x'. In this case, y$value is repeated twice. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] installing problems repeated.tgz linux

2004-07-26 Thread Marc Schwartz
. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] installing problems repeated.tgz linux

2004-07-26 Thread Marc Schwartz
I echo Andy's experience on FC2. I was able to install the package here and got the same warning messages. Despite trying to use some web sites to translate the german text, I am unsure of the 'true' meaning. I think it is something pertaining to target patterns not being found, which leads me to

Re: [R] ghyper package

2004-07-27 Thread Marc Schwartz
: http://cran.us.r-project.org/src/contrib/Descriptions/SuppDists.html So use: install.packages(SuppDists) library(SuppDists) ?ghyper HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] RE: [S] tree function in R language

2004-07-28 Thread Marc Schwartz
at the moment? BTW, you should upgrade to R 1.9.1, as you are two versions behind at this point. HTH, Marc Schwartz On Wed, 2004-07-28 at 23:08, Liaw, Andy wrote: 1. Could it be that your computer is behind a firewall? If so, try reading the R for Windows FAQ. 2. Please ask R-related question on R

Re: [R] Editing Strings in R

2004-07-29 Thread Marc Schwartz
with an approach that is more efficient I suspect. For 1,200 rows: system.time(apply((matrix(rep(MyData, 400))), 1, NewRow)) [1] 0.29 0.00 0.33 0.00 0.00 (Gabor? ;-) HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

Re: [R] Editing Strings in R

2004-07-29 Thread Marc Schwartz
, ([\\(\\) ], ncol = 3, byrow = TRUE) + 1 paste((, TempMat[, 2], , TempMat[, 3], ), sep = , collapse = ) } Note that with multi digit numbers, it gives a correct result: NewRow((10 99)(101 4)(7 9)(5 9)(1 5)) [1] (11 100)(102 5)(8 10)(6 10)(2 6) HTH, Marc Schwartz

Re: [R] Transparent backgrounds in png files

2004-07-29 Thread Marc Schwartz
, it is not a viable option. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] How to put multiple plots in the same window? (not par(mfrow=))

2004-07-30 Thread Marc Schwartz
) box(which = figure) plot(1:5) box(which = figure) In this case, you now would need to play around with the axis tick marks, labels, etc. Can you clarify which space you are referring to? Marc Schwartz __ [EMAIL PROTECTED] mailing list https

Re: [R] Transparent backgrounds in png files

2004-07-30 Thread Marc Schwartz
://www.scansoft.com/pdfconverter/demo/. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] pairwise difference operator

2004-07-30 Thread Marc Schwartz
-12-15 -6 -3 6 9 HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] pairwise difference operator

2004-07-31 Thread Marc Schwartz
On Fri, 2004-07-30 at 20:28, Marc Schwartz wrote: On Fri, 2004-07-30 at 18:30, Adaikalavan Ramasamy wrote: There was a BioConductor thread today where the poster wanted to find pairwise difference between columns of a matrix. I suggested the slow solution below, hoping that someone might

Re: [R] Is k equivalent to k:k ?

2004-08-02 Thread Marc Schwartz
)) [1] TRUE So to the question in your subject, no k (a double by default) is not the same as k:k (a integer by default). HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Is k equivalent to k:k ?

2004-08-02 Thread Marc Schwartz
On Mon, 2004-08-02 at 10:09, Marc Schwartz wrote: snip Thus, in the case of: identical(4, 4:4) the first 4 is of type double, while the 4:4 is of type single. Thus the result is FALSE. snip Correction. The above sentence should read: the first 4 is of type double, while the 4:4

Re: [R] R packages install problems linux - X not found (WhiteBox EL 3)

2004-08-08 Thread Marc Schwartz
some issues related to the same devel libraries, including the XFree86-Mesa-libGL (or xorg-x11-Mesa-libGL) and XFree86-Mesa-libGLU (or xorg-x11-Mesa-libGLU) RPMS. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

Re: [R] R packages install problems linux - X not found (WhiteBox EL 3)

2004-08-08 Thread Marc Schwartz
On Sun, 2004-08-08 at 12:53, Marc Schwartz wrote: In the case of the RGL package, you might want to review this recent thread: https://www.stat.math.ethz.ch/pipermail/r-help/2004-August/thread.html Correction on the above URL. I pasted the wrong one here. It should be: https

Re: [R] manipulating strings

2004-08-08 Thread Marc Schwartz
and the Time and Obs elements are also separated by a in each. See ?strsplit for more information. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

RE: [R] R packages install problems linux - X not found (WhiteBoxEL 3)

2004-08-08 Thread Marc Schwartz
On Sun, 2004-08-08 at 14:10, Dr Mike Waters wrote: snip Thanks for the responses guys. I used to have RH9 installed on this machine and I found out about the separate developer packages then. I thought that I had got the relevant XFree devel package installed, but although it showed up in

RE: [R] R packages install problems linux - X not found (WhiteBoxEL 3)

2004-08-09 Thread Marc Schwartz
On Mon, 2004-08-09 at 08:13, Dr Mike Waters wrote: snip Marc, Sorry for the confusion yesterday - in my defence, it was very hot and humid here in Hampshire (31 Celsius at 15:00hrs and still 25 at 20:00hrs). What had happened was that I had done a clean install of WB Linux, including

RE: [R] R packages install problems linux - X not found (WhiteBoxEL 3)

2004-08-10 Thread Marc Schwartz
On Tue, 2004-08-10 at 08:15, Dr Mike Waters wrote: snip From unpacking the tarball and running ./configure in the R source directory, I obtain the fact that crti.o is needed by ld.so and was not found. This file is not present on the system. This file, along with crtn.o is usually installed

Re: [R] barplot and names.arg

2004-08-13 Thread Marc Schwartz
adjust the 'line = 0' argument to move the labels closer to and farther away from the axis. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

Re: [R] Question from Newbie on PostScript and Multiple Plots

2004-08-13 Thread Marc Schwartz
, horizontal = FALSE) par(mfrow = c(2, 2)) plot(1:5) barplot(1:5) boxplot(rnorm(10)) dev.off() # Do 3 x 1 postscript(file = ThreePlots.ps, horizontal = FALSE) par(mfrow = c(3, 1)) plot(1:5) barplot(1:5) boxplot(rnorm(10)) dev.off() Can you provide an example of the code that you are using? Marc

RE: [R] numerical accuracy, dumb question

2004-08-13 Thread Marc Schwartz
mathematical operations are to be performed with the ID's then leaving them as doubles makes most sense. Dan, more information on the numerical characteristics of your system can be found by using: .Machine See ?.Machine and ?object.size for more information. HTH, Marc Schwartz On Fri, 2004-08-13

RE: [R] numerical accuracy, dumb question

2004-08-14 Thread Marc Schwartz
On Sat, 2004-08-14 at 08:42, Tony Plate wrote: At Friday 08:41 PM 8/13/2004, Marc Schwartz wrote: Part of that decision may depend upon how big the dataset is and what is intended to be done with the ID's: object.size(1011001001001) [1] 36 object.size(1011001001001) [1] 52

RE: [R] numerical accuracy, dumb question

2004-08-14 Thread Marc Schwartz
On Sat, 2004-08-14 at 12:01, Marc Schwartz wrote: There also appears to be some memory allocation adjustment at play here. Note: object.size(factor(1)) [1] 244 object.size(factor(1, a)) [1] 236 Arggh. Negate that last comment. I had a typo in the second

RE: [R] numerical accuracy, dumb question

2004-08-14 Thread Marc Schwartz
On Sat, 2004-08-14 at 13:19, Prof Brian Ripley wrote: On Sat, 14 Aug 2004, Marc Schwartz wrote: object.size(a) [1] 44 object.size(letters) [1] 340 In the second case, as Tony has noted, the size of letters (a character vector) is not 26 * 44. Of course not. Both

RE: [R] Stacking Vectors/Dataframes

2004-08-16 Thread Marc Schwartz
not have the requisite permissions), see R FAQ 5.2 regarding installing packages to alternate locations. HTH, Marc Schwartz On Mon, 2004-08-16 at 08:33, Laura Quinn wrote: As our IT man is currently on holiday I am not able to upgrade to version 1.9.0(or 1.9.1) at the moment, and I see

Re: [R] Bug in colnames of data.frames?

2004-08-17 Thread Marc Schwartz
sections of ?.data.frame HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Bug in colnames of data.frames?

2004-08-17 Thread Marc Schwartz
On Tue, 2004-08-17 at 09:34, Marc Schwartz wrote: Take a look at the details, value and coercion sections of ?.data.frame This must be my week for typos. That should be: ?[.data.frame (in ESS) or ?[.data.frame (otherwise) Marc __ [EMAIL

Re: [R] levels of factor

2004-08-17 Thread Marc Schwartz
subset(), the evaluation takes place within the data frame, so you do not need to use df$column2 in the function call. You can just use column2, for example: subset(df, column2 %in% c(factor1, factor2)) See ?factor and ?[.factor for more information. HTH, Marc Schwartz

Re: [R] all.equal and names?

2004-08-18 Thread Marc Schwartz
It is in the Description now (at least for 1.9.1 patched): all.equal(x,y) is a utility to compare R objects x and y testing near equality. If they are different, comparison is still made to some extent, and a report of the differences is returned. Don't use all.equal directly in if

Re: [R] header line generated write.table

2004-08-18 Thread Marc Schwartz
to spreadsheets. Also, the first example on that page gives you: ## To write a CSV file for input to Excel one might use write.table(x, file = foo.csv, sep = ,, col.names = NA) Thus: write.table(x, col.names = NA, sep = ,) ,Col1,Col2,Col3 Row1,1,1,1 Row2,2,2,2 HTH, Marc Schwartz

Re: [R] Is R good for not-professional-statistician, un-mathematical clinical researchers?

2004-08-19 Thread Marc Schwartz
an academic medical environment or via contracted services. The above is based upon my own experience, which is largely in sub-specialty clinical areas. Others may and perhaps will differ, based upon their own bias. HTH, Marc Schwartz __ [EMAIL

RE: [R] paired t-test vs pairwise t-test

2004-08-19 Thread Marc Schwartz
On Thu, 2004-08-19 at 14:42, Liaw, Andy wrote: From: Duncan Murdoch On Thu, 19 Aug 2004 13:42:21 -0300 (ADT), Rolf Turner [EMAIL PROTECTED] wrote : You wrote: What's the difference between t.test(x, y) and pairwise.t.test()? Is it just that the former takes two

Re: [R] How generate A01, A02, ..., A99?

2004-08-20 Thread Marc Schwartz
. -MY [[alternative HTML version deleted]] How about? sapply(1:99, function(i) sprintf(A%02d, i)) or just sapply(1:99,sprintf,fmt=A%02d) or yet another variation: paste(A, formatC(1:99, width = 2, format = d, flag = 0), sep = ) HTH, Marc Schwartz

Re: [R] where is internal function of sample()?

2005-04-11 Thread Marc Schwartz
function is called do_sample and begins at line 391 (for 2.0.1 patched) in the aforementioned C source file. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

Re: [R] removing characters from a string

2005-04-12 Thread Marc Schwartz
:9 with a , therefore leaving only the digits. See ?gsub for more information. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] Cumulative Points and Confidence Interval Manipulation in barplot2

2005-04-12 Thread Marc Schwartz
as follows: points(cumsum(meantheta1), pch = 19) lines(cumsum(meantheta1), lty = solid) See ?cumsum, ?points and ?lines for more information. BTW, some strategically placed spaces would help make your code a bit more readable for folks. HTH, Marc Schwartz

Re: [R] R in Windows

2005-04-13 Thread Marc Schwartz
in tcl/tk, which makes it cross-platform compatible if that is an issue for you. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

RE: [R] terminate R program when trying to access out-of-bounds arrayelement?

2005-04-13 Thread Marc Schwartz
On Wed, 2005-04-13 at 15:03 -0700, Berton Gunter wrote: WHOA! Do not redefine R functions (especially [ !) in this way! That's what R classes and methods (either S3 or S4) are for. Same applies to print methods. See the appropriate sections of the R language definition and the book S

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