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


What is a factor? How would you create a factor in r?



What is a factor? How would you create a factor in r?..

Answer / Rupender

"In R, a factor is a data type that can contain ordered or unordered discrete categories. Factors are useful when analyzing categorical data. To create a factor in R, you can use the factor() function:
factor(c("apple", "banana", "orange", "apple"))

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What do you understand by a workspace in r programming language?

1 Answers  


How would you create a factor in r?

1 Answers  


What is vectorization in r?

1 Answers  


What is control structure in R?

1 Answers  


Describe substr() in r string manipulation?

1 Answers  


Explain the usage of which() function in r language?

1 Answers  


What is a white noise model?

1 Answers  


What is regular expression syntax?

1 Answers  


How would you join multiple strings together?

1 Answers  


Explain how to operate on lists in r?

1 Answers  


Explain if control statements in r?

1 Answers  


Explain an extended example of connections?

1 Answers  


Categories