Top "Strsplit" questions

strsplit is a function in R and MATLAB which splits the elements of a character vector around a given delimiter.

Split delimited strings in a column and insert as new rows

I have a data frame as follow: +-----+-------+ | V1 | V2 | +-----+-------+ | 1 | a,b,c | | 2 | a,c | | 3 | b,d | | 4 | …

r dataframe reshape data-manipulation strsplit
Non character argument in R string split function (strsplit)

This works x <- "0.466:1.187:2.216:1.196" y <- as.numeric(unlist(strsplit(x, ":"))) Values of blat$LRwAvg all look like …

string r for-loop strsplit
Chopping a string into a vector of fixed width character elements

I have an object containing a text string: x <- "xxyyxyxy" and I want to split that into a …

r strsplit
removing particular character in a column in r

I have a table called LOAN containing column named RATE in which the observations are given in percentage for example 14.49% …

r strsplit
Split a string by any number of spaces

I have the following string: [1] "10012 ---- ---- ---- ---- CAB UNCH CAB" I want to split this string by the …

r string strsplit
Create new column with dplyr mutate and substring of existing column

I have a dataframe with a column of strings and want to extract substrings of those into a new column. …

r dplyr strsplit
How to avoid a loop in R: selecting items from a list

I could solve this using loops, but I am trying think in vectors so my code will be more R-esque. …

list r vector strsplit
How to use the strsplit function with a period

I would like to split the following string by its periods. I tried strsplit() with "." in the split argument, but …

r strsplit
R - Using str_split and unlist to create two columns

I have a dataset that has dates and interest rates in the same column. I need to split these two …

r strsplit
R: how to display the first n characters from a string of words

I have the following string: Getty <- "Four score and seven years ago our fathers brought forth on this …

r string substr strsplit