-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added unary operator support for parsing and formatting
- Loading branch information
Showing
8 changed files
with
50 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-1 | ||
!TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-1 | ||
!TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
rows <- lapply( | ||
datanames, | ||
function(dataname) { | ||
parent <- teal.data::parent(joinkeys, dataname) | ||
rows <- | ||
lapply( | ||
datanames, | ||
function(dataname) { | ||
parent <- teal.data::parent(joinkeys, dataname) | ||
|
||
# todo: what should we display for a parent dataset? | ||
# - Obs and Subjects | ||
# - Obs only | ||
# - Subjects only | ||
# todo (for later): summary table should be displayed in a way that child datasets | ||
# are indented under their parent dataset to form a tree structure | ||
subject_keys <- if (length(parent) > 0) { | ||
names(joinkeys[dataname, parent]) | ||
} else { | ||
joinkeys[dataname, dataname] | ||
} | ||
get_object_filter_overview( | ||
filtered_data = filtered_data_objs[[dataname]], | ||
unfiltered_data = unfiltered_data_objs[[dataname]], | ||
dataname = dataname, | ||
subject_keys = subject_keys | ||
) | ||
} | ||
# todo: what should we display for a parent dataset? | ||
# - Obs and Subjects | ||
# - Obs only | ||
# - Subjects only | ||
# todo (for later): summary table should be displayed in a way that child datasets | ||
# are indented under their parent dataset to form a tree structure | ||
subject_keys <- | ||
if (length(parent) > 0) { | ||
names(joinkeys[dataname, parent]) | ||
} else { | ||
joinkeys[dataname, dataname] | ||
} | ||
get_object_filter_overview( | ||
filtered_data = filtered_data_objs[[dataname]], | ||
unfiltered_data = unfiltered_data_objs[[dataname]], | ||
dataname = dataname, | ||
subject_keys = subject_keys | ||
) | ||
} | ||
) | ||
|
||
unssuported_idx <- vapply(rows, function(x) all(is.na(x[-1])), logical(1)) # this is mainly for vectors |