2013-05-29 5 views

Répondre

4

Utilisation fill=TRUE:

a = read.table(textConnection('a b c d 
1 2 3 4 
a b c 
1 2 3 4','r'),header=T, fill=TRUE) 

a 
## a b c d 
## 1 1 2 3 4 
## 2 a b c NA 
## 3 1 2 3 4 
+0

merci pour la réponse rapide @MatthewLundberg –

Questions connexes