write_descriptives: Make descriptives of a list of numeric variables, and write...

Description Usage Arguments Value Examples

View source: R/write_descriptives.R

Description

Make descriptives of a list of numeric variables, and write it in excel all descriptives in a single table

Usage

1
2
3
4
5
6
write_descriptives(
  x,
  ...,
  folder_name = getwd(),
  name = "descriptives_of_variables.xlsx"
)

Arguments

x

a tbl() that contains the variables of interest, keyed by ID variable

...

list of variables names that would appear in output

folder_name

where would the output file will be saved (project's home by default).

Value

descriptives tbl

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data=tribble(~ID,~car_size,~height,
            "1",120,71,
             "2",110,81,
            "3",90,91,
             "4",80,120,
            "5",70,300,
             "6",60,1,
             "7",NA,80)

data %>%
   write_descriptives(car_size,height,folder_name = "R")

sarid-ins/saridr documentation built on Nov. 10, 2020, 9:07 p.m.