[R] sequences

Doran, Harold HDoran at air.org
Tue Jul 3 18:47:04 CEST 2007


Just take advantage of R's vectorized calculations as

x <- seq(1:600)

.8^x

Harold


> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of livia
> Sent: Tuesday, July 03, 2007 12:05 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] sequences
> 
> 
> Hi, I would like to generate a series in the following form 
> (0.8^1, 0.8^2, ..., 0.8^600) Could anyone tell me how can I 
> achieve that? I am really new to R.
> --
> View this message in context: 
> http://www.nabble.com/sequences-tf4019146.html#a11414836
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>



More information about the R-help mailing list