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 new s4 class?



How to construct new s4 class?..

Answer / Ravindra Singh

To create a new S4 class in R, you need to define a class definition with `setClass()`, and methods for each generic function that should work for your class: `setClass("myS4Class", contains = list(myAttribute = "character"), representation = representation(myAttribute = "character"))`. You can then create objects of this class using `new("myS4Class", myAttribute = "value")`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

How many tools for debugging present in r?

1 Answers  


What do you know about the evaluate_model() function from “statisticalmodeling” package

1 Answers  


Write the full form MANOVA and why is it used?

1 Answers  


Give a brief introduction to an array in R?

1 Answers  


Describe sprintf() in r string manipulation?

1 Answers  


What is reference class?

1 Answers  


Describe regex() in r string manipulation?

1 Answers  


What is JIT in R?

1 Answers  


Describe strsplit() in r string manipulation?

1 Answers  


Write the r programming code for an array of words so that the output is displayed in decreasing frequency order?

1 Answers  


How you can create a table in r without external file?

1 Answers  


how can you add datasets in r?

1 Answers  


Categories