Re: [R] Type III sum of squares and appropriate contrasts

2007-10-11 Thread Marc Schwartz
to start would be Prof. Venables' Exegeses on Linear Models: www.stats.ox.ac.uk/pub/MASS3/Exegeses.pdf Searching the r-help archives will also yield many discussions. Also, see R FAQ 7.18. HTH, Marc Schwartz __ R-help@r-project.org mailing list

Re: [R] which package does interpSpline belong to ?

2007-10-11 Thread Marc Schwartz
for Windows but could not find it. Thank you in adavance The splines package is part of the standard R installation. So you just need: library(splines) ?interpSpline HTH, Marc Schwartz __ R-help@r-project.org mailing list https

Re: [R] how to get the sample size in lm

2007-10-11 Thread Marc Schwartz
, Marc Schwartz __ 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] Automating binning for chisq.test()

2007-10-12 Thread Marc Schwartz
/DataAnalysisDisc HTH, Marc Schwartz __ 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] how to know whether Vector B is a subset of Vector A

2007-10-12 Thread Marc Schwartz
TRUE TRUE TRUE To get the indices of b's elements in 'a', you can do: which(a %in% b) [1] 2 3 4 5 7 8 9 If you want to know whether or not ALL of the elements of 'b' are in 'a', you add the use of all() to the first example: all(b %in% a) [1] TRUE See ?%in% and ?all HTH, Marc Schwartz

Re: [R] Question re matplot

2007-10-13 Thread Marc Schwartz
On Sat, 2007-10-13 at 22:16 -0500, David Kaplan wrote: Yea, sorry, that was a typo when I copied into my emal. Here it is again matplot(battingagg$X, battingagg[, c(HR,RBI,X2B, BB, R, SB)], type=b,lty=4,lwd=2, col=1:4,xlab = Year, ylab = (1)HRs, (2)RBIs, (3)DOUBLES,(4)BB,(5)Runs,(6) BB,

Re: [R] Bad EMF export

2007-10-15 Thread Marc Schwartz
of the plot are not flushed from the cache to the disk file and you are left with an incomplete plot in the file. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] clipping off words inside a vector of strings

2007-10-15 Thread Marc Schwartz
this: HolyGrail [1] Graham Chapman John CleeseTerry Gilliam Eric Idle [5] Terry JonesMichael Palin gsub(^(.{3}).+ (.{3}).+, \\1 \\2, HolyGrail) [1] Gra Cha Joh Cle Ter Gil Eri Idl Ter Jon Mic Pal See ?gsub and ?regex HTH, Marc Schwartz A reading from the Book of Armaments

Re: [R] Get the last 3 chars of a string

2007-10-16 Thread Marc Schwartz
On Tue, 2007-10-16 at 07:49 -0700, Thomas Lumley wrote: On Mon, 15 Oct 2007, Gabor Grothendieck wrote: Here is an alternative: sub(.*(..)$, \\1, x) For sufficiently small values of 3 ;) all.equal(2., 3) [1] TRUE ;-) Marc __

Re: [R] Import from excel 2007

2007-10-16 Thread Marc Schwartz
, save the file in the older .xls format, which will enable you to use the CRAN packages with functions that support it. It is possible that Prof. Ripley's RODBC package might work, but I don't recall any posts confirming that. HTH, Marc Schwartz __ R

Re: [R] Need some help

2007-10-16 Thread Marc Schwartz
of tosses, but not actually observe it. HTH, Marc Schwartz On Tue, 2007-10-16 at 09:05 -0700, azzza wrote: You are right, I was a bit too vague. I am trying to simulate 1000 coin Tosses. Then to write a code for the number of heads/Tails.naturally, we would expect the proportion of heads

Re: [R] Need some help

2007-10-16 Thread Marc Schwartz
On Tue, 2007-10-16 at 11:53 -0700, azzza wrote: ok, so suppose a coin is tossed 1000 times. Each time head occurs, we win a dollar, otherwise we lose a dollar. Let S(n) be our accumulated winnings after n tosses. For instance, if the sequence HHHTT occurs in the first five tosses, then

Re: [R] Import from excel 2007

