Hmmm... May be

q[, 117:ncol(q)]

And, by the way, do not use "q" as the name for your data.frame() or
matrix() as it is a reserved name.  See ?q  and

require(fortunes)
fortune('dog')

for reasons why.

HTH,
Jorge.-

On Thu, Jan 3, 2013 at 12:59 AM, eliza botto <> wrote:

>
> Dear R users,
> sorry for a very basic question. i wanted to ask that if your column are
> too much in number and you want to select the remaining columns, starting
> from column number 117. one way is to use usual command
> >q[ ,(117:2300)].
> is there a way by which i can select the remaining columns starting from
> column number 117 without using the usual command or without giving the
> column number of the last column?
> more precisely, cant i use something like
> >q[ ,(117:remaining columns)]
> hope my question was clear.
> elisa
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]


