Re: [R] help

2011-02-08 Thread Marc Schwartz
have access rights to do so. 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] recode according to specific sequence of characters within a string variable

2011-02-04 Thread Marc Schwartz
person year team 1 jeff 2001x 2 jeff 2002y 3 robert 2002z 4 mary 2002z 5 mary 2003y 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] Rexcel for mac

2011-02-04 Thread Marc Schwartz
through Office 2008 based files. I am not sure about Office 2011 however, if you have the latest version of Office for OSX. Also, as an FYI, there are two relevant R SIG lists: https://stat.ethz.ch/mailman/listinfo/r-sig-mac and https://stat.ethz.ch/mailman/listinfo/r-sig-db HTH, Marc Schwartz

Re: [R] recode according to specific sequence of characters within a string variable

2011-02-04 Thread Marc Schwartz
Kazakiewicz wrote: Dear R people Could you please help I have similar but opposite question How to reshape data from DF.new to DF from example, Mark kindly provided? Thank you Denis On Пят, 2011-02-04 at 07:09 -0600, Marc Schwartz wrote: On Feb 4, 2011, at 6:32 AM, D. Alain wrote

Re: [R] Extracting a (*specific*) variable name from a list of function arguments (not ...)

2011-01-30 Thread Marc Schwartz
) NULL In your plot example above, you are first dispatching plot.default(), which of course has no 'data' argument. In the second case, you are dispatching plot.formula() which does have a 'data' argument, as do most, if not all, R functions that take a formula as an argument. HTH, Marc

Re: [R] how to divide each element of a matrix by a specific value per column

2011-01-27 Thread Marc Schwartz
5.33 5.50 5.6 [5,]5 5.5 5.67 5.75 5.8 [6,]6 6.0 6.00 6.00 6.0 You essentially transpose the 'y' matrix so that the normal vector cycling of 'x' is applied properly, then transpose the result back to the original orientation. HTH, Marc Schwartz

Re: [R] how to get old packages to work on R 2.12.1

2011-01-19 Thread Marc Schwartz
That being said, in general, it is best to cleanly install both a new version of R and the associated contributed packages that you require. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] What are the necessary Oracle software to install and run ROracle ?

2011-01-06 Thread Marc Schwartz
of the installation process. The INSTALL file mentions that ROracle was last tested with R 2.3.0, which was released back in 2006. 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] What are the necessary Oracle software to install and run ROracle ?

2011-01-05 Thread Marc Schwartz
subscribing and posting to r-sig-db or contacting the package author directly. More info on the list is here: https://stat.ethz.ch/mailman/listinfo/r-sig-db HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Advice on obscuring unique IDs in R

2011-01-05 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] Analysing Character Strings for subsequent frequency analysis

2010-12-30 Thread Marc Schwartz
(Vec, ), table) [[1]] a b e f h l n o r T w x y z 3 1 1 1 1 1 1 1 2 1 1 1 1 1 1 [[2]] c d e f h j m n o p r t u v 3 1 1 5 1 1 1 1 1 1 1 1 1 1 1 # Get the first 4 letters in each # See ?substr substr(Vec, 1, 4) [1] The jump HTH, Marc Schwartz

Re: [R] Problem applying McNemar's - Different values in SPSS and R

2010-12-29 Thread Marc Schwartz
On Dec 28, 2010, at 4:13 PM, Johannes Huesing wrote: Marc Schwartz marc_schwa...@me.com [Tue, Dec 28, 2010 at 07:14:49PM CET]: [...] An old question of mine: Is there any reason not to use binom.test() other than historical reasons? (I meant in lieu of the McNemar approximation, sorry

Re: [R] Problem applying McNemar's - Different values in SPSS and R

2010-12-29 Thread Marc Schwartz
On Dec 29, 2010, at 6:48 AM, Manoj Aravind wrote: Thank you Marc :) It Certainly helped me to get the exact value of P. How to understand when to apply mcnemar.exact or just mcnemar.test? I'm a beginner to biostatistics. Manoj Aravind Generally speaking, exact tests are used for

Re: [R] icon for an R package

2010-12-29 Thread Marc Schwartz
other files that have the same extensions and therefore have a unique icon displayed in the respective file manager application. Regards, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] icon for an R package

2010-12-29 Thread Marc Schwartz
On Dec 29, 2010, at 2:08 PM, Michael Friendly wrote: On 12/29/2010 1:01 PM, Marc Schwartz wrote: Michael, Are you referring to an icon that would be displayed for an R package when browsing in a file manager, such as Nautilus, Konqueror or Finder? Well, my initial query was just

Re: [R] Problem applying McNemar's - Different values in SPSS and R

2010-12-28 Thread Marc Schwartz
hypothesis: true odds ratio is not equal to 1 95 percent confidence interval: 0.04885492 1.03241985 sample estimates: odds ratio 0.2727273 HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Problem applying McNemar's - Different values in SPSS and R

2010-12-28 Thread Marc Schwartz
On Dec 28, 2010, at 11:47 AM, Johannes Huesing wrote: Marc Schwartz marc_schwa...@me.com [Tue, Dec 28, 2010 at 06:30:59PM CET]: On Dec 28, 2010, at 11:05 AM, Manoj Aravind wrote: Hi friends, I get different values for McNemar's test in R and SPSS. Which one should i rely on when the p

Re: [R] Matching a pattern of vector of character strings in another vector of character strings

2010-12-17 Thread Marc Schwartz
this: colnames(M)[regexpr(01, apply(M, 1, paste, collapse = ))] [1] 2006 2008 2008 See ?regexpr for more info. 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] editor for MacOS

2010-12-16 Thread Marc Schwartz
specific queries are also best posted to: https://stat.ethz.ch/mailman/listinfo/r-sig-mac 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] Reset R to a vanilla state

2010-12-16 Thread Marc Schwartz
://stat.ethz.ch/mailman/listinfo/ess-help HTH, Marc Schwartz On Dec 16, 2010, at 9:49 AM, Holger Hoefling wrote: Hi, I am writing code in Emacs using org-mode and babel. I have a number of code blocks that are tangled into several files with some files spanning several code blocks. Each of these files

Re: [R] editor for MacOS

2010-12-16 Thread Marc Schwartz
On Dec 16, 2010, at 10:26 AM, peter dalgaard wrote: On Dec 16, 2010, at 16:54 , Marc Schwartz wrote: On Dec 16, 2010, at 9:41 AM, Troels Ring wrote: Dear friends - I'm using Tinn-R in Windows and find it OK. My son is running MacOS and is just starting using R and I know nothing about

Re: [R] WriteXLS error:Error in get(x, envir = envir) : variable names are limited to 256 bytes

2010-12-10 Thread Marc Schwartz
(alldata, test.xls) should work. 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 call R-squared values from lm's?

2010-12-02 Thread Marc Schwartz
)$adj.r.squared [1] 0.02158191 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] Sample size with ANCOVA

2010-11-20 Thread Marc Schwartz
/245656.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 commented, minimal, self-contained, reproducible

Re: [R] Function call on every prompt

2010-11-19 Thread Marc Schwartz
. Have I been hallucinating or is my search-fu week this Friday? Barry Baz, What's wrong with: options(prompt = paste(format(Sys.time(), %a %b %d %X %Y %Z), )) Fri Nov 19 09:30:53 2010 CST Fri Nov 19 09:30:53 2010 CST Fri Nov 19 09:30:53 2010 CST ? HTH, Marc Schwartz

Re: [R] Function call on every prompt

2010-11-19 Thread Marc Schwartz
On Nov 19, 2010, at 9:36 AM, Duncan Murdoch wrote: On 19/11/2010 10:31 AM, Marc Schwartz wrote: On Nov 19, 2010, at 9:23 AM, Barry Rowlingson wrote: Someone on stackoverflow.com was wondering how to display the current time in the R prompt. I could have swore there was a mechanism

Re: [R] statistical test for comparison of two classifications (nominal)

2010-11-17 Thread Marc Schwartz
. There are extensions of the pairwise McNemar test to greater than two categories. Some online information is here: http://www.john-uebersax.com/stat/mcnemar.htm and there is the ?mh_test implemented in the 'coin' package on CRAN. HTH, Marc Schwartz __ R

Re: [R] Breslow-Day test

2010-11-16 Thread Marc Schwartz
Biometrika 72, 91-95. 1985 Supported by Breslow in: Statistics in Epidemiology: The Case-Control Study N. E. Breslow Journal of the American Statistical Association Vol. 91, No. 433 (Mar., 1996), pp. 14-28 and also look at the code for the woolf() function in ?mantelhaen.test HTH, Marc Schwartz

Re: [R] Consistency of Logistic Regression