2007-10-17 Thread Marc Schwartz
On Wed, 2007-10-17 at 20:53 +0200, kees wrote: For me, it works. That is to say, not the simple way, which gave the error: odbcConnectExcel(C:\\Users\\Kees\\Desktop\\Map1.xlsx) But it does when you ask the correct driver odbcDriverConnect(DRIVER=Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm,

Re: [R] type conversion

2007-10-17 Thread Marc Schwartz
'. So, for your data above: Membersind06$actual06 - as.numeric(gsub([^0-9\\.], , Membersind06$actual06)) See ?gsub and ?regex HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] controlling plot range

2007-10-19 Thread Marc Schwartz
here. HTH, Marc Schwartz On Fri, 2007-10-19 at 10:49 -0700, Bert Gunter wrote: John: I agree: the Docs are not clear on this. VR's MASS (p.84 in the 4th edition) gives an explanation: Positions in the plot region may also be specified in absolute **user coordinates**. Initially user

Re: [R] header

2007-10-19 Thread Marc Schwartz
data type of integer, which is why you get the behavior you observe: typeof(factor(A)) [1] integer However: is.integer(factor(A)) [1] FALSE HTH, Marc Schwartz On Fri, 2007-10-19 at 15:30 +0200, Neuer Arkadasch wrote: Maybe I had to write that the original data what I read are name

Re: [R] ylim in barplot2 function?

2007-10-31 Thread Marc Schwartz
), xpd = FALSE) See ?par That being said, this is a bad idea in general, as you impact the ability to visually discern the relative difference (or lack of it) in the bars. You would be better off using a dotplot. HTH, Marc Schwartz __ R-help@r

Re: [R] duplicate rows in a matrix

2007-11-02 Thread Marc Schwartz
(A)), each = 2), ] [,1][,2] [1,] Kevin 1 [1,] Kevin 1 [2,] Alf 2 [2,] Alf 2 Use row indexing consisting of duplicate index values created by: rep(seq(nrow(A)), each = 2) [1] 1 1 2 2 See ?rep and ?seq HTH, Marc Schwartz __ R-help@r

Re: [R] counting with factors

2007-11-02 Thread Marc Schwartz
of the read.table() family of functions, see the 'as.is', 'colClasses' and 'stringsAsFactors' arguments, which can be set so that character columns are not converted to factors. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] when deleting a row from a matrix gives a vector

2007-11-02 Thread Marc Schwartz
-dimensions_003f HTH, Marc Schwartz __ 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] writing a categorical var. with condition

2007-11-02 Thread Marc Schwartz
that this returns a factor. If you want an actual integer value, you would have to coerce the result. See ?cut for more information. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] hide or minimize graphics

2007-11-02 Thread Marc Schwartz
create a graphic file (eg. PDF, PS, JPG/PNG) which would not be displayed on the screen. If one of those formats would meet your ultimate goal, then see ?Devices for more information. HTH, Marc Schwartz __ R-help@r-project.org mailing list https

Re: [R] R validation

2007-11-06 Thread Marc Schwartz
then have the basis for a 'gap' analysis and can move forward from there. HTH, Marc Schwartz __ 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

Re: [R] Dealing with schema in RODBC

2007-11-07 Thread Marc Schwartz
current UserID schema prefix is 'implied'. However, if you want to access other objects within schema created by other users, you need to explicitly use the schema prefix. You of course also need appropriate access privileges for other schema that you have not created. HTH, Marc Schwartz

Re: [R] adding in missing values in a sequence

2007-11-14 Thread Marc Schwartz
data 1 1 1.5 2 2 4.3 3 3 5.6 4 4 6.7 5 5 NA 6 6 7.1 7 7 12.5 8 8 14.5 9 9 16.8 1010 3.4 See ?merge for more information. HTH, Marc Schwartz __ R-help@r-project.org mailing list https

Re: [R] counting strings of identical values in a matrix

2007-11-15 Thread Marc Schwartz
a typo above and that it should be: xx = [2,1,1,1] ? If so: unlist(lapply(apply(prova, 2, rle), function(x) length(x$lengths[x$values == 1]))) [1] 2 1 1 1 See ?rle to get the basics of identifying runs of values. HTH, Marc Schwartz

Re: [R] Ancova doesn't return test statistics

2007-11-15 Thread Marc Schwartz
A. Stenberg, Umea University, Sweden See ?summary.aov which is referenced in the See Also section of ?aov and is used in the examples therein. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] counting strings of identical values in a matrix

2007-11-15 Thread Marc Schwartz
Thanks Gabor. Nice solution. Marc On Thu, 2007-11-15 at 12:35 -0500, Gabor Grothendieck wrote: We can append a row of 0's to handle that case: with(rle(as.vector(rbind(prova, 0))), table(lengths[values == 1])) On Nov 15, 2007 11:36 AM, Marc Schwartz [EMAIL PROTECTED] wrote: Ah...OK

Re: [R] Romoving elements from a vector. Looking for the opposite of c(), New user

2007-11-15 Thread Marc Schwartz
Jim, The one issue with those is that they remove duplicate elements in each vector before applying their logic. Thus, would not likely work here: x - c(3,3,4,4,4,4,5,5,6,8) z - c(3,4,4,5,5) In effect, you end up with: unique(x) [1] 3 4 5 6 8 unique(z) [1] 3 4 5 Thus: setdiff(x, z) [1]

Re: [R] Multiply each column of array by vector component

2007-11-15 Thread Marc Schwartz
,]45 [6,] 147 [7,] 15 12 [8,]9 17 [9,] 19 18 [10,]1 13 t(t(A) * v) [,1] [,2] [1,] 306 [2,] 404 [3,] 55 40 [4,] 80 20 [5,] 20 10 [6,] 70 14 [7,] 75 24 [8,] 45 34 [9,] 95 36 [10,]5 26 HTH, Marc

Re: [R] counting strings of identical values in a matrix

2007-11-15 Thread Marc Schwartz
On Thu, 2007-11-15 at 17:53 +0100, A M Lavezzi wrote: thank you. I did not think about the case of overlapping of 1's from the end of one column to the start of the next, this would actually be a problem In the simulations I am running each column corresponds to the path followed by an

Re: [R] counting strings of identical values in a matrix

2007-11-15 Thread Marc Schwartz
] I presume a typo above and that it should be: xx = [2,1,1,1] ? If so: unlist(lapply(apply(prova, 2, rle), function(x) length(x$lengths[x$values == 1]))) [1] 2 1 1 1 See ?rle to get the basics of identifying runs of values. HTH, Marc Schwartz

Re: [R] R-help going to become subscriber-only

2008-01-30 Thread Marc Schwartz
and that these decisions are supported. Regards, Marc Schwartz __ 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] R-help going to become subscriber-only

2008-01-31 Thread Marc Schwartz
. With Gmail, you can just use the web interface, or use POP/IMAP clients to get the e-mail on your desktop (or even on your smartphone ;-) HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] ESS 5.3.7

2008-01-31 Thread Marc Schwartz
/mailman/listinfo/ess-help HTH, Marc Schwartz __ 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] how to customize boxplot

2008-01-31 Thread Marc Schwartz
. Use an alternative type of plot, such as a histogram or density plot to present the shape of the distribution. Some examples here: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=102 HTH, Marc Schwartz __ R-help@r-project.org mailing

Re: [R] Log rank test power calculations

2008-01-31 Thread Marc Schwartz
() functions in Frank Harrell's Hmisc package on CRAN. HTH, Marc Schwartz __ 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] Concatenate a Variable

2008-02-01 Thread Marc Schwartz
to cat. Thus: var - factor(a, levels = c(a, b, c)) var [1] a Levels: a b c is.vector(var) [1] FALSE So 'var' is not an atomic vector and you must therefore coerce it to a character vector using as.character() before passing it to cat(): cat(VAR: , as.character(var), \n) VAR: a HTH, Marc

Re: [R] Transfer Crosstable to Word-Document

2008-02-15 Thread Marc Schwartz
platform. Regards, Marc Schwartz [EMAIL PROTECTED] wrote: Thank you Gabor, but with 1. or 2. I donĀ“t get a table, which can be changed and formatted using the WORD table functions (like changing column width and formatting text in rows). The result of 1. ist an bitmap and the result of 2

