Re: [R] Merging two data frame with different nrows

2008-12-21 Thread Chuck Cleland
r of rows. As the Posting Guide asks, you can use RSiteSearch() or help.search() before posting to search for functionality. For example: RSiteSearch('merge', restrict='function') The third hit points to merge(), which does what you want. -- Chuck Cleland, Ph.D. NDRI, Inc.

[R] Extract Data from a Webpage

2008-12-16 Thread Chuck Cleland
ight have something useful for this task. I can load the XML package and supply the url as an argument to htmlTreeParse(), but I don't know how to go from there. thanks, Chuck Cleland > sessionInfo() R version 2.8.0 Patched (2008-12-04 r47066) i386-pc-mingw32 locale: LC_COLLATE=English_U

Re: [R] Cochran-Armitage

2008-12-12 Thread Chuck Cleland
ductor). > Best, > RobMac > > __ > 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. -- Chuc

Re: [R] tapply within a data.frame: a simpler alternative?

2008-12-10 Thread Chuck Cleland
_________ > 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. -- Chuck Cleland, Ph.D

Re: [R] Power calculations where two samples are of unequal size

2008-12-09 Thread Chuck Cleland
sting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __

Re: [R] Logical inconsistency

2008-12-05 Thread Chuck Cleland
- > > __ > 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] Howto Add Labels Next To Markers in Scatter Plot

2008-12-04 Thread Chuck Cleland
))) ?text ?identify > - Gundala Viswanath > Jakarta - Indonesia > > __ > 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] stuck with repeated values

2008-12-03 Thread Chuck Cleland
> [[alternative HTML version deleted]] > > __ > 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] simple question with table()

2008-11-30 Thread Chuck Cleland
3 7 7 0 ?factor > thank you, > Simone > > ______ > 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 com

Re: [R] Chi-Square Test Disagreement

2008-11-26 Thread Chuck Cleland
he result > of my own ignorance. The SPSS p-value is for the Likelihood Ratio Chi-squared test, not Pearson's. For Pearson's Chi-squared test in SPSS (16.0.2), I get p=0.04787, so the results do match if you do the same Chi-squared test. > thanks > --andy -- Chuck Cleland,

Re: [R] An array of an array of boxplots in lattice

2008-11-17 Thread Chuck Cleland
scales=list(y=list(relation='free'))) > Steve > > "R version 2.7.2 (2008-08-25)" on Ubuntu 6.06 > > ______ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the

Re: [R] how can I save the estimates of a regression model in a file?

