Week 14

Lab 12

Monday, Nov 25



  • Using sparklyr as an interface for Spark
  • Work on project

Integration: R and Python

Tuesday, Nov 26

Learning objectives

  • Incorporate Python in R Markdown
  • Calling Python from R and R from Python
  • Leverage the best from both languages


Exercise of the week

On Saxon there is FMRI data for a single subject. The data is located at /data/fmri/shen_regions_subject1.npy. Use a Python code chunk to read in the file and check the dimensions are correct (268 by 1976). Next, use an R code chunk to plot a heat map of the empirical covariance matrix for the 268 nodes.