0

I am trying to get some descriptive stats from my data, however, I keep on getting Nan and NA when I run the code.

this is my code

describe_across(mediation_df_total, variables = c(friendship, engagement, satisfaction), functions = list(avg = mean, stdev = sd), pivot = TRUE)

this is what I receive when I run the code

A tibble: 3 × 3
  variable       avg stdev
  <chr>        <dbl> <dbl>
1 friendship     NaN    NA
2 engagement     NaN    NA
3 satisfaction   NaN    NA
Progman
  • 16,827
  • 6
  • 33
  • 48
  • 1
    function (x, file = "", control = c("keepNA", "keepInteger", "niceNames", "showAttributes")) { if (is.character(file)) if (nzchar(file)) { file <- file(file, "wt") on.exit(close(file)) } else file <- stdout() .Internal(dput(x, file, .deparseOpts(control))) } – Lyvonne Feb 24 '23 at 18:23

0 Answers0