IniziaInizia gratis

What's that data type?

Up until now, you have been determining what data type a variable is just by looks. There is actually a better way to check this.

class(my_var)

This will return the data type (or class) of whatever variable you pass in.

The variables a, b, and c have already been defined for you. You can type ls() in the console at any time to "list" the variables currently available to you. Use the console, and class() to decide which statement below is correct.

Questo esercizio fa parte del corso

Introduction to R for Finance

Visualizza il corso

Esercizio pratico interattivo

Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi

Inizia esercizio