Reference Guide > R Routines > REPLV Function
  

REPLV Function
Standard Library function that replicates a vector into an array.
 
note
This function does not work on strings.
Usage
result = REPLV(vector, dim_vector, dim)
Input Parameters
vectorThe vector to be replicated.
dim_vector—A vector specifying the dimensions of the output array.
dimAn integer (0) designating the dimension to replicate.
Returned Value
result—An array of dimensions dim_vector.
Keywords
None.
Examples
PM, REPLV([0,1], [2,4], 0)
; PV-WAVE prints:
;    0       0       0       0
;    1       1       1       1
PM, REPLV([0,1], [4,2], 1)
; PV-WAVE prints:
;    0       1
;    0       1
;    0       1
;    0       1
PM, REPLV([0,1], [4,2], 0)
; PV-WAVE prints:
;    0       0
;    1       1
;    0       0
;    1       1
See Also
EXPAND, REBIN, REPLICATE

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.