RE: [R] Beginners question

About this list Date view Thread view Subject view Author view Attachment view

From: Adaikalavan Ramasamy (ramasamy@cancer.org.uk)
Date: Sat 20 Mar 2004 - 01:22:13 EST


Message-id: <ODEPICOHNDBJEHIFCIMPGEKBCBAA.ramasamy@cancer.org.uk>

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:
> r-help-bounces+adaikalavan.ramasamy=cancer.org.uk@stat.math.ethz.ch
> [mailto:r-help-bounces+adaikalavan.ramasamy=cancer.org.uk@stat.math.ethz
> .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.
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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

______________________________________________
R-help@stat.math.ethz.ch 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


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Fri 23 Apr 2004 - 18:36:38 EST