2008-11-05 Thread Chuck Cleland
logdays days etc > 1 3.4141050.069387 -0.0006836 > 2 3.2276114 0.1223412 -0.0006836 > > n .. . > THANKS FOR YOUR HELP > > Maria Consider something like this: as.data.frame(t(sapply(split(data2

Re: [R] pwr.2p2n.test when the ratio of n1/n2 is known

2008-10-24 Thread Chuck Cleland
n2 = 1971 sig.level = 0.05 power = 0.8017491 alternative = two.sided NOTE: different sample sizes > Thanks > > Dan -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel:

Re: [R] Nagelkerke R square for Prediction data

2008-10-22 Thread Chuck Cleland
odel. I > would like to do this as well. > Data: > 1 0.9847 > 1 0,7653 > ... > 0 0,2456 > 0 0,0457 > ... > > THanks a lot RSiteSearch("Nagelkerke", restrict="function") suggests lrm() in the Design package by Frank Harrell. -- Chuck Clelan

Re: [R] calculating mean for samples

2008-10-21 Thread Chuck Cleland
> Sent from the R help mailing list archive at >> Nabble.com. >>>> __ >>>> R-help@r-project.org mailing list >>>> https://stat.ethz.ch/mailman/listinfo/r-help >>>> PLEASE do read the posting guide

Re: [R] how to count unique observations by variables

2008-10-16 Thread Chuck Cleland
regards, > Lijiang > > -- > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-proje

Re: [R] R vs SPSS contrasts

2008-10-12 Thread Chuck Cleland
_ > 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. -- Chuck Clel

Re: [R] how to do a probit?

2008-10-03 Thread Chuck Cleland
t; Viktor > > [[alternative HTML version deleted]] > > __ > 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] Exclusion of elements in a vector

2008-09-25 Thread Chuck Cleland
; Stefan Fritsch > > __ > 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, rep

Re: [R] rowSums()

2008-09-24 Thread Chuck Cleland
RUE) > is.na(Res) <- rowSums(is.na(testDat)) == ncol(testDat) > > 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://ww

Re: [R] rowSums()

2008-09-24 Thread Chuck Cleland
er attached packages: > [1] MiscPsycho_1.2 lattice_0.17-13 statmod_1.3.6 > > loaded via a namespace (and not attached): > [1] grid_2.7.2 > > __________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] count value

2008-09-11 Thread Chuck Cleland
t.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __

Re: [R] plotting group means

2008-09-09 Thread Chuck Cleland
CH-8008 Zurich > Switzerland > Mail: [EMAIL PROTECTED] > Office: +41 44 384 26 66 > Mobile: +41 76 563 31 54 > > > > > > [[alternative HTML version deleted]] > > _

Re: [R] Filter Values Out of R Output

2008-09-03 Thread Chuck Cleland
.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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street

Re: [R] request: How to get column name

2008-09-03 Thread Chuck Cleland
Box 2040, 3000 CA Rotterdam, the Netherlands >> Tel: +31/(0)10/7043399 >> Fax: +31/(0)10/7044657 >> >> __ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting g

Re: [R] how to increase row number

2008-09-02 Thread Chuck Cleland
h/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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010

Re: [R] Newbie programming help

2008-08-22 Thread Chuck Cleland
State University > PO Box 173460 > Bozeman, MT 59717-3460 > > phone: (406) 994-6643 > fax: (406) 994-7479 > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE

Re: [R] R-help? how to take difference in next two elements

2008-08-11 Thread Chuck Cleland
5 -3 ?diff -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

Re: [R] ANOVA

2008-08-10 Thread Chuck Cleland
self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list

Re: [R] multiple tapply

2008-08-07 Thread Chuck Cleland
1.326 2.026 -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] multiple tapply

2008-08-07 Thread Chuck Cleland
versicolor 1.326 12 Petal.Width virginica 2.026 -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.or

Re: [R] Obtaining the first /or last record of a subject in a longitudinal study

2008-08-07 Thread Chuck Cleland
13 -1 148.91 24 14 -1 151.61 25 19 -1 156.91 26 4 -1 155.71 > aggregate(Oxboys[,-1], list(Subject = Oxboys$Subject), tail, n=1) .. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212)

Re: [R] request for fine panel axis controls in lattice

2008-08-05 Thread Chuck Cleland
r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512

Re: [R] is this a bug (apply and class) ?

2008-08-01 Thread Chuck Cleland
ot; Thanks a lot. [[alternative HTML version deleted]] ______ 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 provid

[R] Problem reading a particular file with read.spss()

2008-07-29 Thread Chuck Cleland
Rterm.exe. The file opens without any trouble in SPSS version 16.0.2 (April 10, 2008). For anyone willing to investigate, I placed a copy of the SPSS file here: http://www.chuckcleland.net/mySPSSfile.sav I would be grateful if someone could help to figure out why this file causes a problem.

Re: [R] sunrise sunset calculations

2008-07-15 Thread Chuck Cleland
On 7/15/2008 12:52 PM, stephen sefick wrote: Does anyone know if there is a sunrise sunset calculator for R? RSiteSearch("sunrise", restrict="function") points to several related functions in the maptools package. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 W

Re: [R] A question about using function plot

2008-07-14 Thread Chuck Cleland
at.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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th flo

Re: [R] macros in R

2008-07-14 Thread Chuck Cleland
On 7/14/2008 11:03 AM, Erin Hodgess wrote: Hi R People: Could someone point out a reference for creating macros in R, please? Thanks, Erin See Programmer’s Niche: Macros in R by Thomas Lumley: http://www.r-project.org/doc/Rnews/Rnews_2001-3.pdf -- Chuck Cleland, Ph.D. NDRI, Inc

Re: [R] Help on Analysis of covariance

