July 11, 2017 at 10:44 pm
Comments posted to this topic are about the item A subset of the vector
July 11, 2017 at 11:38 pm
Got it wrong but thanks for the question, time to reread the explanation I think. Thanks Steve.
...
July 12, 2017 at 12:37 am
If you're wondering how to subset without using a range:
Exclamation[c(1,2)]
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 12, 2017 at 1:01 am
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
July 12, 2017 at 2:54 am
Neil Burton - Wednesday, July 12, 2017 1:01 AMI got the answer wrong because I assumed that i)Exclamation[(1,2)] and ii)Exclamation[(1:2)] were equivalent. How does the subset of consecutive values returned by position in by i differ from the range returned by ii?
See my previous reply: you need to supply a vector with the indexes. (yes, a vector in a vector 🙂
Exclamation[1,2] would only work if it was a matrix. It would select row 1 and column 2.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 12, 2017 at 8:09 am
Thanks for the instructive question.
- webrunner
-------------------
A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html
July 12, 2017 at 8:57 am
This has nothing to do with the question, I ran across this joke and wanted to share it. I am sure some of you have seen it before:
An SQL statement walks into a bar and sees two tables. It approaches, and asks, “May I join you?”
July 12, 2017 at 9:07 am
bkubicek - Wednesday, July 12, 2017 8:57 AMThis has nothing to do with the question, I ran across this joke and wanted to share it. I am sure some of you have seen it before:An SQL statement walks into a bar and sees two tables. It approaches, and asks, “May I join you?â€
I love that joke so much I added it my signature!
-------------------
A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html
July 13, 2017 at 2:39 am
Really instructive, thanks Steve
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
July 14, 2017 at 7:42 pm
Thanks, Steve. If you keep posting questions like this, I just might learn R! 😉
July 15, 2017 at 4:38 pm
Ed Wagner - Friday, July 14, 2017 7:41 PMThanks, Steve. If you keep posting questions like this, I just might learn R! 😉
Me too!
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply