adspace


What are r data types?

Answer Posted / Rajdeep Kumar

R programming has several data types including:
1. Integer: Whole numbers (e.g., 5, 10).
2. Double: Floating-point real numbers (e.g., 3.14).
3. Character (string): Text enclosed in quotes (e.g., "hello").
4. Complex: Complex numbers with a real and imaginary component (e.g., 1+2i).
5. Logical: True or false values (T/TRUE, F/FALSE).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you convert a factor variable to numeric in r language?

213


Given a vector of numbers, how would you turn the values into scientific notation?

172


How can you verify if a given object “X” is a matrix data object?

188