2008-07-01 Thread Chuck Cleland
stinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (73

Re: [R] PrettyR (describe)

2008-06-19 Thread Chuck Cleland
t;Selenium", "Silicon", "Sodium", "Sulfate", "TDS", "TIC", "TKN", "TOC", "TSS", "TVSS", "Zinc"), row.names = 54:80, class = "data.frame") library(prettyR) library(moments) Q25 <- fun

Re: [R] Reshape or Stack? (To produce output as columns)

2008-06-17 Thread Chuck Cleland
00287 89.881 -89.75 89.88 0.8961858 89.882 0.00 89.88 0.1663938 89.883 89.75 89.88 0.9004246 179.751-89.75179.75 0.1340782 179.752 0.00179.75 0.1316141 179.753 89.75179.75 0.1052875 Many thanks, Steve ______ R-help@r-project.or

Re: [R] subsetting data-frame by vector of characters

2008-06-13 Thread Chuck Cleland
__ 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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org

Re: [R] Parsing a data file - Help

2008-06-11 Thread Chuck Cleland
lp PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-

Re: [R] How to join data.frames and vectors of different length, in an inteligent way?

2008-06-10 Thread Chuck Cleland
ng 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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel:

Re: [R] Histogram of gaps

2008-06-10 Thread Chuck Cleland
ntained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://sta

Re: [R] col.names ?

2008-06-06 Thread Chuck Cleland
__ 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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23r

Re: [R] Plot matrix as many lines

2008-06-06 Thread Chuck Cleland
nfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (T

Re: [R] mean

2008-06-06 Thread Chuck Cleland
ect.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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York

Re: [R] Subsetting to unique values

2008-06-06 Thread Chuck Cleland
RUE FALSE TRUE FALSE ddTable[!duplicated(ddTable$Id),] Id name 1 1 Paul 3 2 Bob ?duplicated __ 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] request: a class having max frequency

2008-06-06 Thread Chuck Cleland
On 6/6/2008 9:18 AM, Chuck Cleland wrote: On 6/6/2008 9:14 AM, Muhammad Azam wrote: Dear R users I have a very basic question. I tried but could not find the required result. using dat <- pima f <- table(dat[,9]) f 0 1 500 268 i want to find that class say "0"

Re: [R] request: a class having max frequency

2008-06-06 Thread Chuck Cleland
elp PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 51

Re: [R] vector comparison

2008-06-05 Thread Chuck Cleland
("blah") [1] "blah" if (setequal(a, c)) show("yes") else show("blah") [1] "blah" if (setequal(b, c)) show("yes") else show("blah") [1] "yes" ?setequal Thanks! Karin __ R-help

Re: [R] missing data imputation - simulation

2008-06-04 Thread Chuck Cleland
randomForest library? Thanks in advance Birgit RSiteSearch("imputation", restrict="functions") RSiteSearch("{multiple imputation}", restrict="functions") return many relevant hits. - The art of living is more like wrestling than dancing. (Marcus Aurel

Re: [R] Help for R on Windows for non-Win-enabled!

2008-05-29 Thread Chuck Cleland
gt; Fax-to-email: +44 (0)870 094 0861 Date: 30-May-08 Time: 00:48:12 -- XFMail -- __ 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.o

Re: [R] help (boot)

2008-05-22 Thread Chuck Cleland
t 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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212)

Re: [R] From strings to numbers

2008-05-19 Thread Chuck Cleland
t;,"ab","bb","cat","cat","ab") as.numeric(as.factor(X)) [1] 1 1 2 3 3 1 Thx, Naira -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F)

Re: [R] Using tapply

2008-05-15 Thread Chuck Cleland
e http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 _

Re: [R] A very simple question

2008-05-14 Thread Chuck Cleland
ble code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mail

Re: [R] A Very Simple Question

2008-05-13 Thread Chuck Cleland
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 _

Re: [R] Multivariate simulation

2008-05-09 Thread Chuck Cleland
ternative HTML version deleted]] __ 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] Scatter Plot - 3 vectors side by side

2008-05-06 Thread Chuck Cleland
nimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing li

Re: [R] arcsine transformation

2008-04-30 Thread Chuck Cleland
ORE) : NaNs produced You might divide the values by 100 prior to asin(). I'm at a loss here and I would greatly appreciate any guidance that could be given me. Thank you! -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-449

Re: [R] If(cond) statement

