# intrsectsa¶

## Purpose¶

Returns the intersection of two string vectors, with duplicates removed.

Note

This function is deprecated, use intrsect() instead.

## Format¶

s_intr = intrsectsa(sv1, sv2)
Parameters: sv1 (Nx1 or 1xN string vector) – data sv2 (Mx1 or 1xM string vector) – data s_intr (Lx1 vector) – all unique strings that are in both sv1 and sv2 sorted in ascending order.

## Examples¶

// Define string vector number one
vars_a = "age" $| "weight"$| "bmi";

// Define string vector number two
vars_b = "hdl" $| "ldl"$| "age" $| "bmi"$| "smoking";

shared_vars = intrsectsa(vars_a, vars_b);
print "Both studies reported the following variables:";
print shared_vars;


The code above returns:

Both studies reported the following variables:
age              bmi


## Remarks¶

1. Place smaller vector first for fastest operation.
2. If there are a lot of duplicates it is faster to remove them with unique() before calling intrsectsa().

## Source¶

intrsect.src

Functions intrsect()
{"ft_lang_label":"__label__en","ft_lang_prob":0.6819016,"math_prob":0.865168,"size":978,"snap":"2021-43-2021-49","text_gpt3_token_len":271,"char_repetition_ratio":0.13963039,"word_repetition_ratio":0.026490066,"special_character_ratio":0.26278117,"punctuation_ratio":0.12820514,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9667459,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-07T05:02:38Z\",\"WARC-Record-ID\":\"<urn:uuid:a471d804-7748-4df6-963d-d266a7cf0e8f>\",\"Content-Length\":\"18046\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:60f8ea87-ae8c-4c72-b0ba-7f565e0087c1>\",\"WARC-Concurrent-To\":\"<urn:uuid:3948a9ff-d1d7-4882-9332-9fa5dadec306>\",\"WARC-IP-Address\":\"172.67.162.179\",\"WARC-Target-URI\":\"https://docs.aptech.com/gauss/intrsectsa.html\",\"WARC-Payload-Digest\":\"sha1:RL4HG2RZVXHOBY5CYDF6UFYVPMF2PZDR\",\"WARC-Block-Digest\":\"sha1:CQHP4BBFH3D2PXMHARCZ3ZUWNQ7QAIYM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964363336.93_warc_CC-MAIN-20211207045002-20211207075002-00605.warc.gz\"}"}