About 50 results
Open links in new tab
  1. How To Create Vector of Vector In R - Stack Overflow

    Mar 2, 2017 · How To Create Vector of Vector In R Asked 15 years, 5 months ago Modified 8 years, 9 months ago Viewed 49k times

  2. How do you create vectors with specific intervals in R?

    My question is how do you create a vector with specific intervals between its elements. For example, I would like to create a vector that has the values from 1 to 100 but only count in intervals of 5 so that I …

  3. r - Create a numeric vector with names in one statement ... - Stack ...

    Sep 24, 2011 · I'm trying to set the default value for a function parameter to a named numeric. Is there a way to create one in a single statement? I checked ?numeric and ?vector but it doesn't seem so. …

  4. How to initialize a vector with fixed length in R

    Feb 28, 2014 · How to initialize a vector with fixed length in R ?? For example, I want a vector of characters with length of 10??

  5. r - Create a Vector of All Days Between Two Dates - Stack Overflow

    Dec 30, 2011 · Is there an easy way in R for me to itemize all valid days that occurred between two specified dates? For instance, I'd like the following inputs: itemizeDates(startDate="12-30-11", …

  6. r - Convert data.frame column to a vector? - Stack Overflow

    This can be done for one column but is also possible if you want to convert all columns to one vector. Here is a reproducible example with first converting one column to a vector and second convert …

  7. r - Convert a row of a data frame to vector - Stack Overflow

    specifically, when you use t(df) R coerces the data frame to a matrix, in this case a numeric matrix because all the elements are numeric. Then [,1] extracts the first column (a numeric vector, because …

  8. r - How to make a vector using a for loop - Stack Overflow

    Jan 18, 2013 · Starting off @Arun's suggestion: better to start with x <- rep(NA,9); x[1] <- 3, then do the for loop. It is better to preallocate a vector of the correct length than to append a new element every …

  9. Getting a row from a data frame as a vector in R - Stack Overflow

    Oct 2, 2011 · Even after coercing the columns to character format, the data.frame "shell" needs to stripped-off to create a vector via a command like unlist. With a combination of dplyr and base R this …

  10. How to create a numeric vector of zero length in R

    Sep 27, 2012 · 4 Suppose you want to create a vector x whose length is zero. Now let v be any vector.