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 8427811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:52:53+00:00 2026-06-10T04:52:53+00:00

Is it possible to annotate within an equation in R? For example: 100 /*

  • 0

Is it possible to annotate within an equation in R? For example:

100 /* item 1 */ + 200 /* item 2 */

giving an answer of 300.

I think /* */ is C code. Although, I am not certain 100 /* item 1 */ + 200 /* item 2 */ will run in C.

If I use 100 # item 1 # + 200 # item 2 # in R I get an answer of 100 because everything after the first # is ignored, as I expected.

I suppose I could use:

#  item 1     item 2
   100    +    200

I was just thinking that when equations become really long and complex taking up several lines it might be nice to annotate within an equation.

The following works and returns 300:

(100 +  # item 1
 200  ) # item 2

That requires a new line after every annotation and is the closest that I can come to my initial example above containing only one line.

Thanks for any advice.

  • 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-06-10T04:52:55+00:00Added an answer on June 10, 2026 at 4:52 am

    It’s not possible. As noted in the Comments section of the R language manual, the only comment character is #. Everything from the # to the end of the line is ignored (unless the # is quoted in a string).

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

Sidebar

Related Questions

Is it possible to annotate method to run code in UiThread? runOnUiThread(new Runnable() {
Is it possible (Java EE, JBoss 6) to cleverly annotate Java code to provide
Is it possible to use the annotate (2.4.1.beta) gem to output globalize3 (0.2.0) translated
Possible Duplicate: && operator in Javascript In the sample code of the ExtJS web
Working with a large code base and I'm hesitant to run annotate on all
Is it possible to annotate lattice (or ggplot2 ) figures with elements created with
Is it possible to good C compiler with high optimization enabled to optimize code
Is it somehow possible to annotate a Java Method in that way that i
Is it possible to use Guice AOP to intercept an annotated method on a
Given JPA annotated Entities, is it possible to generate (i.e. before runtime) the list

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.