How can we set global variables inside a function?
I am plotting multiple graphs in a single sheet.I want to add title for each one of them.
Can anyone tell me how I can achieve this?
To set global variables, you can use <<- operator.
a <<- "new"
To add titles, you can use main="My title here" for each plot.
Use something like par(mar=c(3,3,3,1)) to give sufficient spacing.
You can use the reshape2 package for ...READ MORE
You can use mtabulate in the following way:
cbind(data, ...READ MORE
The variables declared inside a function are ...READ MORE
I'm not sure about the command but you ...READ MORE
One line that removes all objects except for functions:
rm(list ...READ MORE
You can assign global variables from inside ...READ MORE
Hope you are doing great.
You can ...READ MORE
We would start off by loading the ...READ MORE
You can parse the strings to symbols. ...READ MORE
You need not spread twice, if you ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.