search for: _alternating_

Displaying 1 result from an estimated 1 matches for "_alternating_".

2013 Feb 24
3
filling an array
Hi All I'm just wondering if there is a quick way of filling a way with the following. I want to declare array I with a specific length and then alternatively fill it with 10 zeros and 10 specified values: v<- 14 I <- c(0,length(t)) But in stead of just filling I with 0 I want 10 zeros and then 10 fourteens (i.e. the value in v) Hope that makes sense. Regards Jannetta --