Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
brivas
ICOADS R HOSTACE
Commits
6fb7720f
Commit
6fb7720f
authored
3 years ago
by
Richard Cornes
Browse files
Options
Download
Email Patches
Plain Diff
Fix bug in GDAC not being propogated
parent
c47aef94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
rscripts/split_by_type.R
rscripts/split_by_type.R
+3
-2
No files found.
rscripts/split_by_type.R
View file @
6fb7720f
...
...
@@ -113,7 +113,8 @@ for ( year in my_args[1]:my_args[2] ) {
mdata.gdac
$
pt
<-
5
# all GCC data should be from ships
mdata.gdac
$
dups
<-
NA
mdata.gdac
$
dck
<-
0
mdata.gdac
$
irf
<-
0
## Fill missing columns with NA
miss.cols
<-
colnames
(
mdata
)[
which
(
!
colnames
(
mdata
)
%in%
colnames
(
mdata.gdac
))]
mdata.gdac
[,
miss.cols
]
<-
NA
...
...
@@ -266,7 +267,7 @@ for ( year in my_args[1]:my_args[2] ) {
mdata
$
data.type
<-
ifelse
(
mdata
$
dck
==
151
&
mdata
$
lon
>=
260
&
mdata
$
lon
<=
270
&
mdata
$
yr
>=
1890
&
mdata
$
yr
<=
1919
,
"reject"
,
mdata
$
data.type
)
#print(table(mdata$data.type))
if
(
max
(
mdata
$
pt
)
==
99
)
{
cat
(
"PT problem"
)
print
(
table
(
mdata
$
pt
,
mdata
$
dck
))
...
...
This diff is collapsed.
Click to expand it.
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