{"id":222512,"date":"2025-04-25T11:55:36","date_gmt":"2025-04-25T15:55:36","guid":{"rendered":"https:\/\/ibkrcampus.com\/campus\/?p=222512"},"modified":"2025-04-25T12:17:08","modified_gmt":"2025-04-25T16:17:08","slug":"functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/","title":{"rendered":"Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The usage of functions in R is a solid tool to build quantitative analysis and payment traceability of a wide variety of financial databases. From payments and costs reports up to general financial statements, the development of functions in R could be a powerful strategy to automatize and to replicate numeric analysis, especially, in scenarios in which the construction of audit-executive reports is needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A set of functions in R could be designed to automatize the treatment and quantitative analysis of numeric-financial databases, through which an executive report could be built and shared within organization\u00b4s authorities every quarter, containing crucial numeric insights related with such information. Then, a web-based Data Warehouse published online could be capable to ingest such analysis results, in order to put a wide variety of dashboards within the reach of managers, board members, citizens, customers, providers, partners or local supervision institutions, in order to comply with demanding transparency standards.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, using specific functions, some numeric variables of input-databases could be converted into vectors, in order to build and apply other functions to develop the quantitative analysis of them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The application of technical data science procedures to databases deployed and developed by any internal or external source, is an excellent tool to strengthen and improve administrative management and market intelligence, in order to improve organization\u00b4s decision-making.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-project-s-general-structure\"><strong>Project<\/strong>&#8216;<strong>s general structure<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The development of the project, in general, has the following stages:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Identification of strategic input-databases.<\/li>\n\n\n\n<li>Database secure download and storage.<\/li>\n\n\n\n<li>Database upload into R.<\/li>\n\n\n\n<li>Design and execution of code related with functions.<\/li>\n\n\n\n<li>Result\u00b4s analysis.<\/li>\n\n\n\n<li>Executive report construction.<\/li>\n\n\n\n<li>Executive report sharing with proper authorities.<\/li>\n\n\n\n<li>Web-based Data Warehouse update with the insights obtained.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-project-s-stages-in-r\"><strong>Project&#8217;s stages in R<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The development of the project, in R, has the following stages:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. <strong>Data ingest or import:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Input databases are imported into R using the <strong>read.csv()<\/strong> function:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"54\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-1.jpg\" alt=\"\" class=\"wp-image-222515 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-1.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-1-300x28.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/54;\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">2. <strong>Data preliminary analysis:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The imported data is subjected to a preliminary analysis, in order to know clearly the format of the variables, the length of the database and a numeric summary. In this stage the functions summary(), head(), str() and length() are used.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, in this stage, a new variable is defined as MONTO_PAGADO, which is the column MONTO of the original database. This task is executed in order to let R define, as a separate variable, the one related with the amounts paid.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"264\" height=\"120\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-2.jpg\" alt=\"\" class=\"wp-image-222517 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 264px; aspect-ratio: 264\/120;\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">3. <strong>Database column transformed into a vector<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In order to design specific functions applied to the variable MONTO (amounts paid), such a column was transformed into a vector due to the usage of AS.VECTOR() function.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"101\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-3.jpg\" alt=\"\" class=\"wp-image-222519 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-3.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-3-300x51.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/101;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4. <strong>Functions developed to automatize analysis process.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-functions-developed\"><strong>Functions developed<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. FUNCTION 1:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"99\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-4.jpg\" alt=\"\" class=\"wp-image-222521 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-4.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-4-300x50.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/99;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This function allows to calculate the summation of&nbsp; the values of the new vector that has been created: vector.monto.pagado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. FUNCTION 2:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"99\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-5.jpg\" alt=\"\" class=\"wp-image-222522 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-5.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-5-300x50.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/99;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This function allows to calculate the average of the values of the new vector that has been created: vector.monto.pagado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. FUNCTION 3:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"89\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-6.jpg\" alt=\"\" class=\"wp-image-222524 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-6.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-6-300x45.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/89;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This function allows to calculate the standard deviation of the values of the new vector that has been created: vector.monto.pagado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. FUNCTION 4:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"105\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-7.jpg\" alt=\"\" class=\"wp-image-222529 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-7.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-7-300x53.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/105;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This function allows to calculate the minimum value of the new vector that has been created: vector.monto.pagado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. FUNCTION 5:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"105\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-8.jpg\" alt=\"\" class=\"wp-image-222531 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-8.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-8-300x53.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/105;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This function allows to calculate the maximum value of the new vector that has been created: vector.monto.pagado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. FUNCTION 6:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"111\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-9.jpg\" alt=\"\" class=\"wp-image-222533 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-9.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-9-300x57.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/111;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This function allows to calculate the maximum value of the new vector that has been created: vector.monto.pagado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. FUNCTION 7:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"109\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-10.jpg\" alt=\"\" class=\"wp-image-222534 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-10.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-10-300x56.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/109;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This function allows to determine the quartiles of the new vector that has been created: vector.monto.pagado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8. FUNCTION 8:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"589\" height=\"127\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-11.jpg\" alt=\"\" class=\"wp-image-222535 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-11.jpg 589w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2025\/04\/Quantitative-Analysis-R-Performing-Payments-Traceability-11-300x65.jpg 300w\" data-sizes=\"(max-width: 589px) 100vw, 589px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 589px; aspect-ratio: 589\/127;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This function allows to determine the percentiles of the new vector that has been created: vector.monto.pagado.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Key outputs<\/strong><\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>High quality executive reports.<\/li>\n\n\n\n<li>Strategic audit insights from payments and financial databases.<\/li>\n\n\n\n<li>Replicability of the code in R for future analysis of different databases.<\/li>\n\n\n\n<li>Automation of quantitative analysis for future projects.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>See below for other R programming articles from Roberto Delgado Castro:<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/data-science-postpone-the-reward\/\">Data Science: Postpone the Reward<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/r-statix-the-power-of-correlations-in-r\/\">R-Statix: The Power of Correlations in R<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/absolute-and-relative-time-the-impact-of-data-science\/\">Absolute and Relative Time: The Impact of Data Science<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rudder-casting-defining-the-heart-of-a-data-warehouse\/\">Rudder Casting: Defining the Heart of a Data Warehouse<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/r-quarto-new-boundary-in-financial-reporting-services\/\">R Quarto<sup>\u00a9<\/sup>: New Boundary In Financial Reporting Services<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/pivot-tables-in-r-for-financial-analysis-of-public-trusts-in-costa-rica\/\">Pivot Tables in R For Financial Analysis of Public Trusts in Costa Rica<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The usage of functions in R is a solid tool to build quantitative analysis and payment traceability of a wide variety of financial databases.<\/p>\n","protected":false},"author":1183,"featured_media":189360,"comment_status":"open","ping_status":"closed","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[339,343,338,341,342],"tags":[806,7391,487,6591],"contributors-categories":[15500],"class_list":["post-222512","post","type-post","status-publish","format-standard","has-post-thumbnail","category-data-science","category-programing-languages","category-ibkr-quant-news","category-quant-development","category-r-development","tag-data-science","tag-quantitative-analysis","tag-r","tag-rstats","contributors-categories-roberto-delgado-castro"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v28.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability<\/title>\n<meta name=\"description\" content=\"The usage of functions in R is a solid tool to build quantitative analysis and payment traceability of a wide variety of financial databases.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/222512\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability\" \/>\n<meta property=\"og:description\" content=\"The usage of functions in R is a solid tool to build quantitative analysis and payment traceability of a wide variety of financial databases.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-25T15:55:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-25T16:17:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/04\/blue-abstract-technology-circuit.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"563\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Roberto Delgado Castro\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Roberto Delgado Castro\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Roberto Delgado Castro\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/4bc3448cd870697e6b63127fa96ae32d\"\n\t            },\n\t            \"headline\": \"Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability\",\n\t            \"datePublished\": \"2025-04-25T15:55:36+00:00\",\n\t            \"dateModified\": \"2025-04-25T16:17:08+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/\"\n\t            },\n\t            \"wordCount\": 710,\n\t            \"commentCount\": 0,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/04\\\/blue-abstract-technology-circuit.jpg\",\n\t            \"keywords\": [\n\t                \"Data Science\",\n\t                \"Quantitative Analysis\",\n\t                \"R\",\n\t                \"rstats\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Quant\",\n\t                \"Quant Development\",\n\t                \"R Development\"\n\t            ],\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"CommentAction\",\n\t                    \"name\": \"Comment\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/#respond\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/\",\n\t            \"name\": \"Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability | IBKR Campus US\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/04\\\/blue-abstract-technology-circuit.jpg\",\n\t            \"datePublished\": \"2025-04-25T15:55:36+00:00\",\n\t            \"dateModified\": \"2025-04-25T16:17:08+00:00\",\n\t            \"description\": \"The usage of functions in R is a solid tool to build quantitative analysis and payment traceability of a wide variety of financial databases.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/ibkr-quant-news\\\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/04\\\/blue-abstract-technology-circuit.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/04\\\/blue-abstract-technology-circuit.jpg\",\n\t            \"width\": 1000,\n\t            \"height\": 563,\n\t            \"caption\": \"Quant\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/4bc3448cd870697e6b63127fa96ae32d\",\n\t            \"name\": \"Roberto Delgado Castro\",\n\t            \"description\": \"Roberto Delgado Castro is a data professional and compliance officer of the Direccion General de Desarrollo Social y Asignaciones Familiares (DESAF), which is part of the Ministry of Labor and Social Security of Costa Rica. He has degrees in finance and banking, marketing and sales and management. He also holds a specialization in E-Learning. For the last ten years, he has developed important data science projects in DESAF, as well as in Costa Rica\u00b4s government. He is the author of the books DT Quantum Model, which proposes a quantitative model to calculate and evaluate the digital transformation process of an organization, Metadatology, which is a brand-new technical discipline focused on the study and analysis of Metadata, and Correlations in R, which proposes a check-list to perform correlation analyses using the RSTATIX package in R. https:\\\/\\\/roberto-delgado.com\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/roberto-delgado-castro\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability","description":"The usage of functions in R is a solid tool to build quantitative analysis and payment traceability of a wide variety of financial databases.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/222512\/","og_locale":"en_US","og_type":"article","og_title":"Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability","og_description":"The usage of functions in R is a solid tool to build quantitative analysis and payment traceability of a wide variety of financial databases.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/","og_site_name":"IBKR Campus US","article_published_time":"2025-04-25T15:55:36+00:00","article_modified_time":"2025-04-25T16:17:08+00:00","og_image":[{"width":1000,"height":563,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/04\/blue-abstract-technology-circuit.jpg","type":"image\/jpeg"}],"author":"Roberto Delgado Castro","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Roberto Delgado Castro","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/#article","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/"},"author":{"name":"Roberto Delgado Castro","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/4bc3448cd870697e6b63127fa96ae32d"},"headline":"Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability","datePublished":"2025-04-25T15:55:36+00:00","dateModified":"2025-04-25T16:17:08+00:00","mainEntityOfPage":{"@id":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/"},"wordCount":710,"commentCount":0,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/04\/blue-abstract-technology-circuit.jpg","keywords":["Data Science","Quantitative Analysis","R","rstats"],"articleSection":["Data Science","Programming Languages","Quant","Quant Development","R Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/","url":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/","name":"Functions Applied to Vectors in Quantitative Analysis in R: Performing Payments Traceability | IBKR Campus US","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/#primaryimage"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/04\/blue-abstract-technology-circuit.jpg","datePublished":"2025-04-25T15:55:36+00:00","dateModified":"2025-04-25T16:17:08+00:00","description":"The usage of functions in R is a solid tool to build quantitative analysis and payment traceability of a wide variety of financial databases.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/ibkr-quant-news\/functions-applied-to-vectors-in-quantitative-analysis-in-r-performing-payments-traceability\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/04\/blue-abstract-technology-circuit.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/04\/blue-abstract-technology-circuit.jpg","width":1000,"height":563,"caption":"Quant"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/4bc3448cd870697e6b63127fa96ae32d","name":"Roberto Delgado Castro","description":"Roberto Delgado Castro is a data professional and compliance officer of the Direccion General de Desarrollo Social y Asignaciones Familiares (DESAF), which is part of the Ministry of Labor and Social Security of Costa Rica. He has degrees in finance and banking, marketing and sales and management. He also holds a specialization in E-Learning. For the last ten years, he has developed important data science projects in DESAF, as well as in Costa Rica\u00b4s government. He is the author of the books DT Quantum Model, which proposes a quantitative model to calculate and evaluate the digital transformation process of an organization, Metadatology, which is a brand-new technical discipline focused on the study and analysis of Metadata, and Correlations in R, which proposes a check-list to perform correlation analyses using the RSTATIX package in R. https:\/\/roberto-delgado.com","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/roberto-delgado-castro\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/04\/blue-abstract-technology-circuit.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/222512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/1183"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=222512"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/222512\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/189360"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=222512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=222512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=222512"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=222512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}