similar to: Creating a simple sum (or: I suck at blocks!)

Displaying 20 results from an estimated 4000 matches similar to: "Creating a simple sum (or: I suck at blocks!)"

2005 Aug 22
2
Symbols as Parameters
Hey all, I''ve been staring at the pickaxe, experimenting, and looking through some of the Rails API but I can''t put this simple thing together. I want to create a method that can have zero or more parameters and some of those are symbols. A very simple example would look something like this: find(options = {}) if options[:unique] puts ''Do the unique
2017 Jun 12
3
count number of stop words in R
define your string as whatever object you want: data <- "Mhm . Alright . There's um a young boy that's getting a cookie jar . And it he's uh in bad shape because uh the thing is falling over . And in the picture the mother is washing dishes and doesn't see it . And so is the the water is overflowing in the sink . And the dishes might get falled over if you don't fell
2017 Jun 12
0
count number of stop words in R
Defining data as you mentioned in your respond causes the following error: Error in UseMethod("tm_map", x) : no applicable method for 'tm_map' applied to an object of class "character" I can solve this error by using Corpus(VectorSource(my string)) and the using your command but I cannot see the number of stop words in my string! On Monday, June 12, 2017 8:36
2009 Jul 10
2
how can I download an english version of R ?
Dear colleagues, I am Professor of Operations Management at IUM, Intl. University of Monaco. The language at IUM is English and I want to test R. But I'm unable to get an English version (only useless French). Please help me. Thanks, Casimir SYSTEMS CONSULT, Pr Dr C. de RHAM 17 av de l'Annonciade, MC-98000 MONACO Tl +377 93 50 68 65, Fx +377 93 50 69 47 Google Earth:
2017 Jun 12
3
count number of stop words in R
You can define stop words as below. data <- tm_map(data, removeWords, stopwords("english")) Patrick Casimir, PhD Health Analytics, Data Science, Big Data Expert & Independent Consultant C: 954.614.1178 ________________________________ From: R-help <r-help-bounces at r-project.org> on behalf of Bert Gunter <bgunter.4567 at gmail.com> Sent: Monday, June 12, 2017
2017 Jun 12
0
count number of stop words in R
Thanks for your reply. I know the command data <- tm_map(data, removeWords, stopwords("english")) removes English stop words, I don't know how should I count stop words of my string: str="Mhm . Alright . There's um a young boy that's getting a cookie jar . And it he's uh in bad shape because uh the thing is falling over . And in the picture the mother is
2017 Aug 23
2
Comparing 2 dale columns
Dear R fellows, I created a new column Date_flag to compare the dates of COL1 and COL2 using the code below. But it showed that 5/1/15 is greater than 6/1/2014 and 5/1/2015 greater than 7/1/2014 despite the year is greater. How do I fix that? I did try to format as %y/%m/%d but it does not fix that. data$Date_Flag <- ifelse(data$COL2 > data$COL1, 0,1) COL1 COL2 6/1/14
2017 Aug 23
2
Comparing 2 dale columns
Thanks. But when I apply your codes I get all NA instead of TRUE and FALSE ________________________________ From: PIKAL Petr <petr.pikal at precheza.cz> Sent: Wednesday, August 23, 2017 11:20:00 AM To: Patrick Casimir; r-help at r-project.org Subject: RE: Comparing 2 dale columns Hi your code is wrong. I get > test<-read.table("clipboard", header=T) > str(test)
2017 Aug 23
0
Comparing 2 dale columns
Patrick, ## Run the following script an notice the different values of the dataframe "data" in each instance. # I understand you have done something like the following: data <- data.frame(COL1 = c("6/1/14", "7/1/14"), COL2 = c("5/1/15", "5/1/15"), stringsAsFactors = FALSE) data$Date_Flag <- ifelse(data$COL2 >
2005 Jan 30
1
S4 packages and .Rdata file.
Dear developers. Have spend just 1 h searching for a bug in a new version of a new version of a package. I was getting a segfault all the time. "Funny" thing - there was no error neither in the S nor in the C code. To solve the problem I had to delete the .Rdata file! What I observed. If the .Rdata file was generated while a previous release of a package was installed in the
2006 Jan 12
24
The Guilt List
I''m not a paid developer, but I still feel guilty. I thought it might be entertaining to have a little "programmer confession." So let''s hear an answer to this simple question: What makes you guilty about your Rails development? Mine is a bad one: I don''t write tests. I understand that TDD makes sense, but I just don''t do it. I''ve
2017 Aug 22
1
Convert Factor to Date
This is large data set Spencer. What about when the dates change as below: COL1 COL2 Jan-14 1-Aug-16 Feb-14 1-Aug-16 Mar-14 1-Aug-16 Apr-14 1-Aug-16 May-14 1-Aug-16 Jun-14 1-Aug-16 Jul-14 1-Aug-16 Aug-14 1-Aug-16 Sep-14 1-Aug-16 Oct-14 1-Aug-16 Nov-14 1-Aug-16 Dec-14 1-Aug-16 Jan-15 1-Aug-16 Feb-15 1-Aug-16 Mar-15 1-Aug-16 Apr-15 1-Aug-16 May-15 1-Aug-16 Jun-15 1-Aug-16
2017 Aug 22
5
Convert Factor to Date
Dear R Fellows, I Have a dataset( data1) with 2 columns of date showing a class of factor. How to convert them to date? Then compare them, keep the greater date only in a new column. Using as.Date to change the class to Date but the data becomes NA. Much Thanks COL1 COL2 Apr-16 1-Nov-16 May-16 1-Nov-16 Jun-16 1-Nov-16 Jul-16 1-Nov-16 Aug-16 1-Nov-16 Sep-16 1-Nov-16 Oct-16 1-Nov-16
2006 Jan 23
3
prototype.js: enumerable mixin for hash broken
Hello everyone. I am not sure if this is the right place to post, please redirect me if there is a mailinglist more specifically dealing with prototype.js. After playing around with the very inspiring prototype library I have found a rather annoying thing, that makes the usefulness of the Enumerable mixin for Hashes questionable, if I am not totally wrong (again :-). Here an example:
2007 Oct 01
2
Idioms for empty dataframes
I'm fairly new to R, coming from a programming background -- it's quite nice to work with dataframes, though, as opposed to explicit iteration. One thing I've found, which is surprising is that zero-length dataframes seem to cause errors: > t <- data.frame(bob=c(100)) > order(t$bob) [1] 1 > t1 <- t[t$bob < 50] > order(t1$bob) Error in order(na.last, decreasing,
2005 Dec 30
6
Rails in High School Curriculum?
Hi folks, I''m working with a local high school in the Portland, OR area on the subject of computer science curriculum. We are thinking of introducing a class in web development and I think Rails would be a perfect vehicle. I''ve done some searching on the web but haven''t found any suggestion of HS curriculum for Rails. Any pointers or suggestions? Thanks, ---
2017 Aug 23
0
Comparing 2 dale columns
Hi your code is wrong. I get > test<-read.table("clipboard", header=T) > str(test) 'data.frame': 2 obs. of 2 variables: $ COL1: Factor w/ 2 levels "6/1/14","7/1/14": 1 2 $ COL2: Factor w/ 1 level "5/1/15": 1 1 > test$COL2<- as.Date(as.character(test$COL2, format="%y/%m/%d")) > test$COL1<-
2017 Aug 22
0
Convert Factor to Date
On 2017-08-22 1:30 PM, Patrick Casimir wrote: > Dear R Fellows, > > > I Have a dataset( data1) with 2 columns of date showing a class of factor. How to convert them to date? Then compare them, keep the greater date only in a new column. Using as.Date to change the class to Date but the data becomes NA. ????? When I specified a format with the second date, I got the desired
2013 Feb 11
5
split dates array with take_while does not work ?
I wonder why ruby core method ''take_while'' does not work as expected in the below Rails console example: irb(main):003:0> arr = [] => [] irb(main):004:0> arr << Date.today - 15.days => [Sun, 27 Jan 2013] irb(main):005:0> arr << Date.today - 25.days => [Sun, 27 Jan 2013, Thu, 17 Jan 2013] irb(main):006:0> arr << Date.today => [Sun, 27
2017 Sep 08
2
Status of debuginfo-tests
On Fri, Sep 8, 2017 at 9:00 AM Adrian Prantl <aprantl at apple.com> wrote: > > > Eventually, some tests will inevitably need to Windows or Posix > specific, so you're going to have to have all this extra stuff (the new > substitutions, the different command lines, the custom output formats, > etc. So I think something like this provides maximal encouragement of >