Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Alec L. Robitaille
irg
Commits
8296eacf
Commit
8296eacf
authored
May 21, 2019
by
Alec L. Robitaille
🚲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm NAs in calc_irg
parent
9879e5d9
Pipeline
#62470145
passed with stage
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
R/irg.R
R/irg.R
+3
-1
No files found.
R/irg.R
View file @
8296eacf
...
...
@@ -85,7 +85,9 @@ calc_irg <-
check_col
(
DT
,
id
,
'id'
)
check_col
(
DT
,
year
,
'year'
)
DT
[,
irg
:=
(
irg
-
min
(
irg
))
/
(
max
(
irg
)
-
min
(
irg
)),
DT
[,
irg
:=
(
irg
-
min
(
irg
,
na.rm
=
TRUE
))
/
(
max
(
irg
,
na.rm
=
TRUE
)
-
min
(
irg
,
na.rm
=
TRUE
)),
by
=
c
(
id
,
year
)]
}
...
...
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