Neal,
I like this answer. Simple and clean. Don't know why I didn't think of that
before.
Thanks!
--
Noah Silverman, M.S., C.Phil
UCLA Department of Statistics
8117 Math Sciences Building
Los Angeles, CA 90095
On Sep 4, 2013, at 3:12 PM, Neal Fultz wrote:
> > print(1:100)
> [1] 1 2
On 13-09-04 5:56 PM, Noah Silverman wrote:
Hi,
Working with R, I often want to copy and paste some values somewhere else.
(Its not worth saving a CSV file for a dozen or so entries.) Or, I may want to
copy all the names of an object into some code.
Besides the other suggestions, the data e
Hi,
You could use ?cat()
For ex:
vec1<-1:100
cat(vec1)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
82 83 8
> print(1:100) [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
> 16 17 18 19 20 21 22 23 24 25 26
[27] 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
43 44 45 46 47 48 49 50 51 52
[53] 53 54 55 56 57 58 59 60 61 62 63 64 65 66
On 04/09/2013 22:56, Noah Silverman wrote:
Hi,
Working with R, I often want to copy and paste some values somewhere else.
(Its not worth saving a CSV file for a dozen or so entries.) Or, I may want to
copy all the names of an object into some code.
R, rather nicely, wraps output with an ind
Depending on the OS you are working with awk or gawk are great utilities
for stripping columns from files. Also if you use a spreadsheet it is
quite easy to drop a column.
On Sep 4, 2013 5:59 PM, "Noah Silverman" wrote:
> Hi,
>
> Working with R, I often want to copy and paste some values somewhe
It's nice to see all those solutions, but I'm wondering how it would be
helpful to have the display like this.
I'm a bit curious because for me the R output formatting is not very
important.
Ivan
Le 2/21/2011 15:09, (Ted Harding) a écrit :
On 21-Feb-11 13:55:24, Peter Ehlers wrote:
On 2011-0
On 21-Feb-11 13:55:24, Peter Ehlers wrote:
> On 2011-02-21 04:21, Antje Niederlein wrote:
>> Thanks for every helpful answer :-) !
>> I thought it was something "easier" but as long as there is a solution
>> it's fine for me.
>>
>> Ciao,
>> Antje
>
> Here's one more that I use:
>
> cat( 1:10, sep
On 2011-02-21 04:21, Antje Niederlein wrote:
Thanks for every helpful answer :-) !
I thought it was something "easier" but as long as there is a solution
it's fine for me.
Ciao,
Antje
Here's one more that I use:
cat( 1:10, sep="\n" )
But this won't give you the row numbers.
[I keep a functio
Thanks for every helpful answer :-) !
I thought it was something "easier" but as long as there is a solution
it's fine for me.
Ciao,
Antje
On 21 February 2011 13:12, Martin Maechler wrote:
>> Ted Harding
>> on Mon, 21 Feb 2011 11:08:19 - (GMT) writes:
>
> > That doesn't pro
> Ted Harding
> on Mon, 21 Feb 2011 11:08:19 - (GMT) writes:
> That doesn't produce quite what Antje asked for (since each
> line gets number "[1]"). The following does work:
> print(cbind(NULL,(1:10)))
> [,1]
> [1,]1
> [2,]2
> [3,]3
>
That doesn't produce quite what Antje asked for (since each
line gets number "[1]"). The following does work:
print(cbind(NULL,(1:10)))
[,1]
[1,]1
[2,]2
[3,]3
[4,]4
[5,]5
[6,]6
[7,]7
[8,]8
[9,]9
[10,] 10
(apart from the unwanted column-name "[,
Hi,
You may try
invisible(sapply(1:10, print))
Yves
Le 21/02/2011 11:21, Antje Niederlein a écrit :
> Hi there,
>
> I though there has been a possibility to force the output on the
> console with one element per line. Instead of this:
>
>> 1:10
> [1] 1 2 3 4 5 6 7 8 9 10
>
> s
I am not aware of one, bu I don`t know that much. You an change the vector to
a data.frame but it could introduce complications.:)
Example:
===
vec <- 1:10
df1 <- data.frame(vec)
df1
14 matches
Mail list logo