[R] c() in Mac does not work

2012-05-05 Thread E Kim
I recently changed to Mac OS X 10.7.3 from Windows and this simple function is giving errors. c(4,7,7) Error in c(4, 7, 7) : unused argument(s) (7) c(1,7:9) Error in d[i, ] : incorrect number of dimensions c(1:5, 10.5, next) Error in c(1:5, 10.5, next) : unused argument(s) (next) c(1,2)

Re: [R] c() in Mac does not work

2012-05-05 Thread Joshua Wiley
Hi, My best guess is that the c() you want to be calling is not the c() you are calling. This can happen if it is masked by a function definition in you global environment or in a package you load. What happens when you type: c at the console? Also, from one of your sessions where it , c(),

Re: [R] c() in Mac does not work

2012-05-05 Thread R. Michael Weylandt
My guess is that somewhere you've accidentally redefined c to be another function. Try this: Open the Terminal and type R --vanilla this will start R totally clean and then try c(4,7,7) c(1, 7:9) I bet your issues go away. If that's the case, you can probably fix things by clearing your old

Re: [R] c() in Mac does not work

2012-05-05 Thread Richard M. Heiberger
almost certainly you restored an old workspace with a conflicting definition of the c function. type c to confirm, also type conflicts(detail=TRUE) The repair is to remove the conflicting definition rm(c) The long term solution is to adopt the recommended practice of not saving your