Skip to content

Commit

Permalink
Changed str_c() to paste0() in the vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
yhoriuchi committed Jul 15, 2023
1 parent 8c39cbf commit d4f835b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions vignettes/01-read-wrangle.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ vignette: >
## Test

```{r}
library(tidyverse)
library(projoint)
```

# Data with the flipped repeated tasks

```{r}
outcomes <- str_c("choice", seq(from = 1, to = 8, by = 1))
outcomes <- paste0("choice", seq(from = 1, to = 8, by = 1))
outcomes <- c(outcomes, "choice1_repeated_flipped")
out1 <- reshape_conjoint(.data = exampleData1,
.idvar = "ResponseId",
Expand Down
3 changes: 1 addition & 2 deletions vignettes/02-predict-irr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ vignette: >
Read, ...

```{r}
library(tidyverse)
library(projoint)
```

```{r}
outcomes <- str_c("choice", seq(from = 1, to = 8, by = 1))
outcomes <- paste0("choice", seq(from = 1, to = 8, by = 1))
out3 <- reshape_conjoint(.data = exampleData3,
.idvar = "ResponseId",
.outcomes = outcomes,
Expand Down
3 changes: 1 addition & 2 deletions vignettes/03-estimate-mm.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ vignette: >


```{r}
library(tidyverse)
library(projoint)
```


```{r}
outcomes <- str_c("choice", seq(from = 1, to = 8, by = 1))
outcomes <- paste0("choice", seq(from = 1, to = 8, by = 1))
outcomes <- c(outcomes, "choice1_repeated_flipped")
out1 <- reshape_conjoint(.data = exampleData1,
.idvar = "ResponseId",
Expand Down

0 comments on commit d4f835b

Please sign in to comment.