Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



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

Answer / Mukul Mishra

The output of v*x[[1]] will be a numeric vector with length 4 containing the elements: 10, 16, 22, 30. This is because element [[1]] of list x is 5 and the operation v*5 results in the first vector multiplied by 5.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

Why the function anova()?

1 Answers  


Why is library() function used in r?

1 Answers  


how would you build a scatter-plot using plotly?

1 Answers  


Why is R important for data science?

1 Answers  


What are the steps to build and evaluate a linear regression model in r?

1 Answers  


How to construct a new s3 class?

1 Answers  


What is logistic regression?

1 Answers  


Explain how R commands are written?

1 Answers  


What is a random forest? How do you build and evaluate a random forest in r?

1 Answers  


What are Descriptive analysis methods in R?

1 Answers  


How many control statements are present in r?

1 Answers  


Write a custom function in R?

1 Answers  


Categories