![]() The official Writing R Extensions describes how this works. If you need to have the files run in a certain order, you can use the Collate field in the DESCRIPTION file. By the time anything calls the aardvark() function, zebra() has already been defined. R files: # R/aardvark.RĮven if aardvark.R is run before zebra.R, the package will build just fine. By default, you shouldn't assume they're run in a specific order. Making texts in the diagonal cells in the “Genre Overlappings” section bold and add underlines: tab_style( style = cells_styles( text_decorate = "underline", text_weight = "bold"), locations = list( cells_data(columns=c(1), rows=c(1)), cells_data(columns=c(2), rows=c(2)), cells_data(columns=c(3), rows=c(3)), cells_data(columns=c(4), rows=c(4)), cells_data(columns=c(5), rows=c(5)), cells_data(columns=c(6), rows=c(6)) ))ĭisplaying the numbers in the “Genre Overlappings(%)” section in percentage format: fmt_percent( columns = vars(Drama.ratio, Comedy.ratio, Thriller.ratio, Romance.ratio, Action.ratio, Horror.When a package is built, every file in the R/ subdirectory is run, and then the objects they've created are part of the package. A more clever way is to use one of the upper or lower triangles for raw counts, and the other for percentages. ![]() The data in each section is symmetric, so I wasted almost half the data cells. ![]() How to read the table: For example, Drama (the first row) has 13008 movies (the first column), and 2639 of them are also under Comedy, which is 20.3% of the 13008 movies.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |