R/c2m.R

Defines functions c2m

Documented in c2m

# %=============== c2m.m ====================
# % [M,df] = c2m(C)
# %   Input:
# %           C{1,*}  -  a matrix partitioned into a cell array
# %   Output:
# %           M(*,*)  -  C as ordinary unpartitioned matrix
# %           df(1,*) -  number of columns in the cells of C
# %
# %   See also: c, c2df
# %
# function [M,df] = c2m(C)
# M = C{1};
# df = size(C{1},2);
# for i=2:length(C)
#    M = [M C{i}];
#    df = [df size(C{i},2)];
# end
##################################################
## Rewritten by bhm

#' @rdname m2c 
c2m <- function(CC) { # Difference from matlab: returns m only
   do.call("cbind", CC)
}# end c2m

Try the ffmanova package in your browser

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

ffmanova documentation built on Oct. 18, 2023, 5:08 p.m.