-
Notifications
You must be signed in to change notification settings - Fork 0
/
fix_tibble_lists.Rd
30 lines (26 loc) · 1021 Bytes
/
fix_tibble_lists.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CodeAndRoll2.R
\name{fix_tibble_lists}
\alias{fix_tibble_lists}
\title{Convert List Columns of a Tibble to String Vectors}
\usage{
fix_tibble_lists(df, verbose = TRUE, print_full = FALSE, collapse_by = ",")
}
\arguments{
\item{df}{A tibble or data frame where list columns are to be converted.
Default: None, must be supplied by the user.}
\item{verbose}{Logical; whether to print progress messages. Default: TRUE.}
\item{print_full}{Logical; whether to print full details. Default: FALSE.}
\item{collapse_by}{The character used to collapse list elements. Default: ",".}
}
\value{
A tibble or data frame with list columns converted to string vectors.
}
\description{
Converts columns of type \code{list} in a tibble or data frame to string vectors.
It combines list elements into a single string per cell, using a specified separator.
}
\examples{
df <- tibble::tibble(a = list(1:2, 3:4, 5:6), b = c("A", "B", "C"))
fix_tibble_lists(df)
}