Question

Need help inputting into R Studio to get answer

QUESTION 1 How can you find the column names in the dataset named juul2? QUESTION 1B How would you find the number of rows

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Run following commands in R

1)

data = read.csv(file='juul2.csv', header=T, sep=',') # This is for csv file

str(data) # Initially Convert to string

colnames( data ) # It gives the column names

1.B)

nrow(data$age) # Gives no of rows in column age

1.C)

sum(is.na(data$age)) # Gives total no of NA in age column

1.D)

x= seq(10,105,5)

matrix(x,nrow = 4, ncol= 5 , byrow = "true")

  

Add a comment
Know the answer?
Add Answer to:
Need help inputting into R Studio to get answer QUESTION 1 How can you find the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • this is sql developer question I just need the format of how to answer question! Create...

    this is sql developer question I just need the format of how to answer question! Create sequences (2) that can be used to number the member ID and group ID values starting with 3 (since you already have 1 and 2). Write an INSERT statement that adds another row to the Groups table, make up a group name. Use the NEXTVAL pseudo column to get the value for the next group ID from the sequence that you created in #5....

  • Answer the following SQL study guide questions... Question 1 (1 point) Unless you assign a column...

    Answer the following SQL study guide questions... Question 1 (1 point) Unless you assign a column name in the base table. the column name in the result set is the same as the 1) unique syntax 2) column alias 3) qualification 4) all of the above Question 2 (1 point) Which clause specifies the number of rows that should be skipped before rows are returned from the result set? 1) FETCH 2) OFFSET 3) FIRST 4) NEXT Question 3 (1...

  • Hi, I don't know how to use R Studio to find the solution to this problem....

    Hi, I don't know how to use R Studio to find the solution to this problem. Can someone please help me? It would be greatly appreciated. In 1974, the University of California-Berkeley was sued for alleged gender discrimination in graduate admissions. Let's teleport back to the fall of 1973. Applications for the upcoming 1974 academic year are in, and you're on the admission review board responsible for overseeing the admission results. You know going into the application review season that...

  • this question was previously answered wrong. can you please help me find the correct answer. can...

    this question was previously answered wrong. can you please help me find the correct answer. can you please give explanations as to how you arrived at the numbers. thanks so much. You have just been hired as a new management trainee by Earrings Unlimited, a distributor of earrings to various retail outlets located in shopping malls across the country. In the past, the company has done very little in the way of budgeting and at certain times of the year...

  • Can you help me with thus question? I need correct answer please. R is there a...

    Can you help me with thus question? I need correct answer please. R is there a pivot point that gives the same A undorm arcular disk whose radius R is 13.4 cm is suspended as a physical pendulurn from a point on its rim. (a) What is its period? (b) At what radial distance r period Units (a) Number (b) Number Units Click if you would like to Show Work for this questions Open Show Work

  • Here’s another question that I really need help with. Please answer it where I can understand....

    Here’s another question that I really need help with. Please answer it where I can understand. Thank you ! Problem V (15pts) Assume that in a specific project, we tend to study the effect of hydrocarbon consumption, running, walking, biking, gender, and age on weight loss. Discuss about the scientific methods you would use to see the effect of these factors (hint: do you need to find mean, median, variance, etc.? why are they needed? How about IQR? Please include...

  • x Assignment 1 - Database.pdf ... Learn how to access and use NCBI databases Question 1:...

    x Assignment 1 - Database.pdf ... Learn how to access and use NCBI databases Question 1: Search Taxonomy database for: 1) Homo sapiens, 2) Heterodoxus macropus, 3) E. coli. a. What is the common name of the species? b. How many nucleotide or protein sequence records do you find (show your search results in cropped windows)? Question 2: Use the name "plague thrips" to search the Nucleotide database. a. What is the scientific name of the plague thrips? b. How...

  • matlab( answer the question in matlab) show the full answer with comment please. W a rnction...

    matlab( answer the question in matlab) show the full answer with comment please. W a rnction to find the largest product of adjacent number pairs in a matrix, where pair combinations can be selected the horsonal accent or vertically adjacent (but not diagonally adjacent) of numbers in a matrix are accent if they are in the same row or column and located next to each other when the 2D matrix is displayed The largest product of a pair of adjacent...

  • To answer the next set of question you need to imagine how asg, hsg and asg...

    To answer the next set of question you need to imagine how asg, hsg and asg expression might change in the three yeast cell types in the absence of the listed protein. If you imagine that the steady state levels of mRNA will increase in the absence of the protein then you would say it functions as a repressor. If you imagine that the steady state levels of mRNA will decrease in the absence of the protein then you would...

  • Can you please solve this fully Question 9 (10 marks) (i) How many vertices and how many edges do each of the following graphs have? [3 marks] (b) C16 (a) K70 (d) K2,5 (ii Suppose you have a graph G w...

    Can you please solve this fully Question 9 (10 marks) (i) How many vertices and how many edges do each of the following graphs have? [3 marks] (b) C16 (a) K70 (d) K2,5 (ii Suppose you have a graph G with vertices vi, v. vi7. Explain (clearly) how you would use the adjacency matrix A to find a. The number of paths from v to vir of length 12.12 marks] b. The length of a shortest path from vi to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT