Re: [R] non-interactive subset, `$`, and quotes

2014-06-26 Thread Benjamin Tyner
Duncan, How embarrassing! Thanks. -Ben On 06/26/2014 10:25 PM, Duncan Murdoch wrote: > On 27/06/2014, 4:08 AM, Benjamin Tyner wrote: >> Hi >> >> I know that subset() is not intended for use in programming. However I >> am still curious to learn why, in non-interactive mode, if I take away >> the

Re: [R] non-interactive subset, `$`, and quotes

2014-06-26 Thread Duncan Murdoch
On 27/06/2014, 4:08 AM, Benjamin Tyner wrote: > Hi > > I know that subset() is not intended for use in programming. However I > am still curious to learn why, in non-interactive mode, if I take away > the quotes around 'bar' > >Rscript -e "foo <- list(bar = iris); head(subset(foo$'bar', > Spe

[R] non-interactive subset, `$`, and quotes

2014-06-26 Thread Benjamin Tyner
Hi I know that subset() is not intended for use in programming. However I am still curious to learn why, in non-interactive mode, if I take away the quotes around 'bar' Rscript -e "foo <- list(bar = iris); head(subset(foo$'bar', Species=='setosa'))" Sepal.Length Sepal.Width Petal.Length P