Learn R Programming

matricks (version 0.8.2)

v: A shortcut to create a vertical vector

Description

This function provides convenient shortcut to create a vertical (column) vector.

Usage

v(...)

Arguments

...

arbitrary number of values

Value

matrix with dims n_elements x 1

Examples

Run this code
# NOT RUN {
# Enumerating all the values with commas
v(1, 2, 3)
# Passing whole sequence as an argument
v(1:5)
# }

Run the code above in your browser using DataLab