On Tue, Aug 17, 2010 at 9:20 PM, Stephen Liu wrote:
> - Original Message
>
> From: Joshua Wiley
> To: Stephen Liu
> Cc: r-help@r-project.org
> Sent: Wed, August 18, 2010 12:10:51 PM
> Subject: Re: [R] About scan
>
> Hi Josh,
>
> Thanks for your adv
- Original Message
From: Joshua Wiley
To: Stephen Liu
Cc: r-help@r-project.org
Sent: Wed, August 18, 2010 12:10:51 PM
Subject: Re: [R] About scan
Hi Josh,
Thanks for your advice.
- snip -
>> x <- scan()
>1: 1 2 3 4 5
>6:
I tried it before. It'll continue ask
Hi Stephen,
Maybe it is just me, but I am not clear what your question is. scan()
is a function with a variety of arguments. When these are not
explicitly named, they go in order. So, scan(1, 2, 3, 4, 5) is
equivalent to scan(file = 1, what = 2, nmax = 3, n = 4, sep = 5),
which is clearly nonse
Hi folks,
I followed an online example to input data;
> x = scan(1,2,3,4,5)
Error in scan(1, 2, 3, 4, 5) :
either specify 'nmax' or 'n', but not both.
It can't work.
> x = c(1,2,3,4,5)
> x
[1] 1 2 3 4 5
It works.
Whether "scan" is replaced with "c" ?
> ?c
.
Usage:
c(..., recur
4 matches
Mail list logo