Re: [R] invalid factor level, NAs generated

2010-07-16 Thread Jared Stabach
Yes, this is problem. Thanks for the suggestion. I had deleted the N/A values later in the script but should have taken care of them in this first step. Thanks very much Jared On Fri, Jul 16, 2010 at 4:11 PM, Peter Ehlers wrote: > On 2010-07-16 13:38, Jared Stabach wrote: > >> I've seen a f

Re: [R] invalid factor level, NAs generated

2010-07-16 Thread Peter Ehlers
On 2010-07-16 13:38, Jared Stabach wrote: I've seen a few threads about this, but none that seem to answer my problem I have a list of .txt files in a directory that I am reading into R and row binding together. I am using the following code to do so: # Directory where files are found my.txt.f

Re: [R] invalid factor level, NAs generated

2010-07-16 Thread Dennis Murphy
Hi Jared: Is it possible you're using read.table with variable names in line 1 but not using header = TRUE as an argument? HTH, Dennis On Fri, Jul 16, 2010 at 12:41 PM, Erik Iverson wrote: > > > > >> I think I have identified the problem such that when I identify the >> structure of some of t

Re: [R] invalid factor level, NAs generated

2010-07-16 Thread Erik Iverson
I think I have identified the problem such that when I identify the structure of some of the files that I am reading in, columns are labeled as "Factors". In other files, the same columns are labeled as numeric values. Is there a way to assign the data structure to these columns in the dataf

[R] invalid factor level, NAs generated

2010-07-16 Thread Jared Stabach
I've seen a few threads about this, but none that seem to answer my problem I have a list of .txt files in a directory that I am reading into R and row binding together. I am using the following code to do so: # Directory where files are found my.txt.file.directory <- "C:/Jared/Data/Kenya/Wildeb