Displaying 1 result from an estimated 1 matches for "yetanotherframe".
2000 Nov 25
2
assigning to data frames with whole columns of NAs
...yframe
   a  b
1 NA NA
2 NA NA
> anotherframe<-data.frame(a=c(8,9),b=c(NA,NA))
> anotherframe
  a  b
1 8 NA
2 9 NA
> anotherframe[1,]<-c(1,2)
Warning message: 
invalid factor level, NAs generated in: [<-.factor(*tmp*, iseq, value = vjj) 
> anotherframe
  a  b
1 1 NA
2 9 NA
> yetanotherframe<-data.frame(a=c(8,NA),b=c(9,NA))
> yetanotherframe
   a  b
1  8  9
2 NA NA
> yetanotherframe[1,]<-c(1,2)   #  no problem with this one
> yetanotherframe
   a  b
1  1  2
2 NA NA
> version
         _                
platform i686-pc-linux-gnu
arch     i686             
os       lin...