Description Usage Arguments Value Examples
sims and similarities both calculate for each pair of source code objects
the similarity coefficients and return a data frame with the coefficients in descending order.
A larger coefficient means a greater similarity.
| 1 2 3 4 5 6 7 8 | 
| ... | all parameters in  | 
| docs | document object | 
| all | logical: should the similarity coefficients computed based on all sourcecode objects or just the two considered (default:  | 
| coeff | character: coefficient to compute (default:  | 
a data frame with the results
| 1 2 3 4 5 6 7 8 9 10 | # example files are taken from https://CRAN.R-project.org/package=SimilaR
files <- list.files(system.file("examples", package="rscc"), "*.R$", full.names=TRUE)
prgs  <- sourcecode(files, basename=TRUE)
docs  <- documents(prgs)
similarities(docs)
# further steps
# m  <- similarities(docs)
# df <- matrix2dataframe(m)
# head(df, n=20)
# browse(prgs, df, n=5)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.