From 8989696dd1f8b2fcf4fc842563f7d5ab68d92fd1 Mon Sep 17 00:00:00 2001 From: Waldir Leoncio Date: Fri, 11 Dec 2020 12:32:41 +0100 Subject: [PATCH] Exported functions --- NAMESPACE | 2 ++ R/learn_partition_modified.R | 5 +++-- man/learn_partition_modified.Rd | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 0be8af8..8808d38 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -18,6 +18,7 @@ export(initPopNames) export(inputdlg) export(isfield) export(laskeMuutokset4) +export(learn_partition_modified) export(learn_simple_partition) export(linkage) export(logml2String) @@ -47,6 +48,7 @@ export(times) export(uigetfile) export(uiputfile) export(writeMixtureInfo) +import(utils) importFrom(methods,is) importFrom(stats,runif) importFrom(utils,read.delim) diff --git a/R/learn_partition_modified.R b/R/learn_partition_modified.R index c111c21..71d1a38 100644 --- a/R/learn_partition_modified.R +++ b/R/learn_partition_modified.R @@ -1,10 +1,11 @@ #' @title Learn partition (modified) +#' @export #' @param ordered ordered #' @return part -#' @description This function is called only if some individual has less than +#' @description This function is called only if some individual has less than #' 90 per cent non-missing data. The function uses fuzzy clustering for the #' "non-missingness" values, finding maximum three clusters. If two of the -#' found clusters are such that all the values are >0.9, then those two are +#' found clusters are such that all the values are >0.9, then those two are #' further combined. learn_partition_modified <- function(ordered) { part <- learn_simple_partition(ordered, 0.05) diff --git a/man/learn_partition_modified.Rd b/man/learn_partition_modified.Rd index a43c3f7..0ab76c0 100644 --- a/man/learn_partition_modified.Rd +++ b/man/learn_partition_modified.Rd @@ -13,9 +13,9 @@ learn_partition_modified(ordered) part } \description{ -This function is called only if some individual has less than +This function is called only if some individual has less than 90 per cent non-missing data. The function uses fuzzy clustering for the "non-missingness" values, finding maximum three clusters. If two of the -found clusters are such that all the values are >0.9, then those two are +found clusters are such that all the values are >0.9, then those two are further combined. }