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

______________________________________________
R-help@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.

Reply via email to