2010-11-12 Thread Marc Schwartz
family taken to be 1) Null deviance: 13.863 on 9 degrees of freedom Residual deviance: 12.767 on 8 degrees of freedom AIC: 16.767 Number of Fisher Scoring iterations: 4 HTH, Marc Schwartz On Nov 12, 2010, at 12:56 PM, Benjamin Godlove wrote: I think it is likely I am missing something

Re: [R] Troubleshooting sweave

2010-11-11 Thread Marc Schwartz
are using any LaTeX packages that might require the intermediate creation of a DVI and PS file. That would include packages such as PSTricks, etc. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Decimal places in a function output

2010-11-10 Thread Marc Schwartz
the '*' formatting parameter. See the description towards the end of the Details in ?sprintf 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] Sample size calculation for differences between two very small proportions (Fisher's exact test or others)?

2010-11-08 Thread Marc Schwartz
of these are coming back with numbers in the 48,000 to 50,000 ***per arm***. HTH, Marc Schwartz On Nov 8, 2010, at 10:16 AM, Mitchell Maltenfort wrote: Not with R, but look for G*Power3, a free tool for power calc, includes FIsher's test. http://www.psycho.uni-duesseldorf.de/abteilungen/aap/gpower3

Re: [R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread Marc Schwartz
installed, which is available from the OSX DVD in the Optional Installs section. 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] how to get all possible combinations including the diagonal using combn

2010-11-01 Thread Marc Schwartz
Var2 1 0.1 0.1 2 0.2 0.1 3 0.3 0.1 4 0.1 0.2 5 0.2 0.2 6 0.3 0.2 7 0.1 0.3 8 0.2 0.3 9 0.3 0.3 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] date calculation

2010-10-30 Thread Marc Schwartz
difference of 195 days R has built in arithmetic operations for such dates, without the need to use another package, since they are effectively numerics with a Date class: str(Date1) Class 'Date' num 12551 str(Date2) Class 'Date' num 12746 ? HTH, Marc Schwartz - Original Message

Re: [R] help with help()

2010-10-28 Thread Marc Schwartz
to ESS 5.11: http://ess.r-project.org/index.php?Section=download or consider using Vincent Goulet's pre-packaged Emacs 23/ESS install: http://vgoulet.act.ulaval.ca/en/ressources/emacs/mac HTH, Marc Schwartz __ R-help@r-project.org mailing list

Re: [R] help with help()

2010-10-28 Thread Marc Schwartz
On Oct 28, 2010, at 1:32 PM, Marc Schwartz wrote: On Oct 28, 2010, at 1:20 PM, claudia tebaldi wrote: Hi all Just this morning I upgraded to R 2.12.0 (for Mac OS X 10.6.4). All went well until I needed to run a help() or help.search() in my session, which I'm running within Emacs (ESS

Re: [R] install RSPerl on Fedora

2010-10-27 Thread Marc Schwartz
. Header files are included in RPMS with the postfix '-devel' and are not usually present in typical Fedora installations. Thus, using: sudo yum install perl-devel should hopefully get you moving forward. HTH, Marc Schwartz __ R-help@r

Re: [R] Which version control system to learn for managing R projects?

2010-10-26 Thread Marc Schwartz
, even (especially?) if you limited the choices to Emacs and Vim... ;-) 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

Re: [R] LaTeX output with mlogit or multinom

2010-10-26 Thread Marc Schwartz
to consider that approach. More information is at: http://cran.r-project.org/web/packages/RcmdrPlugin.Export/ 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] RODBC: data base with decimal point ,

2010-10-22 Thread Marc Schwartz
Access itself, referenced in the above. Also, as an FYI, there is an e-mail list focused on R and database issues. More info at: https://stat.ethz.ch/mailman/listinfo/r-sig-db HTH, Marc Schwartz __ R-help@r-project.org mailing list https

Re: [R] Combining the values of two variables into one

2010-10-22 Thread Marc Schwartz
On Oct 22, 2010, at 4:00 PM, David Herzberg wrote: I start with: v1-c(1,3,5,7) v2-c(2,4,6,8) And I want to end up with: v3-c(12,34,56,78) How do I get there? Thanks, v1*10 + v2 [1] 12 34 56 78 HTH, Marc Schwartz __ R-help@r

Re: [R] Combining the values of two variables into one

