Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Computational Earth Sciences
multiApply
Compare revisions
60ebb8925c52d37c8c769b3fdf3140cd862bb8d9...fb50c4c80205fd0121c2a1562b93df47e17c6e7c
Commits (4)
attribute dimnames reordered
· 0359300c
nperez
authored
Oct 31, 2019
0359300c
attributes can be length zero
· 58fbae69
nperez
authored
Oct 31, 2019
58fbae69
Merge branch 'master' into develop-dimnames
· 3837aa48
nperez
authored
Jan 21, 2021
3837aa48
Merge branch 'develop-dimnames' into 'master'
· fb50c4c8
Nuria Pérez-Zanón
authored
Jan 21, 2021
Develop dimnames See merge request
!23
fb50c4c8
Hide whitespace changes
Inline
Side-by-side
R/zzz.R
View file @
fb50c4c8
...
...
@@ -13,6 +13,11 @@
x
<-
x
[
as.vector
(
y
)]
}
dim
(
x
)
<-
old_dims
[
new_order
]
if
(
length
(
attr_bk
)
>
0
)
{
if
(
names
(
attr_bk
)
==
'dimnames'
)
{
attr_bk
<-
list
(
dimnames
=
attr_bk
$
dimnames
[
new_order
])
}
}
attributes
(
x
)
<-
c
(
attributes
(
x
),
attr_bk
)
x
}