Hi everyone,
I could really use your help! I'm very new to R Studio and I love it! But, I am trying to solve two issues:

I need to create a function that can take in a few values (x, y, z) and solve for the mean, minimum, maximum, and std. deviation. However, my code does not work and this is what I have.
StatCount< function(x, y, z)
{ a< mean(x, y, z)
b< x[which.max(x, y, z)]
c< x[which.min(x, y, z)]
d< sd(x, y, z)
return(a);
return(b);
return(c);
return (d);
}
The error given says that "multiargument returns are not permitted" 
My second request is this: "In statistics, a dataset needs to be transformed in order to meet certain assumptions. Write a custom R function that takes any univariate dataset and creates a histogram of the raw dataset and a histogram of the logtransformed dataset."
How on earth can you take a random variable that is a dataset that is passed to a function to automatically generate a histogram?! Help!
Many thanks in advance,
Aerianna