File tree Expand file tree Collapse file tree 3 files changed +17
-14
lines changed Expand file tree Collapse file tree 3 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 242
242
outIDs <- ids
243
243
outObs <- obs
244
244
245
+ # first, test that any column contains any value
246
+ if (! any(! is.na(obs [[1 ]]))) return (NULL )
247
+
245
248
uniqueIDs <- map(.x = seq_along(ids ), .f = function (ix ){
246
249
unique(unlist(ids [[ix ]]))
247
250
})
304
307
wideID [[1 ]] <- wideID [[1 ]] %> %
305
308
select(- all_of(naCol ))
306
309
}
307
-
308
310
}
309
311
tempDim <- dim(temp )
310
312
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ reorganise <- function(input = NULL, schema = NULL){
72
72
# ids = idVars[[i]]; obs = obsVars[[i]]; clust = clusterVar[i]; grp = groupVar[i]
73
73
tidyVars <- .tidyVars(ids = idVars [[i ]], obs = obsVars [[i ]],
74
74
clust = clusterVar [i ], grp = groupVar [i ])
75
+ if (is.null(tidyVars )) next
75
76
76
77
# put together the table
77
78
theTable <- bind_cols(tidyVars , .name_repair = " minimal" )
Original file line number Diff line number Diff line change 1
- 30.06.2021
2
-
3
- changing 'https://www.tidyverse.org/lifecycle/#maturing ' to 'https://lifecycle.r-lib.org/articles/stages.html '!
4
-
5
- 11.05.2020
6
-
7
- - fix crucial typo in DESCRIPTION
8
-
9
- 10.05.2020
10
-
11
- - More details in DESCRIPTION
12
- - Better description of all included functions
13
- - A descriptive example for each exported function (makeSchema, reorganise)
1
+ 30.06.2021
2
+
3
+ changing 'https://www.tidyverse.org/lifecycle/#maturing ' to 'https://lifecycle.r-lib.org/articles/stages.html '!
4
+
5
+ 11.05.2020
6
+
7
+ - fix crucial typo in DESCRIPTION
8
+
9
+ 10.05.2020
10
+
11
+ - More details in DESCRIPTION
12
+ - Better description of all included functions
13
+ - A descriptive example for each exported function (makeSchema, reorganise)
14
14
- proper description of return value for all functions
You can’t perform that action at this time.
0 commit comments