Java Mailing List Archive

http://www.junlu.com/

Subjects
Home
mod jk2 https
Donation of JAXP 1 3 Sources to Apache
R annoyances
RE: Finding out when the aspnet admin worker process has recycled
Favorite Linux Distribution
eigenvalues of a circulant matrix
Apache Install
Reachin apache from outside
Ant should have an ext directory
Warning: Documentroot doesn 't exist
Can this be Done?
RE: Multilanguage Application
RE: Simple Question On setting up Sub Domain site
Lack of independence in anova()
How to close connection instead of sending 403?
winning the case for ANT
Re: adding php
New Ant GUI 'Ant 's Nest '
Narrowing Down A Strange Problem
Ant Task: sshexec
R Graph Gallery : categorization of the graphs
I 've been hacked, I need some help please
RE: Anyone working with DotNetNuke?
RE: Exception Handling Opinion
hex format
RE: IIS stopped working :(
<for > Build Failed:problem
RE: Separation of Objects from Logic
RE: Tracking pages with long request execution time
sending email to multiple destination
Web Site
ant UI
Easy cut & paste from Excel to R?
Win32 Apache Restart
Improving Tasks
HELP! PLEASE!
RE: Adding Controls to a Page
read table
RE: ASPNET account doesn 't exist!
Best way to uninstall Apache2 on red hat
from win to linux how to web page
XMLParseException changes and creation of XMLLocator2
Re Post: rewrite backslash to forward slash
Target or macrodef?
Page display problem XPSP2
Authentication problems
Dynamic Dictionary Data Type?
Newbie unable access my www from outside
off topic question: Latex and R in industries
Conflict between xtable and Hmisc when using Sweave?
Very old problem without any new solution
mod rewrite help
Basic Authentication question
RE: Code Security
calling ant from java program
prevent double signing
Re: Controlling Copy/Paste/Print
Using R to illustrate the Central Limit Theorem
web server slow too much slow
access to user directories
Links
Home
Official R Project Site
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
R annoyances

R annoyances

2005-05-20       - By Robin Hankin
Reply:     <<     11     12     13     14     15     16     17     18     19     20     >>  


On May 20, 2005, at 11:00 am, Jan T. Kim wrote:

> On Thu, May 19, 2005 at 03:10:53PM -0400, John Fox wrote:
>
>> Since you can use variables named c, q, or t in any event, I don't
>> see why
>> the existence of functions with these names is much of an impediment.
>
> True, particularly since I'm not too likely to use these variables for
> (local)
> functions, and variables of other types don't prevent functions from
> working.
> (I thought this was a problem... I must be spoilt by recently having
> to read
> too much Matlab code, where parentheses are used to both enclose
> subscripts and
> parameter lists, thus rendering subscript expressions and function
> calls
> syntactically indistinguishable.)


Heh, I'm a recovering Matlab  user too.  This is sooooooooooo true!

In Matlab:

f(10)    # function f() evaluated at 10
f(10)    # 10th element of vector f.  confusing!!

R uses round brackets in two unrelated ways:

 4*(1+2)  --- using "(" and ")" to signify grouping
f(8)  function f() evaluated at 8.

where there is no reason to use the same parenthesis symbol for both
tasks.

IMO, the only system with consistent parenthesis use is Mathematica;

f[10]  #  function f[] evaluated at 10
8*(2+2)   # parenthesis to override  order of operations
f[[3]] # third element of list f

{} are used for sets.



--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
 tel  023-8059-7743

______________________________________________
R-help@(protected) mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

©2008 junlu.com - Jax Systems, LLC, U.S.A.