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...


How would you create a factor in r?



How would you create a factor in r?..

Answer / Abhishek Chauhan

In R, you can create a factor using the `factor()` function. Here's an example: nn```rnfruit <- c("apple", "banana", "orange", "apple", "orange", "banana")nfactors <- factor(fruit)n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What do you understand by element recycling in r?

1 Answers  


What are Ensemble Models in R?

1 Answers  


What is polynomial in r?

1 Answers  


How can you import data in r?

1 Answers  


How will you create scatterplot matrices in r language?

1 Answers  


What is the function used for adding datasets in R?

1 Answers  


What is the use of subset() function and sample() function in R ?

1 Answers  


Which data structure is used to store categorical variables?

1 Answers  


how would you build a scatter-plot using plotly?

1 Answers  


What is the use of lattice package?

1 Answers  


What is R studio and how to use it?

1 Answers  


What is logistic regression?

1 Answers  


Categories