-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from weirichs/cran_submission_0.7.6
Cran submission 0.7.6
- Loading branch information
Showing
16 changed files
with
66 additions
and
68 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
Package: eatTools | ||
Type: Package | ||
Title: Miscellaneous Functions for the Analysis of Educational Assessments | ||
Version: 0.7.5 | ||
Depends: R (>= 4.0.0) | ||
Imports: | ||
stats, | ||
data.table, | ||
stringi, | ||
checkmate | ||
Authors@R: c( | ||
person("Sebastian", "Weirich", email = "sebastian.weirich@iqb.hu-berlin.de", role = c("aut", "cre")), | ||
person("Martin", "Hecht", role = c("aut")), | ||
person("Karoline", "Sachse", role = c("aut")), | ||
person("Benjamin", "Becker", role = c("aut")), | ||
person("Nicole", "Mahler", role = c("aut")), | ||
person("Edna", "Grewers", role = c("ctb"))) | ||
Description: | ||
Miscellaneous functions for data cleaning and data analysis of educational assessments. Includes functions for descriptive | ||
analyses, character vector manipulations and weighted statistics. Mainly a lightweight dependency for the packages 'eatRep', | ||
'eatGADS', 'eatPrep' and 'eatModel' (which will be subsequently submitted to 'CRAN'). | ||
The function for defining (weighted) contrasts in weighted effect coding refers to | ||
te Grotenhuis et al. (2017) <doi:10.1007/s00038-016-0901-1>. | ||
Functions for weighted statistics refer to | ||
Wolter (2007) <doi:10.1007/978-0-387-35099-8>. | ||
License: GPL (>= 2) | ||
URL: https://github.com/weirichs/eatTools | ||
Suggests: | ||
testthat, | ||
covr | ||
NeedsCompilation: no | ||
Package: eatTools | ||
Type: Package | ||
Title: Miscellaneous Functions for the Analysis of Educational Assessments | ||
Version: 0.7.6 | ||
Depends: R (>= 4.0.0) | ||
Imports: | ||
stats, | ||
data.table, | ||
stringi, | ||
checkmate | ||
Authors@R: c( | ||
person("Sebastian", "Weirich", email = "sebastian.weirich@iqb.hu-berlin.de", role = c("aut", "cre")), | ||
person("Martin", "Hecht", role = c("aut")), | ||
person("Karoline", "Sachse", role = c("aut")), | ||
person("Benjamin", "Becker", role = c("aut")), | ||
person("Nicole", "Mahler", role = c("aut")), | ||
person("Edna", "Grewers", role = c("ctb"))) | ||
Description: | ||
Miscellaneous functions for data cleaning and data analysis of educational assessments. Includes functions for descriptive | ||
analyses, character vector manipulations and weighted statistics. Mainly a lightweight dependency for the packages 'eatRep', | ||
'eatGADS', 'eatPrep' and 'eatModel' (which will be subsequently submitted to 'CRAN'). | ||
The function for defining (weighted) contrasts in weighted effect coding refers to | ||
te Grotenhuis et al. (2017) <doi:10.1007/s00038-016-0901-1>. | ||
Functions for weighted statistics refer to | ||
Wolter (2007) <doi:10.1007/978-0-387-35099-8>. | ||
License: GPL (>= 2) | ||
URL: https://github.com/weirichs/eatTools | ||
Suggests: | ||
testthat, | ||
covr | ||
NeedsCompilation: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
### Matrix dreieckig machen | ||
makeTria <- function(dfr) { | ||
dfr <- makeDataFrame(dfr) | ||
cols <- sort(sapply(dfr[,-1, drop=FALSE], | ||
FUN = function (d) {min(which(!is.na(d))) })) | ||
dfr <- dfr[,c(colnames(dfr)[1], names(cols))] | ||
rows <- sort(apply(dfr[,-1], MARGIN = 1, | ||
FUN = function (d) {max(which(!is.na(d)))}), decreasing=FALSE, index.return=TRUE)[["ix"]] | ||
dfr <- dfr[rows,] | ||
checkmate::assert_character(dfr[,1], unique = TRUE) | ||
cols <- sort(sapply(dfr[,-1, drop=FALSE], FUN = function (d) {length(which(is.na(d))) })) | ||
stopifnot(all(cols == 0:(ncol(dfr)-2))) | ||
rows <- sort(apply(dfr[,-1], MARGIN = 1, FUN = function (d) {length(which(is.na(d)))}), decreasing = TRUE, index.return=TRUE) | ||
stopifnot(all(sort(rows[["x"]]) == 0:(nrow(dfr)-1))) | ||
dfr <- dfr[rows[["ix"]],c(colnames(dfr)[1], names(cols))] | ||
rownames(dfr) <- NULL | ||
return(dfr)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters