1. Section 2.6 Character Vectors of R-intro (www.r-project.org -> Manual -> Introduction to R) 2. Search the archives https://www.stat.math.ethz.ch/mailman/listinfo/r-help which is appended as footnote on every R-help mail 3. help("paste")
> -----Original Message----- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > .ch]On Behalf Of Koen Hufkens > Sent: 19 March 2004 13:06 > To: R help mailing list > Subject: [R] Beginners question > > > Dear list, > > I've been messing around with coding functions in R and it just > won't make > sense to me. > Running my analysis by hand on command line is fine and works but because > of the repetitive nature of the job I would like to code a > function for it. > > My problem: > > I would like to read in data from a file in my current working dir. > > so my code would look like: > > myanalysis <- function(sample, samplenr){ > sample.samplenr <- read.geodata("sample.samplenr", arg, arg etc.) > sample.samplenr.results <- someanalysis(sample.samplenr) > } > > problem is that charater values aren't interpretated as they should. Any > tips and tricks? This should be fairly simple but I just can't find any > reference to it. Most input values in functions in R are numeric or are > strings to be interpretated with bolean statements but aren't handled as > input variable perse. > > Suggestions and comments would be greatly appreciated, > Koen. > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html