Re: [R] Summing up diagonals w/o for-loop

2008-02-26 Thread Marc Schwartz
-2 -1 0 1 2 3 4 5 6 5 14 27 44 65 90 115 100 81 58 31 If you want to sum the diagonals the other way replace the '-' in the second argument in split() with a '+'. See ?split, ?sapply, ?row and ?col for more information. HTH, Marc Schwartz

Re: [R] Raw histogram plots

2008-02-26 Thread Marc Schwartz
If the goal is to get a sense of the 'shape' of the overall distribution of 'x', then why not use: plot(density(x)) ? HTH, Marc Schwartz Peter Alspach wrote: Andre If I understand you correctly, you could try a barplot() on the result of table(). HTH .. Peter Alspach

Re: [R] help.start() on linux (fedora 8) when firefox alreading running - a way to open a new tab?

2008-03-03 Thread Marc Schwartz
in FF version 2 and 3 beta on F8. HTH, Marc Schwartz __ 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] question for crosstable

2008-03-09 Thread Marc Schwartz
' is unspecified. HTH, Marc Schwartz __ 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] how to generate bar charts with the standard deviation

2008-03-13 Thread Marc Schwartz
/RGM2/R_current/library/gplots/man/plotmeans.html 3. errbar() in the Hmisc package: http://cged.genes.nig.ac.jp/RGM2/R_current/library/Hmisc/man/errbar.html 4. arrows() and/or segments() in the default R installation, which can be used like errbar() to add CI's to points. HTH, Marc Schwartz

Re: [R] Cannot update packages on F8

2008-03-27 Thread Marc Schwartz
for other applications on RH/FC/F Linux. If you use: yum list R-* you will see the other R related RPMS that are available via the Fedora repos. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] [R-pkgs] WriteXLS - New Version 1.8.1

2009-06-25 Thread Marc Schwartz
in the Excel spreadsheet. The worksheet name will be the name of the data frame it contains or can be specified by the user. Author(s): Marc Schwartz marc_schwa...@me.com Maintainer: Marc Schwartz marc_schwa...@me.com License: GPL (=2) Changes since version 1.8.0: The data frames

Re: [R] Software lifecycle for R releases (aka practical limits of support for older versions)

2009-06-25 Thread Marc Schwartz
the list: http://www.r-project.org/posting-guide.html HTH, Marc Schwartz __ 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 draw a line in plot when I know the start point(x1, y1) and end point(x2, y2)?

2009-06-25 Thread Marc Schwartz
line, at a given vertical or horizontal position, or if given a linear model object, the fitted line. HTH, Marc Schwartz __ 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] How to draw a line in plot when I know the start point(x

2009-06-25 Thread Marc Schwartz
On Jun 25, 2009, at 1:51 PM, Ted Harding wrote: On 25-Jun-09 18:38:37, Marc Schwartz wrote: On Jun 25, 2009, at 1:30 PM, Lesandro wrote: Hello all, How to draw a line in plot when I know the start point(x1,y1) and end point(x2,y2)? I need make this as additional information in the graph

Re: [R] Setting default plot size in Sweave

2009-06-25 Thread Marc Schwartz
On Jun 25, 2009, at 4:47 PM, Frank E Harrell Jr wrote: Dear Colleagues: I have used \SweaveOpts{prefix.string=plot, eps = FALSE, pdf = TRUE} \SweaveOpts{width=5, height=4} fig=T= plot(...) @ But the figure still has a width of 80% of the text width, the default set up by Sweave, which

Re: [R] how to call Perl from R

2009-06-29 Thread Marc Schwartz
script, you can look at the R and Perl code in the WriteXLS package on CRAN. HTH, Marc Schwartz __ 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

Re: [R] R version-2.9.1 for Linux

2009-06-30 Thread Marc Schwartz
/epel/4/i386/repoview/R- core.html There is usually a bit of a delay in the Fedora/EPEL repos releasing a new version of R, but I would expect to see something soon. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] fitting in logistic model

2009-06-30 Thread Marc Schwartz
the case with R, there is more than one way to get the same result. HTH, Marc Schwartz __ 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

Re: [R] fitting in logistic model

