help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dataframe construction question


From: shlagbaum
Subject: dataframe construction question
Date: Sun, 7 Sep 2014 14:26:06 -0700 (PDT)

Why the following works:

octave:17> RHS={'a','b','c';double(1),'e','f'};
octave:18> x=dataframe([]);
FIXME -- should create a dataframe from the whole workspace
octave:19> x(:,:)=RHS
x = dataframe with 1 rows and 3 columns
_1      a    b    c                    
Nr double char char                    
 1      1    e    f                    

but the following does not?

octave:20> RHS={'a','b','c';'d','e','f'};
octave:21> x=dataframe([]);
FIXME -- should create a dataframe from the whole workspace
octave:22> x(:,:)=RHS
error: df_matassign: A(I,J): row index out of bounds; value 1 out of bound 0
error: called from:
error:  
/home/slava/octave/dataframe-1.0.0/@dataframe/private/df_matassign.m at line
186, column 15
error:   /home/slava/octave/dataframe-1.0.0/@dataframe/subsasgn.m at line
213, column 10
error: assignment failed, or no method for 'class = cell'
octave:22> x
x = dataframe with 0 rows and 0 columns

octave:23> version
ans = 3.8.2

Thanks.



--
View this message in context: 
http://octave.1599824.n4.nabble.com/dataframe-construction-question-tp4666408.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]