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 is a factor? How would you create a factor in r?

1 Answers  


Why is R important for data science?

1 Answers  


What is the use of stringr package.

1 Answers  


What is Descriptive analysis in R?

1 Answers  


How would you do a cross-product of two tables in r?

1 Answers  


What are applications of Predictive analysis in R?

1 Answers  


What is t-tests() in R?

1 Answers  


What is the use of sample and subset functions in R programming language?

1 Answers  


What are programming features of R?

1 Answers  


What is meant by ANOVA models in R?

1 Answers  


What is the difference between library() and require() functions in r language?

1 Answers  


What are packages in r?

1 Answers  


Categories