2009-06-30 Thread Marc Schwartz
On Jun 30, 2009, at 10:44 AM, Ted Harding wrote: On 30-Jun-09 14:52:20, Marc Schwartz wrote: On Jun 30, 2009, at 4:54 AM, Renzi Fabrizio wrote: I would like to know how R computes the probability of an event in a logistic model (P(y=1)) from the score s, linear combination of x and beta. I

Re: [R] fitting in logistic model

2009-06-30 Thread Marc Schwartz
On Jun 30, 2009, at 12:54 PM, Ted Harding wrote: On 30-Jun-09 17:41:20, Marc Schwartz wrote: On Jun 30, 2009, at 10:44 AM, Ted Harding wrote: On 30-Jun-09 14:52:20, Marc Schwartz wrote: On Jun 30, 2009, at 4:54 AM, Renzi Fabrizio wrote: I would like to know how R computes

Re: [R] fitting in logistic model

2009-06-30 Thread Marc Schwartz
Snippage On Jun 30, 2009, at 2:12 PM, Marc Schwartz wrote: Wellbarring a correction from someone with more low level insight, I would tend to suspect that the difference in our findings may be attributed to some interaction of hardware, OS, compiler and BLAS, perhaps weighted more

Re: [R] Using sapply to build a count matrix

2009-07-01 Thread Marc Schwartz
to 0, using colSums() on the above intermediate step, gives you a column by column count of the NA values in each. as.numeric(TRUE) [1] 1 as.numeric(FALSE) [1] 0 See ?colSums for more information and the sister function rowSums(). HTH, Marc Schwartz

Re: [R] Testing for membership in an array of strings

2009-07-02 Thread Marc Schwartz
Try this: subset(data_frame, name %in% c(sue, jane), select = c(name, age, birthdate)) or if your vector of names is: Names - c(mary, bob, danny, sue, jane) subset(data_frame, name %in% Names, select = c(name, age, birthdate)) See ?%in% for more information. HTH, Marc Schwartz

Re: [R] matching rows in matrices

2009-07-02 Thread Marc Schwartz
that match between the two matrices. Note that I transpose mat1 so that the structure matches that of mat2. Then just use nrow() to get a count: nrow(merge(t(mat1), mat2)) [1] 2 See ?merge for more information. HTH, Marc Schwartz __ R-help@r

Re: [R] table () for more variables

2009-07-04 Thread Marc Schwartz
/pipermail/r-help/2003-February/030400.html and it has been updated to some extent in the package since then. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Testing memory limits in R??

2009-07-06 Thread Marc Schwartz
On Jul 6, 2009, at 8:39 PM, Duncan Murdoch wrote: On 06/07/2009 4:16 PM, Peter Dalgaard wrote: Scott Zentz wrote: Hello Everyone, We have recently purchased a server which has 64GB of memory running a 64bit OS and I have compiled R from source with the following config ./configure

Re: [R] Numbering sequences of non-NAs in a vector

2009-07-07 Thread Marc Schwartz
(x)) Grpsx 11 5.00 33 3.00 55 3.75 HTH, Marc Schwartz __ 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] Import xlsx file in Ubuntu 9.04

2009-07-08 Thread Marc Schwartz
, there are enough problems with it (including data integrity issues), that I would not use it in production work. Unfortunately, I don't believe that you have a lot of options on Linux at the moment. HTH, Marc Schwartz __ R-help@r-project.org

Re: [R] functions to calculate t-stats, etc. for lm.fit objects?

2009-07-08 Thread Marc Schwartz
it to you to see whether this approach may or may not be helpful from a time perspective. HTH, Marc Schwartz __ 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] Two-way ANOVA gives different results using anova(lm()) than doing it by hand

2009-07-08 Thread Marc Schwartz
to my past self, but I have not received it yet). A definite Fortunes candidate. Marc Schwartz __ 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

Re: [R] matching each row

2009-07-08 Thread Marc Schwartz
-matching ID's (Var1). See ?table, ?as.data.frame and ?merge for more information. HTH, Marc Schwartz __ 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] matching each row

2009-07-08 Thread Marc Schwartz
that are in A, but not in B, using 'all.x = TRUE'. Note also that by default, 'unique.id' will be alpha sorted in the output. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Mysteriously vanishing LD_LIBRARY_PATH

2009-07-08 Thread Marc Schwartz
that you are seeing when using RODBC with Oracle. I believe that it was Prof. Ripley who suggested that I use the above approach and did not have any problems after that. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] correct way to subset a vector

2009-07-09 Thread Marc Schwartz
' argument. A lot of folks, even experienced useRs, don't realize that you can do that... :-) HTH, Marc Schwartz __ 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] Compiling R-2.9.1 on Mac OS X 10.4

2009-07-09 Thread Marc Schwartz
of the FAQ. HTH, Marc Schwartz __ 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 get function from lm object?

2009-07-09 Thread Marc Schwartz
(fit) See ?abline for more information there. BTW, much of this is covered in An Introduction to R, which is included in your R installation and on the main R web site under Manuals link. HTH, Marc Schwartz __ R-help@r-project.org mailing list

Re: [R] Strange t-test error: grouping factor must have exactly 2 levels while it does...

2009-07-09 Thread Marc Schwartz
where the two function calls behave differently, please post back with it. HTH, Marc Schwartz __ 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] How to get function from lm object?

2009-07-09 Thread Marc Schwartz
returned within the model object. You can review the structure of the returned model object by using: str(fit) HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] strange strsplit gsub problem 0 is this a bug or a string length limitation?

2009-07-10 Thread Marc Schwartz
[73] A73 A74 A75 A76 A77 A78 A79 A80 A81 [82] A82 A83 A84 A85 A86 A87 A88 A89 A90 [91] A91 A92 A93 A94 A95 A96 A97 A98 A99 [100] A100 A101 A102 A103 A104 A105 A106 A107 A108 [109] A109 A110 A111 A112 A113 HTH, Marc Schwartz __ R

Re: [R] strange strsplit gsub problem 0 is this a bug or a string length limitation?

2009-07-10 Thread Marc Schwartz
(). HTH, Marc Schwartz __ 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 can I download an english version of R ?

2009-07-10 Thread Marc Schwartz
. You may wish to review the relevant section in the R Admin Manual: http://cran.r-project.org/doc/manuals/R-admin.html#Internationalization HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] predict.glm - which class does it predict?

2009-07-10 Thread Marc Schwartz
is generally smart enough to know the difference, but it is better to avoid getting into trouble by not using it. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] ' R ' - General Question (newbie)

2009-07-10 Thread Marc Schwartz
(rather than electronic) medium. I would also add a pointer to Bob Muenchen's book R for SAS and SPSS Users: http://rforsasandspssusers.com/ HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] strata -- really slow performance

2009-07-12 Thread Marc Schwartz
on your actual data. HTH, Marc Schwartz __ 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] How to provide list as an argument for the data.frame()

2009-07-14 Thread Marc Schwartz
5 HTH, Marc Schwartz __ 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] exporting list of installed packages for import on another system?

2009-07-14 Thread Marc Schwartz
= ) CMD - paste(apt-get, CMD) and then use: system(CMD) after using 'sudo R' to get into R. However, I would recommend that you consider posting a query to the r- sig-debian list just to verify all of the above. More info at: https://stat.ethz.ch/mailman/listinfo/r-sig-debian HTH, Marc

Re: [R] exporting list of installed packages for import on another system?

2009-07-14 Thread Marc Schwartz
. - Jan On Tue, 14 Jul 2009 11:49:49 -0400, Marc Schwartz marc_schwa...@me.com wrote: On Jul 14, 2009, at 9:43 AM, Jan Theodore Galkowski wrote: Is it possible to export a list of installed packages from WinXP, and use that export to import the same set of packages on Ubuntu (Jaunty

Re: [R] plotting confidence intervals

2009-07-14 Thread Marc Schwartz
and ?matlines HTH, Marc Schwartz __ 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] loading a file in R in mac OS X

2009-07-16 Thread Marc Schwartz
Intro to OSX book, of which there are many. Check your local bookstore or Amazon. Pogue's books have generally worked well for folks: http://www.amazon.com/Mac-OS-Leopard-Missing-Manual/dp/059652952X http://www.amazon.com/Switching-Mac-Missing-Manual-Leopard/dp/0596514123/ HTH, Marc

