R 语言 Basic Functionality of R and Variables

Basic Functionality of R and Variables

Q1. Data Types

a)

R in its most basic form can be used as a calculator. Write some coded math expressions using at least three different operators (including at least one trigonometric function).

Note: R follows the standard order of operations, but this can be controlled by wrapping any expression in ().

5+2-7-8

b)

Name and give an example of the five base data types in R:

'some text'# test
123.456
TRUE
2 + 3i

c)

Construct a vector in R.

A vector is a data structure in R that contains multiple entries of the same type.

c("hall", "world", "mgt 205")

猜你喜欢

转载自blog.csdn.net/weixin_54707168/article/details/121197867
R:
R
今日推荐