Re: How to read in a vector in R



In article <1130871588.590985.167240@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
sholmes <jlucande@xxxxxxxxx> writes
>Hi!
>
>I am trying to read in a vector in R-2.2.0 by copy pasting from emacs
>the following command:
>
>> cons <- c(14.51, 10.6, 10.39, 8.94, 9.31, 8.59, 8.5, 8.37, 11.49,
>13.62, 14.72, 18.14, 20.89, 19.04, 17.67, 15.86, 14.31, 13.31, 14.23,
>11.2, 11.18, 11.88, 13.38, 11.34, 11.87, 14.4, 9.86, 8, 7.52, 8.66,
>5.32, 4.94, 2.22, 5.04, 7.9, 11.22, 12.97, 15.8, 14.08, 17.38, 15.37,
>14.85, 12.65, 12.82, 15, 15.26, 16.16, 16.09, 15.38, 17.18, 16.3,
>14.96, 11.67, 13.1, 13.3, 14.7, 16.13, 16.23, 14.78, 15.13, 16.09,
>14.41, 12.73, 13.1, 12.57, 10.5, 7.29, 4.04, 4.45, 5.23, 4.81, 7.15,
>5.96, 7.11, 8.23, 9.2, 10.79, 12.41, 10.15, 11.92, 15.58, 11.85,
>13.88, 9.71, 4.92, 0.27, -5.22, -10.45, -12.28, -15.71, -17.05, -18,
>-17.52, -20.09, -17.93, -15.04, -10.3, -10.21, -10.8, -9.48, -7.45,
>-6.16, -9.68, -7.52, -6.95, -5.83, -5.76, -2.1, -2.56, -4.12, -8.12,
>-12.47, -12.56, -10.93, -12.5, -15.6, -17.38, -19.53, -20.57, -22.44,
>-19.24, -19.46, -17.87, -16.31, -17.1, -19.26, -15.8, -16.19, -17.38,
>-18.18, -19.05, -20.36, -20.88, -20.76, -17.67, -16.89, -14.01,
>-13.14, -9.06, -11.22, -9.48, -11.54, -12.12, -13.41, -15.13, -13.74,
>-14.13, -16.97, -12.63, -10.55, -13.92, -14.46, -11.5, -13.19,
>-16.53, -15.46, -15.94, -20.03, -19.21)

This works when I try it. It looks as though something is truncating the
pasted text at about 1024 characters when you try it. I doubt very much
that it is a problem with R.

--
Graham Jones
http://www.visiv.co.uk
Emails to graham@xxxxxxxxxxx may be deleted as spam
Please add a j just before the @ to ensure delivery

.



Relevant Pages

  • Re: My function returns true but my code does not execute
    ... Did you try taking the query that get's echoed out and pasting into ... some other MySQL client (i.e. the command line version)? ... Prev by Date: ...
    (comp.lang.php)
  • Re: How to read in a vector in R
    ... sholmes wrote: ... > I am trying to read in a vector in R-2.2.0 by copy pasting from emacs ... > the following command: ... have some stray control characters in there from EMACS. ...
    (sci.stat.math)
  • Re: Debugger Confusion
    ... on the command line is useful, but it would be very helpful if I could ... have a little marker within the emacs buffer that showed me where I am. ... Rex ... Prev by Date: ...
    (comp.lang.python)
  • Re: Great SWT Program
    ... mostly solve the blind-typing problem that I definitely recall emacs ... Except of course that you need to know some arcane command language ... Hitting tab should insert a tab ... one-line "window" in which the rest of what I type appears, ...
    (comp.lang.java.programmer)
  • Re: Great SWT Program
    ... There was much discussion of relative market share of browsers at that ... Moving the goal posts now? ... mode emacs from which descends all the variants under discussion here. ... The sort that has been standard since the days of the first command ...
    (comp.lang.java.programmer)