2010-10-22 Thread Marc Schwartz
On Oct 22, 2010, at 4:14 PM, Marc Schwartz wrote: On Oct 22, 2010, at 4:00 PM, David Herzberg wrote: I start with: v1-c(1,3,5,7) v2-c(2,4,6,8) And I want to end up with: v3-c(12,34,56,78) How do I get there? Thanks, v1*10 + v2 [1] 12 34 56 78 David, It occurs to me

Re: [R] RODBC Error

2010-10-18 Thread Marc Schwartz
as may be appropriate. For example: http://cran.us.r-project.org/bin/windows/base/CHANGES.R-2.12.0.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

Re: [R] yum install - not working for installing R on Linux

2010-10-17 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] R and Oracle

2010-10-14 Thread Marc Schwartz
on R and database connectivity/usage. More information is here: https://stat.ethz.ch/mailman/listinfo/r-sig-db I would recommend subscribing to that list and re-posting your query there, with additional details, once you have reviewed the above resources. HTH, Marc Schwartz

Re: [R] declaring GPL license

2010-10-14 Thread Marc Schwartz
a file called COPYING in the 'inst' folder in the package, so that it gets copied to the main package directory upon installation. The content for that file (the GPL 2 license) is at: http://www.gnu.org/licenses/gpl-2.0.txt HTH, Marc Schwartz __ R

Re: [R] declaring GPL license

2010-10-14 Thread Marc Schwartz
On Oct 14, 2010, at 11:13 AM, Berwin A Turlach wrote: G'day Marc, On Thu, 14 Oct 2010 10:46:39 -0500 Marc Schwartz marc_schwa...@me.com wrote: If you want (and you should), create and include a file called COPYING in the 'inst' folder in the package, so that it gets copied to the main

Re: [R] declaring GPL license

2010-10-14 Thread Marc Schwartz
On Oct 14, 2010, at 11:36 AM, Stacey Wood wrote: Thanks everyone. Now I know that I should not include another copy of the license, but where should I refer to the copies on http://www.r-project.org/Licenses/? In the DESCRIPTION file? Stacey snip Not in the DESCRIPTION file. :-)

Re: [R] [OT] (slightly) - OpenOffice Calc and text files

2010-10-13 Thread Marc Schwartz
be Gnumeric (http://projects.gnome.org/gnumeric/) and of course, there is always Emacs, which I have now used on Windows, Linux and OSX. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Linux 64-bit R installation problem - Failed dependencies

2010-10-07 Thread Marc Schwartz
to use Fedora, which is by design, a bleeding edge Linux distribution, you need to be prepared to update fairly frequently. 3. Given your e-mail name, pick up a current book on using and administering Fedora Core Linux. HTH, Marc Schwartz __ R-help@r

Re: [R] Longitudinal multivariate data analysis

2010-10-07 Thread Marc Schwartz
-project.org/ There is also a R-SIG-MIXED-MODELS e-mail list focused on this subject matter: https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models Finally, there is also a working draft FAQ, which I believe Ben Bolker is maintaining: http://glmm.wikidot.com/faq HTH, Marc Schwartz

Re: [R] trouble with RODBC -- chopping off part of column names

2010-10-02 Thread Marc Schwartz
-project.org/posting-guide.html Lastly, for future reference, there is an R-SIG-DB list: https://stat.ethz.ch/mailman/listinfo/r-sig-db Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] maximum matrix size if it runs with 64-bit R

2010-10-02 Thread Marc Schwartz
and that does not change between 32 and 64 bit R. The primary advantage of 64 bit R is the larger memory address space. See: http://cran.r-project.org/doc/manuals/R-admin.html#Choosing-between-32_002d-and-64_002dbit-builds HTH, Marc Schwartz __ R

Re: [R] cleaning up a vector

2010-10-01 Thread Marc Schwartz
11 9 13 [23] 17 14 5 19 3 20 11 18 16 15 13 20 See ?is.finite 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] How to generate scatterplot - with a twist

2010-10-01 Thread Marc Schwartz
at 'xaxs' in ?par. You can also add additional content to the existing plot by then using functions such as ?points, ?lines, ?segments, etc. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] short captions for xtable?

2010-09-29 Thread Marc Schwartz
that functionality as an enhancement. In Frank's Hmisc package, there is the latex() function, which has separate arguments for 'caption' and 'caption.lot', so you may wish to look at that approach. HTH, Marc Schwartz __ R-help@r-project.org mailing list https

Re: [R] OT: Is randomization for targeted cancer therapies ethical?

