Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Earth Sciences
easyNCDF
Commits
b5cfb78b
Commit
b5cfb78b
authored
Oct 25, 2017
by
Nicolau Manubens
Browse files
Fix in Subset.
parent
27e64b6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/Subset.R
View file @
b5cfb78b
...
...
@@ -80,6 +80,10 @@ Subset <- function(x, along, indices, drop = FALSE) {
names
(
metadata
[[
'dim'
]])
<-
dim_names
[
-
dims_to_drop
]
metadata
[[
'dimensions'
]]
<-
dim_names
[
-
dims_to_drop
]
}
if
(
length
(
metadata
[[
'dim'
]])
==
0
)
{
metadata
[
'dim'
]
<-
list
(
NULL
)
metadata
[
'dimensions'
]
<-
list
(
NULL
)
}
}
else
if
(
is.character
(
dim_names
))
{
names
(
metadata
[[
'dim'
]])
<-
dim_names
metadata
[[
'dimensions'
]]
<-
dim_names
...
...
Write
Preview
Supports
Markdown
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