[R] Help Please!!!!!!!!!

Edwin Groot edwin.groot at biologie.uni-freiburg.de
Mon Nov 29 10:09:24 CET 2010


On Sun, 28 Nov 2010 21:29:08 -0800
 Melissa Waldman <melissawaldman at gmail.com> wrote:
> Hi,
> 
> I have been working with Program R for my stats class and I keep
> coming upon
> the same error, I have read so many sites about inputting data from a
> text
> file into R and I'm using the data to do a correspondence analysis.
>  I feel
> like I have read everything and it is still not explaining why the
> error
> message keeps coming up, I have used the exact examples I have seen
> in
> articles and the same error keeps popping up: Error in sum(N) :
> invalid
> 'type' (character) of argument
> 
> I have spent sooooooooooooo long trying to figure this out without
> success,
> I am sure it has to do with the fact that my rows have names in them.
>  I
> have attached the text file I have been using and if you have any
> ideas as
> to how I can get R to plot the data using correspondence analysis
> with the
> column and row names that would be really helpful!  Or if you could
> pass
> this email to someone who may know how to help me, that would be much
> appreciated.
> 
> Thank you,
> Melissa Waldman
> 
> my email: melissawaldman at gmail.com

Hello Melissa,
First of all, you need a descriptive subject, such as, "Cannot read
tabular data in R". R-help is a high-volume (100 to 200 messages per
day) and each person that can help you is a specialist in one or
another area.
Secondly, please include in your mail an excerpt of the relevant code
you used that read the data in and produced the error.

>From looking at your text file, I would delete the white space before
None, save the file, and use the following function to read your data
into a data.frame:

read.delim("smokedata.txt")

This assumes you used a tab character between each field.

HTH, Edwin
-- 
Dr. Edwin Groot, postdoctoral associate
AG Laux
Institut fuer Biologie III
Schaenzlestr. 1
79104 Freiburg, Deutschland
+49 761-2032945



More information about the R-help mailing list