R/c2df.R

Defines functions c2df

Documented in c2df

# %=============== c2df.m ====================
# % df = c2df(C)
# %   Input: C{1,*}  -  a matrix partitioned into a cell array
# %   Output: df(1,*) -  number of columns in the cells of C
# %
# %   See also: c2m, m2c 
# %
# function df = c2df(C)
# df = size(C{1},2);
# for i=2:length(C)
#    df = [df size(C{i},2)];
# end
###################################################
c2df = function(CC){ # Difference from matlab: returns m only
   df = dim(CC[[1]])[2];
   if(length(CC)>1) 
      for(i in 2:length(CC))
         df = c(df,dim(CC[[i]])[2])      
   df
}# end c2df

Try the ffmanova package in your browser

Any scripts or data that you put into this service are public.

ffmanova documentation built on March 28, 2022, 5:05 p.m.