Importing text file with many covariates

Hi All,
I am new to RMark, so I apologize if this is question is an "easy fix". I am attempting to import a tab-delimited text file that contains my capture history, frequency, and 965 individual covariates for an occupancy model. When using the "import.chdata" function without specifying field types for my covariates, the function works just fine except that all my covariates are imported as factors when they need to be numeric. Rather than typing "n" 965 times, I tried using the "rep" function to repeat "n" 965 times for the field types. However, when doing so I receive the following error:
Error in if (field.types[i - 1] == "f") data[, i] = as.factor(data[, i]) else if (field.types[i - : missing value where TRUE/FALSE needed
I can't seem to figure out why I receive this error message (and again, I apologize if it is something simple that I am overlooking). Below is the code I am using to import the data. Any assistance would be appreciated. Thanks!
test=import.chdata("test.txt",header=T,field.types=c(rep("n",965)))
I am new to RMark, so I apologize if this is question is an "easy fix". I am attempting to import a tab-delimited text file that contains my capture history, frequency, and 965 individual covariates for an occupancy model. When using the "import.chdata" function without specifying field types for my covariates, the function works just fine except that all my covariates are imported as factors when they need to be numeric. Rather than typing "n" 965 times, I tried using the "rep" function to repeat "n" 965 times for the field types. However, when doing so I receive the following error:
Error in if (field.types[i - 1] == "f") data[, i] = as.factor(data[, i]) else if (field.types[i - : missing value where TRUE/FALSE needed
I can't seem to figure out why I receive this error message (and again, I apologize if it is something simple that I am overlooking). Below is the code I am using to import the data. Any assistance would be appreciated. Thanks!
test=import.chdata("test.txt",header=T,field.types=c(rep("n",965)))