1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rudik [331]
3 years ago
11

Try making a character (string) variable and a logical variable . Try creating a variable with a "missing" value NA. You can cal

l these variables whatever you would like. Use class(variablename) to make sure they are the right type of variable.
Computers and Technology
1 answer:
quester [9]3 years ago
8 0

Answer:

The solution code is written in R script.

  1. #string variable
  2. character_str<- "Hello World"
  3. #logical variable
  4. logic <-  a > b
  5. #Missing value
  6. myVec <-c(1, 2, 3, NA)
  7. #Use class to check data type
  8. class(character_str)
  9. class(logic)
  10. class(myVec)

Explanation:

A string variable is a variable that hold a string (the letters enclosed within quotation marks) (Line 2)

A logical variable is a variable that hold a logical value (either True or False). The logical value is created by comparing two variables (Line 5).

In R, missing value is an unknown value which is represented by NA symbol (Line 8).  

We can use in-built method <em>class </em> to check for the variable type in R (Line 11-13). For example, the output of <em>class(character_str)</em> is "<em>character</em>"

You might be interested in
What is the primary limitation of free versions of antivirus applications?
weqwewe [10]
The correct answer is A because they cant protect in real time
5 0
3 years ago
Explain how a message is transmitted from one computer to another using layers.
nevsk [136]
I need some answer chouices but they use iphones
7 0
3 years ago
I'm bor.ed so... here's my em.ail
Nataly [62]

Thank you for your email

6 0
3 years ago
Choose all items that represent features of the job application process.
gladu [14]

Answer:we need some options or we can’t help you

Explanation:

8 0
2 years ago
Read 2 more answers
Will you benefit from understanding management principles even if you decide not to go into management
satela [25.4K]

Answer:

Yes

Explanation:

It says it.

5 0
3 years ago
Other questions:
  • Do you think Google has an unfair advantage as a social media marketing platform? Explain.
    10·2 answers
  • How does modularity provide flexibility in a structured programming design?
    6·1 answer
  • How to make a Tip Calculator in code?
    12·1 answer
  • The freemen's bureau was the U.S.' first ____ program.​
    14·1 answer
  • Which of the following defines a network
    7·1 answer
  • Write a program that grades arithmetic quizzes as follows: Ask the user how many questions are in the quiz. Ask the user to ente
    12·1 answer
  • Dynamic addressing: __________.
    12·2 answers
  • If you had tickets for the concert and saw these alerts, what should you do?
    12·1 answer
  • PLEASE PLEASE PLEASE PLEASE help me Im completly lost will give brainliest and 50 points
    8·2 answers
  • Phân tích cạnh tranh của cocacola và pepsi
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!