2008-04-29 Thread Chuck Cleland
Or this: {if (mxx > mxy) mxy <- mxx else mxx <- mxy} __ 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. -- Chuck

Re: [R] Running regression (lm, lrm) 100+ times and saving the results as matrix

2008-04-29 Thread Chuck Cleland
self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mai

Re: [R] select rows from data based on a vector of char strings

2008-04-23 Thread Chuck Cleland
t[1]' I get 'F T F F', so it works for one item > in the char vector flist. > But, when I do 'data$label==flist' I get 'F F F F' while I expected 'F T F > T'. It seems that I can't perform this action with a vector of charstrings? > >

Re: [R] matrix problem

2008-04-21 Thread Chuck Cleland
t; the above. The matrices are large, so I need a fast method. > > Thanks very much for any help. > > Bill Simpson > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the po

Re: [R] Permanent change to the working directory

2008-04-18 Thread Chuck Cleland
. How can I set it definitively to "C:/R/DATA" without having to redo > it every session? Thanks ?Startup -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894

Re: [R] pnbinom.c qnorm.c

2008-04-17 Thread Chuck Cleland
gt; [[alternative HTML version deleted]] > > __ > 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, minima

Re: [R] Power curves

2008-04-14 Thread Chuck Cleland
On 4/14/2008 6:35 AM, Chuck Cleland wrote: > On 4/14/2008 6:21 AM, Louisa Hay wrote: >> >> Hi, >> I am trying to create a power curve to show how the power of a t-test varies >> depending on the mean. Any ideas how I should go about this? >> Louisa

Re: [R] Power curves

2008-04-14 Thread Chuck Cleland
__ > > > [[alternative HTML version deleted]] > > __ > 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

Re: [R] Matrix Indexing

2008-04-12 Thread Chuck Cleland
/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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New Yor

Re: [R] Format regression result summary

2008-04-11 Thread Chuck Cleland
> Thanks a lot in advance > > Thiemo > > __________ > 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] subtract the mean from each column

2008-04-10 Thread Chuck Cleland
mns have zero mean. any one > know how to do that . Thanks mymat <- matrix(runif(10*4), ncol=4) colMeans(mymat) [1] 0.4711083 0.4825977 0.4757448 0.3037873 newmat <- apply(mymat, 2, scale, scale=FALSE, center=TRUE) colMeans(newmat) [1] 1.110223e-17 -2.220446e-17 -1.110223e-17 1.11

Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Chuck Cleland
ix(iris[, 1:3]) ~ iris$Species) Coefficients: Sepal.Length Sepal.Width Petal.Length (Intercept) 5.006 3.4281.462 iris$Speciesversicolor 0.930-0.6582.798 iris$Speciesvirginica1.582-0.454 4.090 > Thank you > Kostas -- Chuck Cl

Re: [R] tapply

2008-04-08 Thread Chuck Cleland
> 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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 100

Re: [R] merge with rownames?

2008-04-03 Thread Chuck Cleland
cbinding the rownames to the data.frames. > Mark The details section of the help page for merge suggests you can use either merge(..., by=0) or merge(..., by="row.names"). ?merge -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 te

Re: [R] convert delimited string to vector

2008-03-31 Thread Chuck Cleland
_ > 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. -- Chuck C

Re: [R] Reverse seq

2008-03-31 Thread Chuck Cleland
o/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732)

Re: [R] maximum of identical elements in a vector

2008-03-30 Thread Chuck Cleland
.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. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th flo

Re: [R] directory of R "consultants for hire"

2008-03-29 Thread Chuck Cleland
http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0

Re: [R] Comparing proportions between groups

2008-03-28 Thread Chuck Cleland
me that there are not enough observations in x. > Could anyone help me? That would be really great. Thank you, > Lila prop.test(x=c(40,100), n=c(200,300)) OR prop.test(matrix(c(40,100,160,200), ncol=2)) ?prop.test -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 We

Re: [R] pseudo R square and/or C statistic in R logistic regression

2008-03-27 Thread Chuck Cleland
an/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. > > __ > R-help@r-project.org mailing list > https://stat.ethz.c

Re: [R] MDS

2008-03-23 Thread Chuck Cleland
t.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894

Re: [R] basic help

