myfirstfun: Very first function

View source: R/firstfun.R

myfirstfunR Documentation

Very first function

Description

This instructs the student on the basics of function making

Usage

myfirstfun(x, ...)

Arguments

x

This is the name of a vector

...

extra arguments which will be sent to the corresponding ... in this case the plot function

Details

Welcome to STATS at OU – we will be learning R from the ground up. RAR man!

Value

A list of x and y data in vector form and a matrix of the same as well as a plot of the data

Making Functions

Learn every part of this simple but important function.

  1. Where does the name of the function go?

  2. What does the ellipsis do?

  3. How long is the object y in relation to x?

  4. Where do you find more information about plot?

  5. What is a list?

  6. what does the function return do?

See Also

plot

Examples

####### some examples ####
data <- 1:40
myfirstfun(x = data, pch=21, bg="Blue", cex = 2.4) # x data and extra options to send to plot

bbydino/ISSA-ROCK-AND-ROLL documentation built on April 27, 2022, 10:03 p.m.