10/04/19

Define all functions in one .R file, call them from another .R file. How, if possible?

How do I call functions defined in abc.R file in another file, say xyz.R?A supplementary question is, how do I call functions defined in abc.R from the R prompt/command line?

10/04/19

Change value of variable with dplyr?

I regularly need to change the values of a variable based on the values on a different variable, like this: mtcars$mpg[mtcars$cyl == 4] <- NAI tried doing this with dplyr but failed... more

10/02/19

YAML current date in rmarkdown?

I'm wondering if there's a trick to put the current date in the YAML front-matter of a .rmd document to be processed by knitr and the rmarkdown package. I would like to take advantage of the... more

10/01/19

Read an Excel file directly from a R script?

How can I read an Excel file directly into R? Or should I first export the data to a text- or CSV file and import that file into R?

10/01/19

How can I create a correlation matrix in R?

I have 92 set of data of same type.I want to make a correlation matrix for any two combination possible.i.e. I want a matrix of 92 x92.such that element (ci,cj) should be correlation between ci and... more

Still looking for help? Get the right answer, fast.

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.