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 to construct a new s3 class?



How to construct a new s3 class?..

Answer / Maneesh Singh Rajput

To create a new S3 class in R, you need to define a constructor function with the name `create.myclass()`, and set the class attribute of an object created with this function: `setClass("myClass", contains = list(myAttribute = "character"))`. You can then create objects of this class using `myObject <- create.myClass(myAttribute = "value")`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

How can you import data in r?

1 Answers  


What is power analysis ?

1 Answers  


What are vector functions?

1 Answers  


What is the distribution in R?

1 Answers  


Explain how R commands are written?

1 Answers  


What is r programming?

1 Answers  


How do you check if “m” is a matrix data object in R?

1 Answers  


How many tools for debugging present in r?

1 Answers  


What is logistic regression?

1 Answers  


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

1 Answers  


What are programming features of R?

1 Answers  


How many data structures R has?

1 Answers  


Categories