Skip to content
Prev 309157 / 398506 Next

asking about R Code

You seem to be quite lost. You should execute one statement at a time, and troubleshoot from there. I suspect that your attempts to get your file in the right place went wrong, or the file is the wrong type of file for that function (regardless of the name you gave it).

As for giving you an explanation about read.pnm, I would rather not. There is documentation available on any library function using the "?" command in R, e.g.

?read.pnm

You should not have to "replace" files with other files in order to read them... you should be able to specify another name within the quotes. You may learn a bit about your current directory by using the getwd() function and the list.files() function. Once you have successfully read in the data, you can learn more about the object by following the useful hyperlinks in the documentation for read.pnm.

I highly recommend reading the Introduction to R pdf that is supplied with your R software, and then reading the posting guide mentioned at the bottom of any email on this list. If your project is of an academic nature, the posting guide will remind you that this is not the place to ask homework questions... that is for you to obtain from your educational institution.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
Ellen Praman <ellen.pramana91 at yahoo.com> wrote: