IniziaInizia gratis

Importing Python and R

Before we use Python and R functions in our Julia programs, we need to import and set up the correct packages. For Python, we use the PythonCall package, and for R we use the RCall package.

Both these packages contain functions that allow us to call other packages. In PythonCall, we use pyimport to import a package, and in RCall we use @rimport.

Set up your environment in these exercises to handle both Python and R imports. Note that the packages have already been installed for you on the local environment.

Questo esercizio fa parte del corso

Intermediate Julia

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Import PythonCall
using ____

# Import math using PythonCall
____ ____
Modifica ed esegui il codice