a <- 1:120
b <- a[seq(1, length(a), 6)]
More Related Contents:
- R memory management / cannot allocate vector of size n Mb
- Split a vector into chunks
- Test if a vector contains a given element
- Counting the number of elements with the values of x in a vector
- How to find common elements from multiple vectors?
- How to convert a list consisting of vector of different lengths to a usable data frame in R?
- Create grouping variable for consecutive sequences and split vector
- How to tell what is in one vector and not another?
- Fastest way to find second (third…) highest/lowest value in vector or column
- How to divide each row of a matrix by elements of a vector in R
- Alternate, interweave or interlace two vectors
- else if(){} VS ifelse()
- Finding All Positions for Multiple Elements in a Vector
- Convert data.frame column to a vector?
- Convert Named Character Vector to data.frame
- Select every other element from a vector
- How to access the last value in a vector?
- How do keep only unique words within each string in a vector
- Test for equality among all elements of a single numeric vector
- List distinct values in a vector in R
- How do I extract just the number from a named number (without the name)?
- Insert blanks into a vector for, e.g., minor tick labels in R
- Convert a dataframe to a vector (by rows)
- Unlist a data frame by rows, not columns
- Count values separated by a comma in a character string
- R split numeric vector at position
- How do I map a vector of values to another vector with my own custom map in R [duplicate]
- Concatenate rows of a data frame
- How do you create vectors with specific intervals in R?
- R reshape a vector into multiple columns