Displaying 7 results from an estimated 7 matches for "guanguan".
2013 Apr 12
5
how to change the date into an interval of date?
Hi,
I am not sure I understand your question correctly.
dat1<- read.table(text="
id??????????? responsed_at???????????????? number_of_connection????????????????? scores
1????????????????? 12-01-2010?????????????????????????????????? 1????????????????????????????????????????????? 2
1????????????????? 15-02-2010??????????????????????????????????
2013 May 07
4
how to calculate the mean in a period of time?
...=mean(y1$scores,na.rm=TRUE))}) ) }))
?row.names(res1)<-1:nrow(res1)
res1$period<-with(res1,ave(patient_id,patient_id,FUN=seq))
?res1
#? patient_id scores period
#1????????? 1?? 2.05????? 1
#2????????? 2?? 2.40????? 1
#3????????? 2?? 2.05????? 2
A.K.
________________________________
From: GUANGUAN LUO <guanguanluo at gmail.com>
To: arun <smartpink111 at yahoo.com>
Sent: Tuesday, May 7, 2013 11:29 AM
Subject: Re: how to calculate the mean in a period of time?
Yes ? as you have said, probably , it's not continuous.
2013/5/7 arun <smartpink111 at yahoo.com>
Hi,
>...
2013 May 27
0
choose the lines
...1
#7? 26????????? 3????? 6?? 2010-11-15? 5?? -2.525??????????? 0
#8? 27????????? 3????? 7?? 2010-12-18? 6?? -0.200??????????? 1
#9? 53????????? 5????? 9?? 2011-02-13? 8??? 0.000??????????? 0
#10 54????????? 5???? 10?? 2011-03-19? 9?? -1.200??????????? 1
A.K.
_______________________________
From: GUANGUAN LUO <guanguanluo at gmail.com>
To: arun <smartpink111 at yahoo.com>
Sent: Monday, May 27, 2013 8:48 AM
Subject: choose the lines
Hello, Arun,
in this data, i want to choose every line with the variable " evnmt_brutal"==1 & the precedent line( line-1) with "evnmt_...
2013 May 22
0
calcul of the mean in a period of time
...t;- res1[,-2]
res2$period<-with(res2,ave(patient_id,patient_id,FUN=seq_along))
?res2
# patient_id scores period
#1????????? 1?? 2.05????? 1
#2????????? 2?? 2.40????? 1
#3????????? 2?? 2.05????? 2
#4????????? 3?? 1.20????? 1
#5????????? 4?? 1.55????? 1
A.K.
________________________________
From: GUANGUAN LUO <guanguanluo at gmail.com>
To: arun <smartpink111 at yahoo.com>
Sent: Wednesday, May 22, 2013 5:42 AM
Subject: calcul of the mean in a period of time
Hello, AK, This is the code zhich you have written.
dat2<- read.table(text="
patient_id????? t???????? scores
1????????...
2013 Jun 04
0
choose the lines2
...at? t basdai_d evnmt_brutal
#75 75????????? 6???? 10?? 2011-03-09? 9???? 0.15??????????? 0
#76 76????????? 6???? 11?? 2011-04-11 10??? -0.45??????????? 1
#or
res11<-do.call(rbind,lapply(res1,function(x) tail(x,-1)))
row.names(res11)<-1:nrow(res11)
A.K.
________________________________
From: GUANGUAN LUO <guanguanluo at gmail.com>
To: arun <smartpink111 at yahoo.com>
Sent: Tuesday, June 4, 2013 2:10 PM
Subject: choose the lines2
13 2 12 2011/7/5 12 -1 0
14 2 13 2011/8/7 13 0.9 0
15 2 14 2011/9/11 14 -0.8 1
52 5 8 2011/1/11 7 -2.8 0
53 5 9 2011/2/13 8 0 0
54 5 10 2011/3/19 9...
2013 Jun 04
0
choose the lines2
...ed_at t basdai_d evnmt_brutal
#52 52????????? 5????? 8?? 2011-01-11 7???? -2.8??????????? 0
#53 53????????? 5????? 9?? 2011-02-13 8????? 0.0??????????? 0
#54 54????????? 5???? 10?? 2011-03-19 9???? -1.2??????????? 1
#
#[[2]]
?# [,1]
#2? 0.9
#5? 0.0
A.K.
________________________________
From: GUANGUAN LUO <guanguanluo at gmail.com>
To: arun <smartpink111 at yahoo.com>
Sent: Tuesday, June 4, 2013 3:54 AM
Subject: choose the lines2
Hello, Arun,?
now it is nearly the same problem.
I want to know if I want to choose three period : one line with evnmt_brutal ==0 , one line with evnmt_...
2013 Apr 29
1
how to add new rows in a dataframe?
Hi,
dat1<- read.table(text="
id??????????????? t???????????????????? scores
2???????????????? 0??????????????????????? 1.2
2???????????????? 2???????????????????????? 2.3
2???????????????? 3??????????????????????? 3.6
2???????????????? 4??????????????????????? 5.6
2???????????????? 6??????????????????????? 7.8
3???????????????? 0??????????????????????? 1.6
3????????????????