Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rubenarslan/formr
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenarslan committed Jun 21, 2024
2 parents 1749146 + 5a0bfbd commit d3aca35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions R/connect_to_formr.R
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,7 @@ formr_simulate_from_items = function(item_list, n = 300) {
if (length(limits) == 3) {
by = limits[3]
sample_from = seq(from = limits[1], to = limits[2],
by = by,
ifelse( by > 0, -1 * by, by))
by = ifelse( by < 0, -1 * by, by))

sim[, item$name] = sample(sample_from, size = n,
replace = T)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ https://rubenarslan.github.io/formr

If you want to install the R package locally (e.g. to connect to formr and fetch the data in a nice format for you), run:

install.packages("devtools")
devtools::install_github("rubenarslan/formr")
install.packages("remotes")
remotes::install_github("rubenarslan/formr")

0 comments on commit d3aca35

Please sign in to comment.