read.pnm question
On Mar 22, 2013, at 13:21 , Erin Hodgess wrote:
In R-beta (Masked Marvel), when I do the example from the read.pnm help
file, this is what happens:
x <- read.pnm(system.file("pictures/logo.pgm",package="pixmpap")[1])
"pixmpap"? Any chance of a typo? -pd
Warning message: In rep(cellres, length=2): x is NULL so the result will be NULL In R-2.15.3, it's all right. Thanks, Erin On Fri, Mar 22, 2013 at 2:13 AM, Michael Weylandt < michael.weylandt at gmail.com> wrote:
On Mar 22, 2013, at 4:04, Erin Hodgess <erinm.hodgess at gmail.com> wrote: Dear R People: I am trying to replicate a cool example that I saw on the R-bloggers some time ago by kafka399. Here are the lines tI think may be causing the trouble: gray_file <- read.pnm(path) pos[i,] <- c(gray_file at grey) Hi Erin, This is basically impossible to debug as is -- though I do note you spell that color between white and black inconsistently; could you please put some effort into making a true reproducible example or, at the very least, linking to the project you are attempting to replicate? Michael http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example The warning error that I get is "In rep(cellres, length=2): x is NULL so the result will be NULL Any suggestions would be much appreciated. Thanks, Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Peter Dalgaard, Professor Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com