From berryboessenkool at hotmail.com  Mon Feb  3 13:43:18 2014
From: berryboessenkool at hotmail.com (Berry Boessenkool)
Date: Mon, 3 Feb 2014 13:43:18 +0100
Subject: [Rd] seq range argument
Message-ID: <DUB123-W38EA0ACC05B6A132C636B0D5AB0@phx.gbl>

Hello dear developers,

I find myself often having the result of "range" oder "extendrange", which I want to create a sequence with.
But "seq" needs two seperate arguments "from" and "two".
Could an argument "range" be added?

Otherwise I will have to create an object with the range (may come from a longer calculation), index twice from it and remove it again - kind of an unnecessary bunch of code, I think.

Here's an example:

# What I currently do:
D_orig <- rnorm(20, sd=30)
D_range <- extendrange(D_orig, f=0.1)
Ijustneed <- seq(D_range[1], D_range[2], len=100)
rm(D_range)

# what I'd like to have instead:
D_orig <- rnorm(20, sd=30)
Ijustneed <- seq(range=extendrange(D_orig, f=0.1), len=100)

regards,
Berry

-------------------------------------
Berry Boessenkool
Potsdam, Germany
------------------------------------- 		 	   		  


[Rd] seq range argument
Berry Boessenkool