File: isempty.m

package info (click to toggle)
octave-dataframe 1.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 764 kB
  • sloc: makefile: 123
file content (10 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
function resu = isempty(df)
  %# -*- texinfo -*-
  %# @deftypefn {Function File} isempty(@var{df})
  %# Return 1 if df is an empty dataframe (either the number of rows, or
  %#   the number of columns, or both are zero).  Otherwise, return 0.
  %# @end deftypefn

  resu = any (0 == size (df));

end