]> Creatis software - CreaPhase.git/blob - octave_packages/dataframe-0.9.1/@dataframe/private/df_colmeta.m
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / dataframe-0.9.1 / @dataframe / private / df_colmeta.m
1 function resu = df_colmeta(df)
2
3   %# function resu = df_colmeta(df)
4   %# Returns a new dataframe, initalised with the meta-information
5   %# about columns from the source, but with empty data
6
7   %% Copyright (C) 2009-2012 Pascal Dupuis <Pascal.Dupuis@uclouvain.be>
8   %%
9   %% This file is part of Octave.
10   %%
11   %% Octave is free software; you can redistribute it and/or
12   %% modify it under the terms of the GNU General Public
13   %% License as published by the Free Software Foundation;
14   %% either version 2, or (at your option) any later version.
15   %%
16   %% Octave is distributed in the hope that it will be useful,
17   %% but WITHOUT ANY WARRANTY; without even the implied
18   %% warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19   %% PURPOSE.  See the GNU General Public License for more
20   %% details.
21   %%
22   %% You should have received a copy of the GNU General Public
23   %% License along with Octave; see the file COPYING.  If not,
24   %% write to the Free Software Foundation, 51 Franklin Street -
25   %% Fifth Floor, Boston, MA 02110-1301, USA.
26   
27   %#
28   %# $Id: df_func.m 7943 2010-11-24 15:33:54Z cdemills $
29   %#
30
31   resu = dataframe([]);
32
33   resu._cnt(2) = df._cnt(2);
34   resu._name{2} = df._name{2};
35   resu._over{2} = df._over{2};
36   resu._type = df._type;
37   %# init it with the right orientation
38   resu._data = cell(size(df._data));
39   resu._rep = cell(size(df._rep));
40   resu._src  = df._src;
41   resu._cmt  = df._cmt;
42
43 endfunction