Function er_frame transforms the embedding and embedding attributes to a tibble of class embedR_tbl.

er_frame(embedding)

Arguments

embedding

a numeric matrix containing a text embedding.

Value

The function returns a tibble containing the embedding and its attributes.

References

Wulff, D. U., Aeschbach, S., Hussain, Z., & Mata, R. (2024). embeddeR. psyArXiv

Examples

if (FALSE) {
# embed, project, and frame
tbl <- er_embed(neo$text) %>%
  er_project() %>%
  er_frame()
}