turn_values_randomly | R Documentation |
Turns x% of 1 into 2 and y% 1 into 0 to mimick expert's desagreement.
turn_values_randomly(data_links, percentage, binary = TRUE)
data_links |
a dataframe with links bewteen targets -in columns- and NCS -in rows-, use sheets_to_df |
percentage |
percentage -from 0 to 1- of values that match to be replaced |
binary |
if statement to turn all values 2 into values 1 for binary analysis |
a dataframe with modified values for a given number of matrices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.