I like these suggestions as well

http://www1.maths.lth.se/help/R/RCC/

So for your function, combining the x and y coords into a single structure (
they are always paired so have a structure that reflects that )

dataToShape <- function( inputFileName, outputFileName, points, projection,
height)

And to be even more explicit you would want your function name to start with
a verb.
transformDataToShape. and lastly you might consider how to abtract your
functions into more reusable parts.

so one function to read your data in. and a different function to write
Shapes out

writeShape(x,outputFileName)


On Mon, Sep 13, 2010 at 12:09 PM, gianni lavaredo <gianni.lavaredo@gmail.com
> wrote:

> dear Researchers,
>
> I am writing a function to improve my skills in R and make more elegant
> code
> but I need a simple suggestion, because I am looking libraries to learn the
> right syntax.
> Is It correct to name the input file "Input" (with uppercase i) and Output
> file "Output" or "filename"?
>
> thanks Gianni
>
>
> data2shp <- function(
>        Input,
>        Output,
>        coord.X,
>        coord.Y,
>        Projection,
>        Height
> ) ...................................
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

