search for: goframe

Displaying 1 result from an estimated 1 matches for "goframe".

Did you mean: noframe
2009 Aug 12
1
inserting into data frame gives "invalid factor level, NAs generated"
...m calculating some values that I am inserting into a data frame. From what I have read, creating the dataframe ahead of time is more efficient, since rbind (so far the only solution I have found to appending to a data frame) is not very fast. What I am doing is the following: # create data frame goframe = data.frame(goA = character(10), goB = character(10), value = numeric(10)) goframe[1,] = c("AA", "BB", 0.4) Result is: > goframe[1,] = c("AA", "BB", 0.4) Warning messages: 1: In `[<-.factor`(`*tmp*`, iseq, value = "AA") : invalid factor l...