About 615,000 results
Open links in new tab
  1. R Return Value from Function (With Examples) - Datamentor

    In this article, you will learn to return a value from a function in R. You'll also learn to use functions without the return function.

  2. Returning objects from functions (R) - Stack Overflow

    Feb 7, 2018 · My understanding of the function return() is that it enables you to use an object that was created inside a function outside the function. I have this simple function and I want to use …

  3. How to Return Value from Function in R (With Examples) - Statology

    Mar 29, 2022 · This tutorial explains how to return one or more values from a function in R, including several examples.

  4. How to Return Value from a Function in R: A Complete Guide

    Apr 21, 2025 · Learn how to return values from functions in R with practical examples. Explore implicit returns, the return () function, and techniques for returning multiple values in simple, …

  5. Return an Object with the specified name in R Programming

    Jul 15, 2025 · In R programming, get0() and mget() function works similar to get() function. It is used to search and return the object with the specified name passed to it as argument.

  6. Returning multiple objects in an R function - Stack Overflow

    Jan 20, 2012 · The function will recursively and repeatedly search one functional level higher for an object of that name. If it can't find one, it will create one on the global level.

  7. R Return Value from Function (With Examples)

    In this article, you will learn to return a value from a function in R. You'll also learn to use functions without the return function.

  8. How to Return Multiple Values from Function in R - Statology

    May 24, 2024 · This tutorial explains how to return multiple values from a function in R, including an example.

  9. Functions - University of California, Berkeley

    You can only return a single object from a function in R; if you need to return multiple objects, you need to return a list containing those objects, and extract them from the list when you return to …

  10. How to Return Multiple Values from Function in R: A Complete …

    May 5, 2025 · While R functions can only return a single object, the language provides several elegant solutions for packaging multiple values into a single return object. Named lists offer the …