home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
languages
/
rlab1_23a
/
CTB
/
strcom
< prev
next >
Wrap
Text File
|
1995-11-14
|
642b
|
33 lines
//----------------------------------------------------------------------
//
// strcom
//
// Syntax: b=strcom(a)
//
// This routines takes a string that has been split in to columns using
// strsplt and recomines them into the string b which is returned.
//
// Author: Jeff Layton 6/20/93
// Version JBL 930620
//----------------------------------------------------------------------
strcom = function(a)
{
local(nc,i,b,bdum)
nc=a.nc;
if (nc == 0) {
error("strcom: Input string is not in row form.");
}
b="";
bdum="";
for (i in 1:nc) {
sprintf(bdum,"%s",a[1;i]);
b=b+bdum;
}
return b;
};