<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for mrdwab</title><link>http://disqus.com/by/mrdwab/</link><description></description><atom:link href="http://disqus.com/mrdwab/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 15 Jul 2020 01:33:36 -0000</lastBuildDate><item><title>Re: Preserve image positioning when switching between 4x3 and 16x9 — PowerPoint templates and presentation design services</title><link>https://slidemagic.blog/blog/2020/6/2/preserve-image-positioning-when-switching-between-4x3-and-16x9#comment-4992429750</link><description>&lt;p&gt;In web design, this is usually referred to as using focal points, and is a technique that's used for dealing with responsive web designs. See examples &lt;a href="https://support.google.com/webdesigner/answer/9493710?hl=en#:~:text=overrides%20alignment%20options.-,Set%20a%20focal%20point,from%20the%20pop%2Dup%20menu." rel="nofollow noopener" target="_blank" title="https://support.google.com/webdesigner/answer/9493710?hl=en#:~:text=overrides%20alignment%20options.-,Set%20a%20focal%20point,from%20the%20pop%2Dup%20menu."&gt;here&lt;/a&gt; and &lt;a href="https://support.squarespace.com/hc/en-us/articles/205826028-Using-focal-points-to-center-images" rel="nofollow noopener" target="_blank" title="https://support.squarespace.com/hc/en-us/articles/205826028-Using-focal-points-to-center-images"&gt;here&lt;/a&gt;. Perhaps that could save one from having to keep two sets of images.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Wed, 15 Jul 2020 01:33:36 -0000</pubDate></item><item><title>Re: A sample size calculator function for R</title><link>http://news.mrdwab.com/post/sample-size-calculator/#comment-2548633179</link><description>&lt;p&gt;Thanks. I'm not sure that I'll end up putting it on CRAN, but I've been playing with Shiny a bit, and was thinking perhaps I would just create an app for it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Wed, 02 Mar 2016 21:38:16 -0000</pubDate></item><item><title>Re: The Spaniard</title><link>http://news.mrdwab.com/post/the_spaniard/#comment-2299548722</link><description>&lt;p&gt;Here it is:&lt;/p&gt;&lt;p&gt;-------------------&lt;/p&gt;&lt;p&gt;That day I told Anand's grandmother what he and Shirvan had seen. Without hesitation she said "The Spaniard".&lt;/p&gt;&lt;p&gt;There used to be a huge, ancient Governor Cherry tree where our house now stands: it was easily 40 feet tall and its branches spread as wide. The story went that when Christopher Columbus stopped to caulk his leaking ships at the Trinidad pitch lake, this Spaniard went to explore, and found this tree to rest under. The ships left, but the Spaniard remained, making garden in the mornings, resting in the trees' shade in the afternoons, and talking with the locals under its branches at night. He lived in the village until he was old, and died. Out of respect for this adopted stranger, the villagers started making an offering to him every year, of a plate of ground provisions, a freshly killed rooster, and a bottle of rum.&lt;/p&gt;&lt;p&gt;The land became the property of Anandas' great-grandfather, and he continued the tradition of offering food to the Spaniard each Pitr Pak. In time, Anand's grandmother took over this tradition.&lt;/p&gt;&lt;p&gt;When Anand's father was ready to build his own house, they decided it should be next door to his mother's. But the tree was too close to the road to put the house in front of it; and the land dropped behind the tree and would it be a lot of work to level the area. So the tree was cut down, and the house built in its spot.&lt;/p&gt;&lt;p&gt;For 3 or 4 years the grandmother continued to make the offering at the back of the house. But times were changing, and there were many young grandchildren in the two houses to keep the grandmother busy. When she would play with them, telling stories and singing Hindu bhajans, her sons would scold her for being old fashioned, and eventually, as she dropped these customs, she forgot about the Spaniard as well.&lt;/p&gt;&lt;p&gt;Now she went to the village pundit, Baldath Baba, for assistance. She was worried that the Spaniard had come for Shirvan because of his clear skin and green eyes: perhaps he mistook him for one of his own people. So Maa and Baba told the two brothers to go spend the evening in the lagoon with their older brother, then went to the back of Anand's house. They swept the yard and sprinkled water, removed all the laundry and washing tubs, till everything was clean and tidy. Then they took their offerings and performed a puja: there were the ground provisions, the freshly killed rooster, and the bottle of rum; there were flowers and incense and candles. These they lit, and sat down and spoke to the Spaniard, begging him not to hurt the children, apologizing for forgetting to "pay tribute". Then they told him how times were changing, and told him he would be better off finally leaving this place; that Shirvan's big brother, who he had seen that night, would look after the child, so the Spaniard was now free to return to the Old Country, because they would not be making this offering again.&lt;/p&gt;&lt;p&gt;And that was that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Sat, 10 Oct 2015 00:38:44 -0000</pubDate></item><item><title>Re: The Spaniard</title><link>http://news.mrdwab.com/post/the_spaniard/#comment-2297804668</link><description>&lt;p&gt;Axle says she has her version of the story to share. Looking forward to it :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Fri, 09 Oct 2015 01:19:17 -0000</pubDate></item><item><title>Re: Saranomy Dev</title><link>http://www.saranomy.com/discussion/#comment-1851293466</link><description>&lt;p&gt;Is there a way to specify the seed used rather than randomizing a new seed each time a number is generated?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Fri, 13 Feb 2015 02:45:14 -0000</pubDate></item><item><title>Re: You Do Not Need to Tell Me I Have A Typo in My Documentation</title><link>https://yihui.org/en/2013/06/fix-typo-in-documentation/#comment-927573886</link><description>&lt;p&gt;I understood your intent, but couldn't resist the comment :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Wed, 12 Jun 2013 08:19:41 -0000</pubDate></item><item><title>Re: You Do Not Need to Tell Me I Have A Typo in My Documentation</title><link>https://yihui.org/en/2013/06/fix-typo-in-documentation/#comment-926350470</link><description>&lt;p&gt;You have a typo in your flowchart. Shouldn't it be "I have a typo in my documentation"? :p&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Tue, 11 Jun 2013 10:02:02 -0000</pubDate></item><item><title>Re: What exactly is “elegant” code in R?</title><link>http://news.mrdwab.com/2012/12/04/what-exactly-is-elegant-code-in-r/#comment-726897247</link><description>&lt;p&gt;Fellow Stack Exchange user and co-author of "R for Dummies", Andrie, shared the attached comic as his answer. (Caption: The only valid measurement of code quality: WTFs/minute.)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Tue, 04 Dec 2012 02:58:34 -0000</pubDate></item><item><title>Re: Making an A6 booklet in OpenOffice.org the easy way</title><link>http://news.mrdwab.com/2009/11/19/making-an-a6-booklet-in-openoffice-org-the-easy-way/#comment-672304983</link><description>&lt;p&gt;No problem. But A6 booklets are tiny and are probably not the best for printing manuals. A5 is much more appropriate for that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Fri, 05 Oct 2012 09:15:34 -0000</pubDate></item><item><title>Re: Stratified random sampling in R from a data frame</title><link>http://m.news.mrdwab.com/2011/05/20/stratified-random-sampling-in-r-from-a-data-frame/#comment-664074046</link><description>&lt;p&gt;No problem! I hope you have also checked out the updated version at Stackoverflow (&lt;a href="http://stackoverflow.com/a/9714207/1270695)" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/a/9714207/1270695)"&gt;http://stackoverflow.com/a/...&lt;/a&gt; which makes use of the "sampling" package.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Wed, 26 Sep 2012 23:27:55 -0000</pubDate></item><item><title>Re: Graphics: Power of graphics in knitr | knitr</title><link>https://yihui.org/knitr/demo/graphics/#comment-600408306</link><description>&lt;p&gt;I do use LyX, but I really like the integration between document creation and R in RStudio, where I can directly run code from an R markdown code chunk to make sure that everything in that chunk is working as expected. I guess that since I don't use the HTML export too often, it's more of a convenience factor of not having two programs open!&lt;/p&gt;&lt;p&gt;I'll definitely check out your templates though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Sat, 28 Jul 2012 00:02:17 -0000</pubDate></item><item><title>Re: Graphics: Power of graphics in knitr | knitr</title><link>https://yihui.org/knitr/demo/graphics/#comment-599581562</link><description>&lt;p&gt;I really like knitr and I currently use it as follows: (1) create an R-markdown file in RStudio, (2) use "knit html", and (3) use pandoc to convert the markdown file to a PDF. For me, this is a pretty efficient workflow and generally gets me the output I expect. &lt;/p&gt;&lt;p&gt;I also like the tufte LaTeX classes, which you have used in this manual.&lt;/p&gt;&lt;p&gt;I haven't been able to get the tufte classes to work as I expect them in this workflow though, and I'm not really sure where to seek help (you, RStudio, or pandoc). Things like \marginnote do work, but they don't parse the markdown or code chunks in them. In other words, I can get a basic document without a problem, but only without the bells-and-whistles of the tufte classes.&lt;/p&gt;&lt;p&gt;If you can point me in the right direction or suggest an improved workflow, that would be great! I suspect that the problem might be at the pandoc level, and that solving it would require creating a new template for pandoc, but I thought I would ask here first to see if such a thing has already been done.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Fri, 27 Jul 2012 07:49:15 -0000</pubDate></item><item><title>Re: Code Externalization: Use an external R script with your document | knitr</title><link>https://yihui.org/knitr/demo/externalization/#comment-587589188</link><description>&lt;p&gt;Ok. Got it working.&lt;/p&gt;&lt;p&gt;Perhaps it would be useful to mention that the title and author declarations in markdown should come before set-options for proper PDF generation.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;% title&lt;br&gt;% author&lt;br&gt;&lt;br&gt;```{r set-options, echo=FALSE, cache=FALSE}&lt;br&gt;read_chunk(...)&lt;br&gt;```&lt;br&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Sat, 14 Jul 2012 01:18:32 -0000</pubDate></item><item><title>Re: Code Externalization: Use an external R script with your document | knitr</title><link>https://yihui.org/knitr/demo/externalization/#comment-587155592</link><description>&lt;p&gt;Is there a way to do this with R markdown in RStudio? Currently I use ```{r echo=FALSE, eval=TRUE, comment=NA}&lt;br&gt;writeLines(readLines("path-to-r-script.R"))&lt;br&gt;```&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Fri, 13 Jul 2012 13:49:08 -0000</pubDate></item><item><title>Re: http://rpubs.com/gallery/googleVis</title><link>http://rpubs.com/gallery/googleVis#comment-547534328</link><description>&lt;p&gt;But the rank sorting needs to be fixed...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Mon, 04 Jun 2012 23:31:53 -0000</pubDate></item><item><title>Re: Stratified random sampling in R from a data frame</title><link>http://m.news.mrdwab.com/2011/05/20/stratified-random-sampling-in-r-from-a-data-frame/#comment-466204128</link><description>&lt;p&gt;After almost a year, I've updated this function thanks to something I noted on StackOverflow:&lt;/p&gt;&lt;p&gt;See: &lt;a href="http://stackoverflow.com/a/9714207/1270695" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/a/9714207/1270695"&gt;http://stackoverflow.com/a/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I'll probably post an update on this blog too.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Thu, 15 Mar 2012 14:31:34 -0000</pubDate></item><item><title>Re: Stratified random sampling in R from a data frame</title><link>http://m.news.mrdwab.com/2011/05/20/stratified-random-sampling-in-r-from-a-data-frame/#comment-415454694</link><description>&lt;p&gt;Hi. I hope you have found the function useful.&lt;/p&gt;&lt;p&gt;It sounds like you've solved the problem you were having, but I'm not sure I understand your follow up response here. Do you have an example you can share?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Thu, 19 Jan 2012 12:26:05 -0000</pubDate></item><item><title>Re: Using the reshape package in R for pivot-table-like functionality</title><link>http://news.mrdwab.com/2010/08/08/using-the-reshape-packagein-r/#comment-240176325</link><description>&lt;p&gt;I still need to get to grips with &lt;code&gt;plyr&lt;/code&gt; (pun intended?), but it appears it could also help with the wide-to-long reshape example. That example isn't a simple transpose example though--if it were, the dimensions of the output would be the same as the input, but with the lengths of the rows and columns switched.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Fri, 01 Jul 2011 14:35:32 -0000</pubDate></item><item><title>Re: Quickly reshaping data from &amp;#8220;wide&amp;#8221; to &amp;#8220;long&amp;#8221; formats in R</title><link>http://news.mrdwab.com/2010/04/18/reshaping-wide-to-long-in-r/#comment-240168020</link><description>&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;I know it's not exactly useless knowledge, but honestly speaking, I don't need R or much data organizing/manipulating/analyzing skills in my work... hence the "useless knowledge" part. This is more something I do out of a personal interest to learn and explore things that I find interesting, and hopefully share what I've found in a way that &lt;em&gt;others&lt;/em&gt; might find useful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Fri, 01 Jul 2011 14:27:08 -0000</pubDate></item><item><title>Re: We 2 Ours 1-1</title><link>http://news.mrdwab.com/2011/06/15/on-the-trucks-around-town/we-2-ours-1-1/#comment-232011186</link><description>&lt;p&gt;Glad you enjoyed it. I enjoyed making it!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Wed, 22 Jun 2011 12:58:08 -0000</pubDate></item><item><title>Re: The new sample size calculator for R (already)</title><link>http://news.mrdwab.com/2010/09/10/sample-size-calculator-for-r/#comment-232002631</link><description>&lt;p&gt;You're welcome.&lt;/p&gt;&lt;p&gt;Just out of curiosity, do you use R at your work? I'm curious about R's uptake in India's professional sector.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Wed, 22 Jun 2011 12:47:16 -0000</pubDate></item><item><title>Re: Stratified random sampling in R from a data frame</title><link>http://m.news.mrdwab.com/2011/05/20/stratified-random-sampling-in-r-from-a-data-frame/#comment-208053755</link><description>&lt;p&gt;Of course, standard tricks can also be used. For instance, if you wanted to take a sample of only groups "CA" and "NY" and drop "TX", you can use the following:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&amp;gt; stratified(dat[dat$E!="TX",], 1, 5, .1, 1)&lt;br&gt;   A  B           C   D  E&lt;br&gt;2 36 DD  0.33295037 0.2 CA&lt;br&gt;4 44 CC  0.70021365 0.8 CA&lt;br&gt;1 23 DD  0.61072635 0.5 NY&lt;br&gt;3 37 DD  1.06309984 1.5 NY&lt;br&gt;5 52 EE  0.04211587 1.7 NY&lt;br&gt;6 91 BB -1.91435943 0.7 NY&lt;br&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Fri, 20 May 2011 14:56:46 -0000</pubDate></item><item><title>Re: New (old) Pictures</title><link>http://news.mrdwab.com/2006/10/25/new-old-pictures/#comment-204007500</link><description>&lt;p&gt; Links have been updated to redirect to the &lt;em&gt;newest&lt;/em&gt; photo site on &lt;a href="http://mrdwab.com" rel="nofollow noopener" target="_blank" title="mrdwab.com"&gt;mrdwab.com&lt;/a&gt;.... Self-hosting photos has been a &lt;strong&gt;pain&lt;/strong&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Sun, 15 May 2011 09:44:11 -0000</pubDate></item><item><title>Re: Exciting day!</title><link>http://news.mrdwab.com/2006/10/14/exciting-day/#comment-204005123</link><description>&lt;p&gt; Well, the site is gone, but she Amy has moved on to much bigger things at &lt;a href="http://tnsms.org" rel="nofollow noopener" target="_blank" title="http://tnsms.org"&gt;http://tnsms.org&lt;/a&gt;. Be sure to check it out!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Sun, 15 May 2011 09:34:09 -0000</pubDate></item><item><title>Re: Using the reshape package in R for pivot-table-like functionality</title><link>http://news.mrdwab.com/2010/08/08/using-the-reshape-packagein-r/#comment-194795393</link><description>&lt;p&gt;Mauricio,&lt;/p&gt;&lt;p&gt;I'm not sure I understand entirely what you're looking for. Can you provide an example of the raw data and describe what you want to end up with?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mrdwab</dc:creator><pubDate>Sat, 30 Apr 2011 12:08:11 -0000</pubDate></item></channel></rss>