Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rdiagnosis
basicr
Commits
02d50660
Commit
02d50660
authored
Sep 04, 2019
by
Jean-Marie Lepioufle
Browse files
add information about number of NAs
parent
d0e40a30
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/basicr.R
View file @
02d50660
...
...
@@ -49,6 +49,7 @@ basic_ <- function(df,target){
res
<-
df
%>%
summarise
(
n
=
n
(),
n_na
=
as.numeric
(
length
(
which
(
is.na
(
targ
)))),
q_0
=
as.numeric
(
stats
::
quantile
(
targ
,
probs
=
0
,
na.rm
=
TRUE
)),
q_0_05
=
as.numeric
(
stats
::
quantile
(
targ
,
probs
=
0.05
,
na.rm
=
TRUE
)),
q_0_25
=
as.numeric
(
stats
::
quantile
(
targ
,
probs
=
0.25
,
na.rm
=
TRUE
)),
...
...
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