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 is expected from running the command – strsplit(x,”e”)?

1 Answers  


Explain how to name the list elements in r?

1 Answers  


What will be the output of log (-5.8) when executed on r console?

1 Answers  


What is the usage of the lattice package in R?

1 Answers  


What is TCP/IP in R?

1 Answers  


What is the Use of String Utilities in the edtdbg Debugging Tool in R string manipulation?

1 Answers  


How to call c function from r?

1 Answers  


Compare r and python?

1 Answers  


What are features of r functions?

1 Answers  


What are the different packages in r?

1 Answers  


Explain disadvantages of density-based clustering in R?

1 Answers  


How to construct a new s3 class?

1 Answers  


Categories