Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jalbert, Joe
JoeTools
Commits
f8a31d2c
Commit
f8a31d2c
authored
Aug 21, 2020
by
Jalbert, Joe
Browse files
Fixed simplifyAppend
parent
4a57ab38
Changes
1
Show whitespace changes
Inline
Side-by-side
R/JoeToolFunctions.R
View file @
f8a31d2c
...
...
@@ -27,7 +27,8 @@ simplifyAppend <- function(input) {
# y=as.numeric(ncol(input))
df
=
input
%>%
filter
(
!
is.nan
(
Diff
))
%>%
mutate
(
across
(
one_of
(
colnames
(
input
)[
match
(
"Signif"
,
colnames
(
input
))
+1
])
&
where
(
is.numeric
),
~
cut
(
.
,
breaks
=
c
(
0
,
.001
,
.01
,
.05
,
.1
,
.999
,
1
),
labels
=
c
(
"***"
,
"**"
,
"*"
,
"."
,
"NS"
,
"1"
))))
%>%
mutate
(
across
(
colnames
(
input
)[
match
(
"Signif"
,
colnames
(
input
))
+1
]
:
colnames
(
input
)[
length
(
colnames
(
input
))],
~
cut
(
.
,
breaks
=
c
(
0
,
.001
,
.01
,
.05
,
.1
,
.999
,
1
),
labels
=
c
(
"***"
,
"**"
,
"*"
,
"."
,
"NS"
,
"1"
))))
%>%
select
(
1
:
Signif
,
where
(
~
sum
((
.
%in%
c
(
"***"
,
"**"
,
"*"
,
"."
)))
>
0
))
}
...
...
@@ -136,6 +137,7 @@ report=function(df, Measures, Factor, paired=c("Try","Yes", "No")){
#' @export
#'
#' @examples
appendInteraction
=
function
(
report
,
df
,
Measures
,
Factor
,
Interaction
,
Simplify
=
T
){
p
=
NULL
anova
=
NULL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment