From the course: SQL Server Machine Learning Services: R

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

R data types

R data types

From the course: SQL Server Machine Learning Services: R

Start my 1-month free trial

R data types

- [Narrator] Before we get into working with SQL Server data, it's important to understand how R deals with data types. In SQL Server, you might be used to working with text data as char or varchar or in varchar, data types and numerical data can be saved as integers of various sizes or floating-point, approximate values, and so on. There's lots of different data types in SQL Server. In R the main types that you'll work with are character data for all of your texts needs double-precision floating-point data for numerical values that include decimals and integer data for whole numbers without fractions. We can use the function type of to explore different data types in R. This will return the data type of a specific value. For instance, if I asked for the type of, and then the text hello world, and then print that out to the messages window. I'll go ahead and highlights lines one through six and execute them you'll see the…

Contents