-
Notifications
You must be signed in to change notification settings - Fork 12
/
unnest_all.Rd
80 lines (74 loc) · 2.61 KB
/
unnest_all.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/odata_submission_rectangle.R
\name{unnest_all}
\alias{unnest_all}
\title{Recursively unnest_wide all list columns in a tibble.}
\usage{
unnest_all(
nested_tbl,
names_repair = "universal",
names_sep = "_",
form_schema = NULL,
verbose = get_ru_verbose()
)
}
\arguments{
\item{nested_tbl}{A nested tibble}
\item{names_repair}{The argument \code{names_repair} for
\code{tidyr::unnest_wider}, default: "universal".}
\item{names_sep}{The argument \code{names_sep} for
\code{tidyr::unnest_wider}, default: "_".
Un-nested variables inside a list column will be prefixed by the list
column name, separated by \code{names_sep}. This avoids unsightly repaired
names such as \code{latitude...1}. Set to \code{NULL} to disable prefixing.}
\item{form_schema}{An optional form_schema,
like the output of \code{\link{form_schema}}. If a form schema is supplied,
location fields will not be unnested. While WKT location fields contain
plain text and will never be unnested, GeoJSON location fields would cause
errors during unnesting.}
\item{verbose}{Whether to display debug messages or not.
Read \code{vignette("setup", package = "ruODK")} to learn how \code{ruODK}'s
verbosity can be set globally or per function.}
}
\value{
The un-nested tibble in wide format
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#stable}{\figure{lifecycle-stable.svg}{options: alt='[Stable]'}}}{\strong{[Stable]}}
}
\details{
\code{\link{odata_submission_rectangle}} uses this function
internally.
Interested users can use this function to break down \code{ruODK}'s automated
steps into smaller components.
The quite verbose output of \code{tidyr::unnest_wider} is captured
and hidden from the user.
}
\seealso{
Other utilities:
\code{\link{attachment_get}()},
\code{\link{attachment_link}()},
\code{\link{attachment_url}()},
\code{\link{drop_null_coords}()},
\code{\link{form_schema_parse}()},
\code{\link{get_one_attachment}()},
\code{\link{get_one_submission}()},
\code{\link{get_one_submission_att_list}()},
\code{\link{get_one_submission_audit}()},
\code{\link{handle_ru_attachments}()},
\code{\link{handle_ru_datetimes}()},
\code{\link{handle_ru_geopoints}()},
\code{\link{handle_ru_geoshapes}()},
\code{\link{handle_ru_geotraces}()},
\code{\link{isodt_to_local}()},
\code{\link{odata_submission_rectangle}()},
\code{\link{predict_ruodk_name}()},
\code{\link{prepend_uuid}()},
\code{\link{split_geopoint}()},
\code{\link{split_geoshape}()},
\code{\link{split_geotrace}()},
\code{\link{strip_uuid}()},
\code{\link{tidyeval}}
}
\concept{utilities}
\keyword{internal}