m <- matrix(c(2, 4, 3, 1, 5, 7), 2, 3, byrow=T)
as.vector(m)
or
c(m[1, 1:3], m[2, 1:3])
More Related Contents:
- Reshape three column data frame to matrix (“long” to “wide” format) [duplicate]
- Split a large dataframe into a list of data frames based on common value in column
- Multiply rows of matrix by vector?
- All Levels of a Factor in a Model Matrix in R
- How to divide each row of a matrix by elements of a vector in R
- Create group number for contiguous runs of equal values
- Subscript out of bounds – general definition and solution?
- Index values from a matrix using row, col indices
- How can I create a correlation matrix in R?
- Apply a function to every row of a matrix or a data frame
- R Loop for Variable Names to run linear regression model
- Rotate a Matrix in R by 90 degrees clockwise
- R – How to get row & column subscripts of matched elements from a distance matrix
- Block-diagonal binding of matrices
- Create dataframe from a matrix
- Finding row index containing maximum value using R
- How `poly()` generates orthogonal polynomials? How to understand the “coefs” returned?
- Function to split a matrix into sub-matrices in R
- Loop in R: how to save the outputs?
- R: Plotting a 3D surface from x, y, z
- how to create a loop that includes both a code chunk and text with knitr in R
- Last Observation Carried Forward In a data frame? [duplicate]
- Directly creating dummy variable set in a sparse matrix in R
- Create a loop that includes both a code chunk and text
- Find K nearest neighbors, starting from a distance matrix
- Calculate Euclidean distance matrix using a big.matrix object
- How to subset a matrix with different column positions for each row? [duplicate]
- R reshape a vector into multiple columns
- How to calculate adjacency matrices in R
- What does the error “arguments imply differing number of rows: x, y” mean?