[R] Biologist R learner

Berend Hasselman bhh at xs4all.nl
Mon Nov 19 17:29:43 CET 2012


On 19-11-2012, at 15:32, andrew wrote:

> I am a Biologist and a beginner, please help me to solve this: please
> anyone..its my homework and I dont have a clue abt R yet..
>   Write a function which does the following tasks:
> 
> (a) Calculates minimum and maximum value of a given argument x.
> (b) If x is positive, some new vector gets the value of TRUE, and FALSE
> otherwise.
> (c) Creates a vector where the i:th and (i-1):th values of x are always
> summed. First value of
> the new vector has the same value as the first component of x. Use the
> created function to
> some vector x to show that the function works.
> 

Please read the posting guide:  http://www.r-project.org/posting-guide.html
R-help is not for homework.
Read the introductory manual "An Introduction to R" (links are on the page for the posting guide.)

Berend




More information about the R-help mailing list