2010-09-21 Thread Marc Schwartz
on the viability of products in the development pipeline. HTH, Marc Schwartz Bert Gunter gunter.ber...@gene.com Sent by: r-help-boun...@r-project.org 09/20/2010 01:31 PM To r-help@r-project.org cc Subject [R] OT: Is randomization for targeted cancer therapies ethical

Re: [R] when i create data.frame is time variable and Censor variable should be equal?

2010-09-21 Thread Marc Schwartz
. See: require(survival) ?Surv 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-guide.html and provide

Re: [R] Web forum - should I make one?

2010-09-21 Thread Marc Schwartz
, the Stack Overflow R forum has evolved as an independent online presence in the recent past, as an alternative for folks who prefer that mode of interaction. HTH, Marc Schwartz On Sep 21, 2010, at 11:40 AM, Kjetil Halvorsen wrote: Did you look at: http://rwiki.sciviews.org/doku.php

Re: [R] multiplying values in data frame by corresponding value in the first column

2010-09-21 Thread Marc Schwartz
)] - DF[, -c(1:2)] * DF$Group DF Observation Group Param1 Param2 1 AA 1 3 4 2 BB-1 -5 -6 HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] R-help Digest, Vol 91, Issue 21

2010-09-21 Thread Marc Schwartz
R to code sites a-f as 1 and sites g-l as 2. Cheers Kurt Something along the lines of: Treatment - ifelse(sites %in% c(a, b, c, d, e, f), 1, 2) should work. See ?%in% and ?ifelse HTH, Marc Schwartz __ R-help@r-project.org mailing list https

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

2010-09-19 Thread Marc Schwartz
. 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) Change since version 2.0.1: New logical argument 'row.names' to enable the ability to export

Re: [R] Date issues

2010-09-18 Thread Marc Schwartz
numeric arguments given that 'origin' is specified, occurred with R version 2.7.0. So are you running a version of R older than that? HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

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

2010-09-16 Thread Marc Schwartz
Schwartz marc_schwa...@me.com Maintainer: Marc Schwartz marc_schwa...@me.com License: GPL (=2) Changes since version 1.9.0: 1. Major version update to 2.x.y 2. Added the ability to specify the name of a list that contains one or more data frames, in addition to the original vector of one or more

Re: [R] R install in Fedora

2010-09-15 Thread Marc Schwartz
assistance for R, as this thread is getting to be OT for R-Help. 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] Creating publication-quality plots for use in Microsoft Word

2010-09-15 Thread Marc Schwartz
in the output. So it all depends upon how you plan to use the document. HTH, Marc Schwartz On Sep 15, 2010, at 9:50 AM, Bryan Hanson wrote: There's many ways to solve this, but you are close to one already: Make the pdf, put the cursor where you want it in the document, then on the menu bar Insert

Re: [R] characters in a string

2010-09-15 Thread Marc Schwartz
$, rha,b,c,drh) [1] TRUE You can pass the entire source vector to grepl(): Vec - c(rha,b,c,drh, 1, 2, 3, 4, a, b, c, drh, rh1, 2, 3, 4rh) grepl(^rh.*rh$, Vec) [1] TRUE FALSE FALSE TRUE HTH, Marc Schwartz __ R-help@r-project.org mailing list https

Re: [R] Creating publication-quality plots for use in Microsoft Word

2010-09-15 Thread Marc Schwartz
On Sep 15, 2010, at 10:25 AM, dadrivr wrote: Thanks for your help, guys. I'm looking to produce a high-quality plot (no jagged lines or other distortions) with a filetype that is accepted by Microsoft Word on a PC and that most journals will accept. That's why I'd prefer to stick with

Re: [R] R install in Fedora

2010-09-14 Thread Marc Schwartz
continue to have problems, please be sure to include the error message(s) that you get in your post. 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] Error: cannot allocate vector of size X.0 Mb

2010-09-14 Thread Marc Schwartz
advice. In an R session, see what the result of: .Machine$sizeof.pointer gets you. If it returns 4, you are using 32 bit R and you will need to install 64 bit R. If it returns 8, you are using 64 bit R. The information above only tells us/you that you are running a 64 bit OS. HTH, Marc

Re: [R] Error: cannot allocate vector of size X.0 Mb

2010-09-14 Thread Marc Schwartz
only for analyses, as may be appropriate relative to splitting the tasks. You did not indicate just how much RAM you have on the machine in question, but if it is within your budget/capability, adding more RAM would be the most transparent approach. HTH, Marc Schwartz