Re: [R] loading a file in R in mac OS X

2009-07-16 Thread Marc Schwartz
://www.macfixit.com/staticpages/index.php?page=2003111009264885 HTH, Marc Schwartz __ 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] loading a file in R in mac OS X

2009-07-16 Thread Marc Schwartz
On Jul 16, 2009, at 8:15 AM, Michael Knudsen wrote: On Thu, Jul 16, 2009 at 3:04 PM, Marc Schwartzmarc_schwa...@me.com wrote: Actually, by default, the OSX HFS+ file system is not case sensitive: Sorry. I just took that for granted, as Mac (at least in a terminal) is very similar to

Re: [R] Entire Organization Switching from SAS to R - Any experience?

2009-07-17 Thread Marc Schwartz
own characteristics relative to budgets, politics, people and so forth. The points that I raise above may be typical but only some may apply to your situation and there may be others that I have not raised. HTH, Marc Schwartz __ R-help@r

Re: [R] log error for use on axis

2009-07-17 Thread Marc Schwartz
(base 10), not natural logs (base e). Since the y axis is already log10 transformed internally, you don't need to set the maximum value of the y axis to log10(max(foundOr$s_)). Just use max(foundOr$s_)... HTH, Marc Schwartz __ R-help@r

Re: [R] Automatically assign symbol for statistical significance to x given value of x

2009-07-20 Thread Marc Schwartz
output. See ?options and note 'show.signif.stars', which a lot of folks, myself included, set to FALSE in .Rprofile. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Re gression using age and Duration of disease as a continous factors

2009-07-21 Thread Marc Schwartz
model, even one with what appears to be a reasonable formulation, without some consideration for these issues and many others is not the way to go. The result will not be worth the time you put into it and worst case, can be entirely misleading in any conclusions inferred. HTH, Marc

Re: [R] How to extract the upper xlim and ylim of my plot?

2009-07-21 Thread Marc Schwartz
-variable)...I wish to keep this as general as possible and not point to the original data. Thanks in advance, Mark Mark, par(usr) after the plot has been created will give you the x,y corner extremes of the plot region in user coordinates. See ?par and scroll down to 'usr'. HTH, Marc

Re: [R] is a sequence of dates consecutive, without gaps?

2009-07-21 Thread Marc Schwartz
to a Date class, see ?as.Date. HTH, Marc Schwartz __ 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] kaplan-meier error

2009-07-21 Thread Marc Schwartz
to most R functions that take a formula argument. HTH, Marc Schwartz __ 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] simple question about exporting data...

2009-07-23 Thread Marc Schwartz
On Jul 23, 2009, at 8:59 AM, Greg Snow wrote: Doing the computations in R then the graphs in Excel reminds me of the maxim: Measure with a micrometer Mark with chalk Cut with an ax Definitely a fortunes candidate... Marc Schwartz __ R-help@r

Re: [R] Constructing lists (yet, again)

2009-07-23 Thread Marc Schwartz
to force the result to be a list rather than a matrix. Of course, in the case I have above, when there are uneven length elements, the result will be a list anyway. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Navigate to Index page of a package from R command prompt

2009-07-23 Thread Marc Schwartz
)) HTH, Marc Schwartz __ 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] Calculate weighted mean for each group

2009-07-23 Thread Marc Schwartz
10.0 12.0 See ?split, which is used by tapply(), which in turn is used in aggregate(). HTH, Marc Schwartz __ 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] str(data.frame) after subsetting reflects original structure, not subsetted structure?

2009-07-24 Thread Marc Schwartz
-manip:drop_unused_levels HTH, Marc Schwartz __ 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] String manipulations

2009-07-24 Thread Marc Schwartz
, Marc Schwartz __ 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] Retrieving original data frame after repetition

2009-07-30 Thread Marc Schwartz
Encoding lengths: int [1:4] 1 2 3 4 values : num [1:4] 1 2 3 1 which is a list of two elements, that we coerce to a data frame using do.call(), reversing the two columns to match your original order. HTH, Marc Schwartz __ R-help@r-project.org mailing list

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