2008-03-20 Thread Chuck Cleland
__ > 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. -- C

Re: [R] locating minimum value in matrix

2008-03-15 Thread Chuck Cleland
.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __

Re: [R] How to get the value of last element in a vector/array ?

2008-03-15 Thread Chuck Cleland
ternative HTML version deleted]] > > __ > 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-c

Re: [R] Weighting data when running regressions

2008-03-10 Thread Chuck Cleland
Thank you in advance, > > Lena > > [[alternative HTML version deleted]] > > __ > 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] Finding Interaction and main effects contrasts for two-wayANOVA

2008-03-09 Thread Chuck Cleland
IL PROTECTED] >> >> Subject: [R] Finding Interaction and main effects contrasts >> >> for two-way ANOVA >> >> >> >> I've tried without success to calculate interaction and main effects >> >> contrasts using R. I've found the fu

Re: [R] Correlation matrix one side with significance

2008-03-06 Thread Chuck Cleland
**| 0.698**| 1.000 | I will leave the removing the upper triangle part to you - should be examples in the archives. > > > __ > R-help@r-project.org mailing list

Re: [R] Asking, are simple effects different from 0

2008-03-06 Thread Chuck Cleland
eans can be very different from 0 with no explanatory variable effects of any kind, based only on the overall location of the response. > I guess my question is, if I want to know if each of those is different from > 0, then should I use the 48df from the full model, or the 9 for each cell? &g

Re: [R] Asking, are simple effects different from 0

2008-03-05 Thread Chuck Cleland
means. > Also, here, it would seem each t-test was done with the full 48df. Hrm. The df are based on the whole model, not the 9 observations in one cell. > Chuck Cleland wrote: >> >>Each column corresponds to one of the coefficients in the model, and >> each row spec

Re: [R] Asking, are simple effects different from 0

2008-03-05 Thread Chuck Cleland
s you to print the design matrix for a contrast: contrast(fm, a=list(tension = "M", wool = "B"), b=list(tension = "H", wool = "B"))$X (Intercept) tensionM tensionH woolB tensionM:woolB tensionH:woolB 1 01 -1 0

Re: [R] Asking, are simple effects different from 0

2008-03-05 Thread Chuck Cleland
-- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 (Adjusted p values reported -- bonferroni method) > Sorry for the bonehead question, but it's a situation I haven't seen > before. > > -Jarrett > > ______ > R-help@r-p

Re: [R] subsetting a dataframe

2008-03-04 Thread Chuck Cleland
ical Center > 10 North Greene Street > GRECC (BT/18/GR) > Baltimore, MD 21201-1524 > (Phone) 410-605-7119 > (Fax) 410-605-7913 (Please call phone number above prior to faxing) > > Confidentiality Statement: > This email message, including any attachments, is for th...{{dropped:6}} > >

Re: [R] I need to buy a book in R

2008-03-03 Thread Chuck Cleland
sts are, one of the books on this list may meet your needs: http://www.r-project.org/doc/bib/R-books.html > Thanks -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (

Re: [R] Kaiser-Meyer-Olkin

2008-02-28 Thread Chuck Cleland
Kopp > http://analytic.tripod.com/ > [[alternative HTML version deleted]] > > __ > 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 co

Re: [R] how to convert a table to adjacency matrix used in social network analysis?

2008-02-27 Thread Chuck Cleland
d at plotting? For plotting I would look into the Rgraphviz package. Here is a simple diagram of the network: library(Rgraphviz) mygraph <- ftM2graphNEL(as.matrix(mydf[,1:2]), W=mydf$counts) plot(mygraph) I'm not sure how to incorporate the weights for each edge into the diagr

Re: [R] efficient is.na tabulation?

2008-02-25 Thread Chuck Cleland
-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __

Re: [R] Bootstrapping data with a regression model

2008-02-24 Thread Chuck Cleland
_ > 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. -- Chuck Cleland, Ph.D. NDR

Re: [R] Newbie: Where is lmFit function?

2008-02-24 Thread Chuck Cleland
te R as well. no luck > > Is there a command in R where i can just type, and it will download it for > me? RSiteSearch("lmFit") shows there is a function with that name in the limma package. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 1001

<    1   2   3   >