What are r data types?



What are r data types?..

Answer / 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

More R Programming Interview Questions

Vector v is c(1,2,3,4) and list x is list(5:8), what is the output of v*x[[1]]?

1 Answers  


What are the disadvantages of R?

1 Answers  


Give examples of “rbind()” and “cbind()” functions in r

1 Answers  


Given a vector of values, how would you convert it into a time series object?

1 Answers  


What do you understand by scientific data visualization in R?

1 Answers  


How many types of object are present In R?

1 Answers  


Differentiate between k-means clustering and hierarchical clustering?

1 Answers  


What is GUI in R?

1 Answers  


What is the reshaping of data in R?

1 Answers  


Give an example of 'dreaded for loop'?

1 Answers  


What do you mean by data visualization in R?

1 Answers  


What is meant by hierarchical Clustering in R?

1 Answers  


Categories