Skip to content
Prev 282611 / 398500 Next

error when extracting from a data frame

On Jan 17, 2012, at 4:56 PM, Jean V Adams wrote:

            
And if you want to avoid getting all the rows where data$Station are  
NA,  then use either of these alternatives resulting in what I expect  
and generally want to see as a result:

  data.station1 <- subset( data, Station==1 )
  data.station1 <- data[ which(data$Station==1) , ]