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"
,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
--
=
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
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
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
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.
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
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
>
> ___
++++
> > >8 I 8 I 6 I 4 I 4 I22
> > > Amigdalitis IIIII 4.6
> > > +++++
> > >
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
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
11 matches
Mail list logo