Re: [R] SF-8 (not 36) questionnaire scoring for R?

2010-09-13 Thread Marc Schwartz
/Default.aspx 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] SF-8 (not 36) questionnaire scoring for R?

2010-09-13 Thread Marc Schwartz
domain. However, there are material differences in the scoring systems now used by QM and the original RAND scoring mechanism, as I understand it, is almost never used these days. Regards, Marc Schwartz __ R-help@r-project.org mailing list https

Re: [R] Sample a vector repeatedly

2010-09-13 Thread Marc Schwartz
,]733 [10,]35 10 I am guessing the first scenario, but included the second just in case. See ?sapply in which help for both sapply() and replicate() is available. HTH, Marc Schwartz __ R-help@r-project.org mailing list https

Re: [R] pairwise.t.test vs t.test

2010-09-10 Thread Marc Schwartz
0.02184081 NB: The pool.SD switch calculates a common SD for all groups and used that for all comparisons See the Details in ?pairwise.t.test HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Newbie cross tabulation issue

2010-09-09 Thread Marc Schwartz
is in the process, so it may take some further investigation. 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] Newbie cross tabulation issue

2010-09-09 Thread Marc Schwartz
can take advantage of R's approach/philosophy in conducting data analysis. 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] 'par mfrow' and not filling horizontally

2010-09-08 Thread Marc Schwartz
, xlim= c(-3, 3), ylim = c(-3, 3), xlab = X, ylab = Y, main = My Plot, asp = 1) See ?par and 'pty', which defaults to m. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] WriteXLS problem

2010-09-07 Thread Marc Schwartz
as WriteXLS, since the limitation is on the Excel side of the process as was noted in the information that David provided below. HTH, Marc Schwartz On Sep 7, 2010, at 1:45 AM, Kenneth Roy Cabrera Torres wrote: Dears Dejian and David: Thank you for your help. Maybe dataframes2xls package

Re: [R] Matrix to list

2010-09-03 Thread Marc Schwartz
-0.01619026 0.94383621 0.82122120 0.59390132 $V5 [1] 0.91897737 0.78213630 0.07456498 -1.98935170 0.61982575 You can argue that the coercion to a list is redundant, since a data frame is a list, but it may depend upon what you then want to do with the data. HTH, Marc Schwartz

Re: [R] summary in Hmisc and Latex

2010-08-31 Thread Marc Schwartz
, where I default to the use of ctable, as I prefer the look. One approach instead of removing the blank lines, is to just comment them out (eg. using a '%' character). I am cc'ing Frank here, in case he is not aware of this, albeit I presume that he is and that this behavior is a buglet. HTH, Marc

Re: [R] different interface to by (tapply)?

2010-08-30 Thread Marc Schwartz
0.3137983 4.260 0.46991101.326 3 0.3224966 5.552 0.55189472.026 Petal.Width.SD 1 0.1053856 2 0.1977527 3 0.2746501 HTH, Marc Schwartz On Aug 30, 2010, at 8:36 AM, Henrique Dallazuanna wrote: Try

Re: [R] Find classes for each column of a data.frame

2010-08-26 Thread Marc Schwartz
... - attr(*, dimnames)=List of 2 ..$ : NULL ..$ : chr [1:5] Sepal.Length Sepal.Width Petal.Length Petal.Width ... Since a matrix can only contain a single class of objects (recall that a matrix is a vector with dim attributes), 'iris' becomes a character matrix. HTH, Marc Schwartz

Re: [R] reliability of R-Forge?

2010-08-26 Thread Marc Schwartz
a version bump during that time frame. R-Forge packages will not have the same frequency of commits, but the same approach can be applied. So you need to differentiate between the ongoing development/commit process and the versioned release process. HTH, Marc Schwartz

Re: [R] Help with ddply to eliminate a for..loop

2010-08-26 Thread Marc Schwartz
8 0.000 9 d2 9 0.6324555 10 e210 1.2649111 11 a311 -1.2649111 12 b312 -0.6324555 13 c313 0.000 14 d314 0.6324555 15 e315 1.2649111 HTH, Marc Schwartz __ R-help@r

Re: [R] Help with ddply to eliminate a for..loop

2010-08-26 Thread Marc Schwartz
On Aug 26, 2010, at 3:40 PM, Marc Schwartz wrote: On Aug 26, 2010, at 3:33 PM, Bos, Roger wrote: I created a small example to show something that I do a lot of. scale data by month and return a data.frame with the output. id represents repeated observations over time and I want to scale

