We were trying to write the results from a for loop. We tried to use write.table, as.data.frame and other solutions, but with no success. We expect to have a data frame.
Currently we have only the loop, that shows year and values from a matrix which are bigger than 50. Looks like that:
for (i in 1:nrow(dobowe1)) {
  if(dobowe1[i,4]>50) {
    cat(dobowe1[i,"rok"],dobowe1[i,4], "\n")
  }
}
Note: We don't do programming a lot, so it's hard to use other solutions from the questions that already beed asked.
 
     
     
    