changeset 33:44863636466c

Remove aggregated column.
author Christopher Hummersone <c.hummersone@surrey.ac.uk>
date Thu, 30 Mar 2017 09:00:50 +0100
parents a02a9561febf
children 820fd7543e32
files MASSEFresults.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MASSEFresults.m	Wed Mar 29 22:24:20 2017 +0100
+++ b/MASSEFresults.m	Thu Mar 30 09:00:50 2017 +0100
@@ -181,6 +181,9 @@
         %       - 'value' - Filters the data according to the value. The
         %         parameter should be a function handle that takes the
         %         value as its input, and returns a logical value.
+        %   
+        %   If using the 'mean' or 'max' option, the respective variable is
+        %   removed from the output.
             
             assert(mod(length(varargin),2)==0,'MASSEFresults:filter:invalidArgs','input must contain parameter/value pairs')
             data = obj.data;
@@ -372,6 +375,7 @@
                 [~, ia, ib] = intersect(filteredTable(:,keys), dataTable(:,keys));
                 dataTable.value(ib) = filteredTable.value(ia);
                 dataTable = dataTable(ib, :);
+                dataTable(:, col) = [];
             else
                 % normal filter function
                 dataTable = obj.filterRows(dataTable,filterval,col);