Re: [R] Comparing samples with widely different uncertainties

2010-08-25 Thread Marc Schwartz
that I would start is at Martin Bland's page pertaining to the design and analysis of measurement studies: http://www-users.york.ac.uk/~mb55/meas/meas.htm The papers he co-authored with Doug Altman are the go to resource for this domain. HTH, Marc Schwartz

Re: [R] OT: R for iPhone/iPad OS?

2010-08-25 Thread Marc Schwartz
a client/server model based GUI application (think Wolfram|Alpha) or via a web browser connecting to a remote R server, yes you can. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] find most repeated item from column in dataframe

2010-08-24 Thread Marc Schwartz
StandID HerbNum Woody 1 001 1 low 2 002 2 high HTH, Marc Schwartz On Aug 24, 2010, at 9:14 PM, bill.venab...@csiro.au wrote: Do you expect this to be easy? It may be, but I can't see a particularly graceful way to do it. Here is one possible solution. dat

Re: [R] easiest way to write an R dataframe to excel?

2010-08-23 Thread Marc Schwartz
for WriteXLS, is to use the ActiveState Perl distribution, available from: http://www.activestate.com/activeperl/ If you have problems or other questions with respect to WriteXLS, let me know. HTH, Marc Schwartz __ R-help@r-project.org mailing list

Re: [R] easiest way to write an R dataframe to excel?

2010-08-23 Thread Marc Schwartz
On Aug 23, 2010, at 4:22 PM, David Winsemius wrote: On Aug 23, 2010, at 4:52 PM, Marc Schwartz wrote: On Aug 23, 2010, at 2:50 PM, Eva Nordstrom wrote: I am using R 2.11.1 in a Microsoft Windows 7 environment. I tried using WriteXLS, but get the message In system(cmd) : perl

Re: [R] Regex exercise

2010-08-20 Thread Marc Schwartz
= +|, +)[[1]], collapse = ,), [1] 1 2 3 4 5 3 4 5 6 4 8 5 6 7 10 The key inner part is: strsplit(gsub( *- *, :, x), split = +|, +)[[1]] [1] 1 2:5 3:6 4 8 5:7 10 HTH, Marc Schwartz __ R-help@r-project.org mailing list

Re: [R] How to make flowchart in R?

2010-08-16 Thread Marc Schwartz
, percentages, other annotation, etc. as required from the 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

Re: [R] How to make flowchart in R?

2010-08-16 Thread Marc Schwartz
Hi, If you should decide to pursue the LaTeX approach, you would want to install MacTeX on your Mac. More information here: http://www.tug.org/mactex/2009/ MacTeX is a self contained distribution of TeX Live 2009. It also provides an easy to use GUI based maintenance tool to add packages

Re: [R] print numbers

2010-08-16 Thread Marc Schwartz
Bill et al, See ?axTicks plot(3^(0:5), 0:5, log=x,axes=FALSE) axTicks(1) [1] 1 2 5 10 20 50 100 200 axTicks(2) [1] 0 1 2 3 4 5 HTH, Marc Schwartz On Aug 16, 2010, at 5:17 PM, William Dunlap wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r

Re: [R] Paired t-tests

2010-08-15 Thread Marc Schwartz
: https://stat.ethz.ch/pipermail/r-help/2010-August/249068.html perhaps focusing on Thomas' reply, which is the next post in the thread. Bottom line, don't use the formula method for a paired t test. HTH, Marc Schwartz __ R-help@r-project.org

Re: [R] Paired t-tests

2010-08-15 Thread Marc Schwartz
On Aug 15, 2010, at 2:48 PM, David Winsemius wrote: On Aug 15, 2010, at 3:31 PM, Peter Dalgaard wrote: Marc Schwartz wrote: On Aug 15, 2010, at 9:05 AM, R Help wrote: Hello List, I'm trying to do a paired t-test, and I'm wondering if it's consistent with equations. I have a dataset

Re: [R] x-axis label print in 45 degree

2010-08-12 Thread Marc Schwartz
create rotated axis labels? http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_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

Re: [R] conditional selection of dataframe rows

2010-08-12 Thread Marc Schwartz
0.6 7 3 5 0.1 8 4 5 0.0 See ?ave and ?subset 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

<    4   5   6   7   8   9   10   11   12   13   >