0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【R】データ集計(未編集)

Posted at

h_num_list<-(1:100)

#start_MOR
start_MOR<-data.frame()

for (list_num in h_num_list) {

h_num_data<-table[table$h_num==h_num,]
h_num_data_start<-h_num_data[1,]$MOR
start_tmp<-data.frame(list_num)
colnames(start_tmp)<-c("start")
start_MOR<-rbind(start_MOR,start_tmp)
}

#end_MOR
end_MOR<-data.frame()

for (list_num in h_num_list) {

h_num_data<-table[table$h_num==h_num,]
end_row<-nrow(h_num_data)
h_num_data_start<-h_num_data[end_row,]$MOR
end_tmp<-data.frame(list_num)
colnames(end_tmp)<-c("end")
}

#start_O
start_O<-data.frame()

for (list_num in h_num_list) {

h_num_data<-table[table$h_num==h_num,]
h_num_data_start<-h_num_data[1,]$MOR
start_tmp<-data.frame(list_num)
colnames(start_tmp)<-c("start")
}

for (h_data in h_list) {

}

h_start<-
h_cp<-
h_cp_data<-rbind(h_start,h_cp)
row_num<-nrow(h_cp_data)

o_diff<-data.frame()

for(h_list in 1:(row_num-1){

diff<-h_cp_data[(h_list+1),]$O-h_cp_data[h_list,]$O 

data.frame(diff)
cbind()

}
bind_rows()

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?