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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] export tables to excel files on multiple sheets with titles for each table

2010-07-13 Thread Marc Schwartz
at the RCom package tools for this. This provides greater flexibility in writing to the worksheets and cells. See http://rcom.univie.ac.at/ for more information. HTH, Marc Schwartz On Jul 13, 2010, at 4:09 PM, Felipe Carrillo wrote: Check the WriteXLS package, I think it does that and also

Re: [R] Sample size ANCOVA

2010-07-14 Thread Marc Schwartz
results as compared to the online calculator. 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

Re: [R] Error while connecting to Oracle using RODBC package

2010-07-14 Thread Marc Schwartz
the DSN connection information with your Oracle Admin. See: vignette(RODBC) for more information. Are you by chance on a 64 bit Windows platform, running 32 bit R? If so, be sure that your ODBC driver for Oracle is 32 bit and not 64 bit, which could also result in a conflict. HTH, Marc

Re: [R] Mathematica and R

2010-07-14 Thread Marc Schwartz
(eg. CSV files) that can be used by both applications. I don't use Mathematica, so am unfamiliar with their, presumably proprietary, formats. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Query about wilcox.test() P-value

2010-07-14 Thread Marc Schwartz
information specific to your platform relative to numerical characteristics. HTH, Marc Schwartz On Jul 14, 2010, at 10:49 AM, Govind Chandra wrote: Hi Peter, Thanks for your response. Yes, I am interested in P-values smaller than 1e-16. Below a certain value they may not tell much about

Re: [R] ver 2.11.1 from xterm on Mac without lme4

2010-07-14 Thread Marc Schwartz
and the additional tools are available from: http://cran.us.r-project.org/bin/macosx/tools/ As a future reference, since this issue is specific to OSX, you would be better off posting to the R-sig-mac list: https://stat.ethz.ch/mailman/listinfo/r-sig-mac HTH, Marc Schwartz

Re: [R] Embedding graphics in a pdf()

2010-07-14 Thread Marc Schwartz
on a similar query: https://stat.ethz.ch/pipermail/r-help/2010-July/245291.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

Re: [R] Add Significance Codes to Data Frame

2010-07-14 Thread Marc Schwartz
that 'Signif' is: str(Signif) Class 'noquote' atomic [1:2] *** ..- attr(*, legend)= chr 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 So you will need to coerce it to a vector before cbind()ing to a data frame: as.vector(Signif) [1] *** HTH, Marc Schwartz

Re: [R] Import graph object

2010-07-14 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] write.csv() : attempt to set 'append' ignored... Why?

2010-07-15 Thread Marc Schwartz
, col.names, sep, dec or qmethod are ignored, with a warning. If you want to use 'append', you will need to use write.table() and adjust the other arguments as you require. HTH, Marc Schwartz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Search and extract string function

2010-07-15 Thread Marc Schwartz
the two bounding sets of characters. 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] How do I combine lists of data.frames into a single data frame?

2010-07-15 Thread Marc Schwartz
) The result of which will be a single data frame containing all of the rows from each of the data frames in the list. 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] write.csv() : attempt to set 'append' ignored... Why?

2010-07-15 Thread Marc Schwartz
:36 AM, Marc Schwartz marc_schwa...@me.com wrote: On Jul 15, 2010, at 9:41 AM, Cliff Clive wrote: I'm running R 2.11.0 on a 32-bit Windows XP machine. Whenever I try to write a csv file with 'append' set to TRUE, I get this message: attempt to set 'append' ignored. Obviously

Re: [R] How do I combine lists of data.frames into a single data frame?

2010-07-15 Thread Marc Schwartz
, Marc Schwartz marc_schwa...@me.com wrote: On Jul 15, 2010, at 2:18 PM, Ted Byers wrote: The data.frame is constructed by one of the following functions: funweek - function(df) if (length(df$elapsed_time) 5) { rv = fitdist(df$elapsed_time,exp) rv$year = df$sale_year[1] rv$sample

Re: [R] Search and extract string function

2010-07-15 Thread Marc Schwartz
On Jul 15, 2010, at 11:27 AM, AndrewPage wrote: Actually I have one more question that's somewhat related-- I'm starting out by importing a .txt file that isn't divided into vectors and is at times inconsistent with regards to spacing, indents, etc., so I can't rely on those. It looks

Re: [R] How do I combine lists of data.frames into a single data frame?

2010-07-15 Thread Marc Schwartz
Ted, Based upon your code below, you might be better off using two lapply() constructs to create the x and y results separately, taking advantage of lapply()'s built-in ability to create lists 'on the fly', while returning a NULL when the function will not be applied to the data based upon

Re: [R] glm - prediction of a factor with several levels

2010-07-26 Thread Marc Schwartz
a two level response. BTW, if you are going to use a function (eg. rmvnorm()) from an external package, be sure to include the relevant library() call in your example code so folks don't need to guess which CRAN package(s) may be required to run it. HTH, Marc Schwartz

Re: [R] R CMD build wiped my computer

2010-07-27 Thread Marc Schwartz
. 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, reproducible code.

Re: [R] [Rd] R CMD build wiped my computer

2010-07-28 Thread Marc Schwartz
, it was perhaps 20+ years ago, but as a result, I am quite anal retentive about having backups, which I have done for some time on my systems, hourly. HTH, Marc Schwartz On Jul 28, 2010, at 5:55 AM, Jarrod Hadfield wrote: Hi Martin, I think this is the most likely reason given that the name

Re: [R] [Rd] R CMD build wiped my computer

2010-07-28 Thread Marc Schwartz
On Jul 28, 2010, at 3:18 PM, Bos, Roger wrote: Ubuntu also uses ~ as a backup file syntax, but Ubuntu has a trash can where deleted files are located, so it would be easy to restore them. I would be surprised if Fedora didn't also have a trash can. snip Roger, It does, but that is only if

Re: [R] Sweaving quotes

2010-07-28 Thread Marc Schwartz
) ... Signif. codes: 0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1 ... 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] Sweave line breaks

2010-07-30 Thread Marc Schwartz
mollit anim id est laborum. 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] Plotting range of values in barplot()

2010-08-05 Thread Marc Schwartz
Strongly Disagree Somewhat Disagree NeutralSomewhat Agree 0 1 2 7 Strongly Agree 12 Now do the barplot(): MyTab - table(MyData) barplot(MyTab, names.arg = MyTab) HTH, Marc Schwartz

Re: [R] Is R GPL or LGPL (or can I write a commercial front end to R)?

2010-08-06 Thread Marc Schwartz
details, which can impact whether or not you can sell a closed source GUI that runs on top of R. At the end of the day, you have a fiduciary responsibility to your company to seek formal legal advice. That is part of the cost of doing business and making informed decisions. HTH, Marc Schwartz

Re: [R] gsub

2010-08-06 Thread Marc Schwartz
Thanks, Alfredo The easiest way is to use a back reference to return the part of the vector that you want: gsub(^.*_(.*)\\.csv$, \\1, piante_venere.csv) [1] venere In this case, the \\1 returns the part of the regex defined within the parens. HTH, Marc Schwartz

Re: [R] subset of string by index

2010-08-08 Thread Marc Schwartz
at Gabor's 'gsubfn' CRAN package to see if he is utilities there that may be relevant. 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] ESS question. How to get rid of ess-smart-underscore?

2010-08-09 Thread Marc Schwartz
can disable the behavior by putting: (ess-toggle-underscore nil) in your .emacs file. Also, as you may be aware, there is a dedicated ESS help list at: https://stat.ethz.ch/mailman/listinfo/ess-help HTH, Marc Schwartz __ R-help@r-project.org

Re: [R] package names in Latex

2010-08-09 Thread Marc Schwartz
be bolded using a \pkg directive (eg. \pkg{YourPackageName}), which would bold the package name within the braces. If you are doing this outside of those environments, you can duplicate the effect by using \textbf{YourPackageName}, which would bold the text within the braces only. HTH, Marc

Re: [R] Sweave with dev.new()

2010-08-10 Thread Marc Schwartz
of the dimensions that you have specified. You can alter that default behavior by using: \usepackage[nogin]{Sweave} in your document preamble. The figures will then be set to the sizes that you define in the figure chunk header. See ?RweaveLatex for more information. HTH, Marc Schwartz

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

Re: [R] conditional selection of dataframe rows

2010-08-12 Thread Marc Schwartz
On Aug 12, 2010, at 2:24 PM, Marc Schwartz wrote: On Aug 12, 2010, at 2:11 PM, Toby Gass wrote: Dear helpeRs, I have a dataframe (14947 x 27) containing measurements collected every 5 seconds at several different sampling locations. If one measurement at a given location is less than

Re: [R] conditional selection of dataframe rows

2010-08-12 Thread Marc Schwartz
On Aug 12, 2010, at 3:06 PM, Toby Gass wrote: Thank you all for the quick responses. So far as I've checked, Marc's solution works perfectly and is quite speedy. I'm still trying to figure out what it is doing. :) Henrique's solution seems to need some columns somewhere. David's

Re: [R] storing the results of an apply call

2010-08-12 Thread Marc Schwartz
...) 2. I don't know if the fortunes package is the right place, but this exchange needs to be captured... Regards, Marc Schwartz P.S. Pardon me while I go visit with the Emacs Psychotherapist (version 23 of course...) __ R-help@r-project.org

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] 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] 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] 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] 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] 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 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] 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] 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] 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] 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] '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] 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] 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] 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] 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] 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

[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] 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.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] 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

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] 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

  1   2   3   4   5   6   7   8   9   10   >