You can use ‘separate_rows’ from “tidyr” package:
df = separate_rows(df,1,sep = ",")
More Related Contents:
- Repeat each row of data.frame the number of times specified in a column
- Filter data.frame rows by a logical condition
- Split column at delimiter in data frame [duplicate]
- Pass a data.frame column name to a function
- How to convert a list consisting of vector of different lengths to a usable data frame in R?
- Select groups based on number of unique / distinct values
- Assign multiple columns using := in data.table, by group
- Filtering a data frame on a vector [duplicate]
- How to replace NA values in a table for selected columns
- Selecting multiple odd or even columns/rows for dataframe
- Sample n random rows per group in a dataframe
- Deleting reversed duplicates with R
- Select every nth row from dataframe
- Remove Rows From Data Frame where a Row matches a String
- duplicates in multiple columns
- R – add column that counts sequentially within groups but repeats for duplicates
- Extend contigency table with proportions (percentages)
- R self reference
- Change row order in a matrix/dataframe
- Convert summary to data.frame
- Unlist a data frame by rows, not columns
- Deleting columns from a data.frame where NA is more than 15% of the column length [duplicate]
- Using lapply to apply a function over list of data frames and saving output to files with different names
- DT[!(x == .)] and DT[x != .] treat NA in x inconsistently
- Row-wise sum of values grouped by columns with same name
- Convert a data frame to a data.table without copy
- How can I merge more than 2 dataframes in R by rownames?
- Shifting a column down by one
- Identifying where value changes in R data.frame column
- What is the first column in R’s mtcars dataset?