martinctc / rwa

Package for running Relative Weights Analysis in R
https://martinctc.github.io/rwa
12 stars 8 forks source link

RWA Export Result #14

Closed benediktwetzel closed 9 months ago

benediktwetzel commented 2 years ago

Thanks for your great work!

I m using this website and have an issue exporting my results. An export option is not displayed. Where you part of the development of this website? and could help me?

martinctc commented 9 months ago

Hi @benediktwetzel, the outputs can be accessed as data frames in R, which you can export in csv or Excel or in any other way you want.

An example could be:

library(rwa)
library(tidyverse)

rwa_output <-
  mtcars %>%
  rwa(outcome = "mpg",
      predictors = c("cyl", "disp", "hp", "gear"),
      applysigns = TRUE)

rwa_results <- rwa_output$result

rwa_results is the main data frame that you're most likely wanting to export.

You can then use:

Note that for the above, you will have to install the packages writexl or vivainsights to use those specific functions.