Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7002857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:59:00+00:00 2026-05-27T20:59:00+00:00

Given an arbitrary R object, how can I obtain all the methods associated with

  • 0

Given an arbitrary R object, how can I obtain all the methods associated with the object?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:59:01+00:00Added an answer on May 27, 2026 at 8:59 pm

    The closest I can think of is methods (if S3 object/function, List all available methods for an S3 generic function, or all methods for a class.), or showMethods (if S4).

    e.g.:

    > A <- matrix(runif(10))
    > B <- methods(class=class(A))
    > B
     [1] anyDuplicated.matrix as.data.frame.matrix as.raster.matrix*   
     [4] boxplot.matrix       determinant.matrix   duplicated.matrix   
     [7] edit.matrix*         head.matrix          isSymmetric.matrix  
    [10] relist.matrix*       subset.matrix        summary.matrix      
    [13] tail.matrix          unique.matrix       
    
       Non-visible functions are asterisked
    > attr(B,'info')
                         visible                from
    anyDuplicated.matrix    TRUE        package:base
    as.data.frame.matrix    TRUE        package:base
    as.raster.matrix       FALSE registered S3method
    boxplot.matrix          TRUE    package:graphics
    determinant.matrix      TRUE        package:base
    duplicated.matrix       TRUE        package:base
    edit.matrix            FALSE registered S3method
    head.matrix             TRUE       package:utils
    isSymmetric.matrix      TRUE        package:base
    relist.matrix          FALSE registered S3method
    subset.matrix           TRUE        package:base
    summary.matrix          TRUE        package:base
    tail.matrix             TRUE       package:utils
    unique.matrix           TRUE        package:base
    

    Or for a function:

    > methods(summary)
     [1] summary.aov             summary.aovlist         summary.aspell*        
     [4] summary.connection      summary.data.frame      summary.Date           
     [7] summary.default         summary.ecdf*           summary.factor         
    [10] summary.glm             summary.infl            summary.lm             
    [13] summary.loess*          summary.manova          summary.matrix         
    [16] summary.mlm             summary.nls*            summary.packageStatus* 
    [19] summary.PDF_Dictionary* summary.PDF_Stream*     summary.POSIXct        
    [22] summary.POSIXlt         summary.ppr*            summary.prcomp*        
    [25] summary.princomp*       summary.srcfile         summary.srcref         
    [28] summary.stepfun         summary.stl*            summary.table          
    [31] summary.tukeysmooth*   
    
       Non-visible functions are asterisked
    

    ?Methods may also prove a useful read.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given an arbitrary file descriptor, can I make it blocking if it is non-blocking?
Question Using XSLT 1.0, given a string with arbitrary characters how can I get
Given an arbitrary python object, what's the best way to determine whether it is
Given two .NET objects (a root and a leaf) in an arbitrary object graph
Given a Function object, can you get its name as a String? See example:
Given an arbitrary object: class Val(object): def __init__(self): this_val = 123 I want to
Say, i have an arbitrary .NET object (well, i can guarantee it has [DataContract]
Given an arbitrary string, what is an efficient method of finding duplicate phrases? We
Given an arbitrary sequence of points in space, how would you produce a smooth
Given any arbitrary, one-line string, my goal is to render it into a bitmap

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.