esident)))
> index[i]=min(which((president==unique(president)[i])==TRUE))
>
> index
>
> ##Generate table with first approvals
>
> first.approval=data.frame(cbind(index,president[index],approval[index]))
> names(first.approval)=c("Index","President","Approval")
> first.approval
>
&
sident[index],approval[index]))
names(first.approval)=c("Index","President","Approval")
first.approval
Cheers,
Daniel
-
cuncta stricte discussurus
---------
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Alexa
OTECTED] Im
Auftrag von Alexander Ovodenko
Gesendet: Sunday, March 30, 2008 9:47 PM
An: r-help@r-project.org
Betreff: [R] Finding a mean value of a variable holding a dummy
variablefixed
I have time-series data on approval ratings of British Prime Ministers. The
prime ministers dating from MacMillan onwa
3 matches
Mail list logo