[R] Clarification about data/weekday conversion

2015-06-02 Thread t.k. t.k.
Hi everyone This is a general question. I have imported a "Dates" variable as character. I used the "as.Date" command and convert it to Date,format.. I want to change the display of the date to weekday (e.g., I want my time series to be instead of 15-04-2010 as Friday-04-2010). I used the "format"

Re: [R] Help needed in R

2008-03-03 Thread T.K.
,0,0,0),49,2) > > ## Function definition > find.n <- function(cutoff, x=data1){ + x1 <- x[,1] + x2 <- x[,2] + sum(x1 < cutoff | ((x1 == cutoff )& (x2==1))) + } > > ## Use the function > sapply(c(1, 2, 5, 10, 15), find.n) [1] 2 11 33 43 46 -- =

Re: [R] adding group totals to a table

2007-12-10 Thread T.K.
Oops. please ignore my first reply. I mis-read the question and the code was messed up because I change the object name in the middle. Sorry for any confusion. :) -- == T.K. (Tae-kyun) Kim Ph.D. student Department of Marketing Marshall School of Business

Re: [R] adding group totals to a table

2007-12-10 Thread T.K.
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. > -- == T.K. (Tae-kyun) Kim Ph.D. student Department of Marketing

Re: [R] Learning to do randomized block design analysis

2007-12-05 Thread T.K.
kay to solve Kevin's question simply by using aov(Score.changes ~ Therapy + Block, data=table) assuming the fixed effects of 'block'. I would appreciate your correction if I am mistaken here. == T.K. (Tae-kyun) Kim Ph.D. student Department of Marke

Re: [R] Learning to do randomized block design analysis

2007-12-04 Thread T.K.
I agree that it is better to use your way. However, in my defense, I thought simply how to recover the specific numbers that Kevin wants to get. > I don't understand why R doesn't output a value for F and Pr for the > Error (Block) dimension, as my textbook shows 12.807 and 0.0015 > respectively.

Re: [R] Learning to do randomized block design analysis

2007-12-04 Thread T.K.
I found that you can do the same thing with 'aov' as well. Sorry for any confusion. :) > model.aov <- aov(Score.changes ~ Therapy + Block, data=table1) > summary(model.aov) Df Sum Sq Mean Sq F value Pr(>F) Therapy 2 260.93 130.47 15.259 0.001861 ** Block4 438.00 109.5

Re: [R] Learning to do randomized block design analysis

2007-12-04 Thread T.K.
oup manager > Center for Communication Programs > Bloomberg School of Public Health > Johns Hopkins University > 111 Market Place, Suite 310 > Baltimore, Maryland 21202 > 410-659-6139 > > ___

Re: [R] Help with tables

2007-12-03 Thread T.K.
++++ > > >8 I 8 I 6 I 4 I 4 I22 > > > Amigdalitis IIIII 4.6 > > > +++++ > > >

Re: [R] Help with tables

2007-12-01 Thread T.K.
dents > > 480 valid cases; 0 missing cases > > > > Act. Calef Alejandro Rodríguez Cuevas > Analista de mercado > > Laboratorios Farmasa S.A. de C.V. > Schwabe Mexico, S.A. de C.V. > > Bufalo Nr. 27 > Col. del Valle 03100 > Mexico, D.F. &g

Re: [R] Re place values in Data matrix

2007-11-27 Thread T.K.
this message in context: > http://www.nabble.com/Replace-values-in-Data-matrix-tf4879255.html#a13963177 > 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 post