1
Aşağıdaki veri nesnesine sahibim. Nesne adı aşağıdaki gibi I koddata.frame'in atomik vektöre dönüştürülmesi
for(i in 1:7){
h[i]<-as.numeric(seoul1[2,][[i]])
}
ama sonuç 'için' kullanılan
tamsayı veya çift oluşan atomik vecter bu verileri dönüştürme için
V3 V4 V5 V6 V7 V8 V9
531 789 894 1,447 1,202 1,186 501
typeof = list, class = data.frame
seoul1 olan
for(i in 1:7){
h[i]<-as.numeric(seoul1[2,][[i]])
}
Warning messages:
1: NAs introduced by coercion
2: NAs introduced by coercion
3: NAs introduced by coercion
print(h)
[1] 531 789 894 NA NA NA 501
bu hatanın neden oluştuğunu bilmiyorum,
sub
kullanımı ("1447")' ... – jogo