[R] Symetric matrix as random effect in lmer

2008-03-18 Thread Marc
such a model in R. If so, I would very much appreciate some help because I have not found the way to do it. I pasted the sessionInfo() and subset of the data below. Thanks! Marc. sessionInfo() R version 2.6.2 (2008-02-08) i386-pc-mingw32 locale: LC_COLLATE=English_United Kingdom.1252;LC_CTYPE

[R] Slow function

2008-06-10 Thread Marc
appreciated. Marc. __ 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] Slow function

2008-06-10 Thread Marc
]] - matrix(sample(rep(c(1,0), 100), 1536*170), nrow = 170, ncol = 1536) } Thanks, Marc. jim holtman wrote: I have no idea of what your data looks like, so using random numbers and only going for nr=1, after about a minute I stopped it. Here is what Rprof showed: /cygdrive/c/perf: perl c:/perf

[R] Name of objects in a list

2008-04-24 Thread Marc
) ..- attr(*, class)= chr rtest (...) Thanks for your help. Marc. __ 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

[R] Distance matrix from a binary data frame

2008-01-09 Thread Marc
) : missing value where TRUE/FALSE needed I don't know if the problem are the missing values in my data. If so how can I handle them? Thank you, Marc. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Error on distance matrix

2008-01-10 Thread Marc
Thanks for your help. It is working now. Marc. Gavin Simpson wrote: On Thu, 2008-01-10 at 10:48 +, Marc Moragues wrote: Hi, I am trying to calculate a distance matrix on a binary data frame using dist.binary() {ade4}. This is the code I run and the error I get: sjlc.dist

[R] Fitted values and MSE of individual fits in lmList

2009-04-14 Thread Marc
,] - c(levels(yieldh$yearloc)[i],x, length(levels(dta$rep))) } Can anybody give me directions to solve this? Thanks, Marc [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] creating log-log survival plots that are not inverted

2009-03-01 Thread Marc
, Marc Schwartz on 02/28/2009 10:09 PM David Winsemius wrote: I think what you want may be produced by this code for InvNormal(S) vs log(time): survplot(fit, fun=qnorm, logT=T, conf = none) That is not what you describe, however. I am worried about the plot on the page you cite, because

[R] Fitting a asymmetric logistic peak curve

2009-09-25 Thread Marc
will be appreciated. Marc. sessionInfo() R version 2.9.2 (2009-08-24) i486-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8

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

[R] Prettier axis labels when using log scales in Lattice

2010-11-06 Thread Marc Paterno
=list(y=list(log=10, labels=expression(10^0.65,10^0.7,10^0.75,10^0.8,10^0.85,10^0.85,10^0.9 The second is the effect I am trying to achieve. Is there a way to do this without explicitly entering the expressions to be printed on the y-axis? thanks, Marc Paterno

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
Yes, this behavior is new in 2.11.x. From the NEWS file: o write.csv[2] no longer allow 'append' to be changed: as ever, direct calls to write.table() give more flexibility as well as more room for error. HTH, Marc On Jul 15, 2010, at 3:01 PM, Jonathan Christensen wrote

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

2010-07-15 Thread Marc Schwartz
elements, each of which can then be indexed to contain a data frame that is a result of your looping operation. HTH, Marc On Jul 15, 2010, at 2:58 PM, Ted Byers wrote: Thanks Marc The next part of the question, though, involves the fact that there is a new 'z' list made in almost every

Re: [R] Search and extract string function

2010-07-15 Thread Marc Schwartz
HTH, Marc __ 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 do I combine lists of data.frames into a single data frame?

2010-07-15 Thread Marc Schwartz
will not be applied based upon your test, you can still use do.call(rbind, TheList) since those list elements that are NULL will be ignored in the result. Does that help? Marc On Jul 15, 2010, at 4:32 PM, Ted Byers wrote: Thanks Marc Part of the challenge here is that EVERYTHING is dynamic

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
into the trash can folder. They are just deleted. Regards, Marc __ 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] 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
SLOPE 1 3 4 0.2 2 4 4 0.3 3 5 4 0.4 4 3 4 0.5 5 4 4 0.6 7 3 5 0.1 8 4 5 0.0 I hope that clarifies the process. Marc __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

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
would certainly support the other recommendations that have been put forth. Regards, Marc On Aug 16, 2010, at 2:26 PM, johannes rara wrote: Thanks! My LaTeX knowledge is quite limited, I don't even know which one of these http://www.ucc.ie/cgi-bin/uncgi/ctan?term=PSTricks I should

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

[R] svyquantile w/ svyby is returning an error

2010-08-17 Thread Marc Zodet
$coefficients : $ operator is invalid for atomic vectors i'm not sure what i'm missing/not understanding. any help would be much appreciated. thanks, marc zodet [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

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
with JPEG, TIFF, PNG, or the like. I'm not sure EPS would fly. I tried inserting the PDF directly into Word, but I am on a PC and there is a loss of quality in the transfer. I'm not sure I know how to use the approach that Marc suggested in reference to saving a new PDF for use in Word. I also

  1   2   3   4   5   6   7   8   9   10   >