문자열의 단어 정렬문자열에서 단어를 알파벳순으로 정렬하고 싶습니다.목록을 다시 하나의 문자열로 가져오려고 노력 중입니다.
string= "sort this sentence";
string_list = sort list(words(string )); // string_list = {"sentence", "sort", "this"};
Sorted_string = (string_list); // not sure how to create Sorted_string = "sentence sort this"
show(string, string_list, Sorted_string);자동화 및 스크립팅Re: 문자열의 단어 정렬JMP에서는 다음을 사용할 수 있습니다. 항목 연결()
Names Default To Here(1);
Concat Items({"www", "jmp", "com"}, "."); //"www.jmp.com"Re: 문자열의 단어 정렬덕분에 올바른 길로 들어섰습니다.
string= "sort this sentence";
string_list = sort list(words(string));
sorting_string = "";
for(i=1, i<=nitems(string_list), i++,
if(i<NITEMS></NITEMS><BR />----------------<BR />Log:<BR />string = "sort this sentence";<BR />string_list = {"sentence", "sort", "this"};<BR />Sorting_string = "sentence sort this";<BR />Re: 문자열의 단어 정렬이런 경우에는 Concat Items()를 사용하는 것이 좋습니다.
Names Default To Here(1);
string = "sort this sentence";
string_list = Sort List(Words(string));
Sorted_string = Concat Items(string_list, " ");
Show(string, string_list, Sorted_string);
string = "sort this sentence";
string_list = {"sentence", "sort", "this"};
Sorted_string = "sentence sort this";Re: 문자열의 단어 정렬완벽한! 감사해요!