search for: quagmire54321

Displaying 7 results from an estimated 7 matches for "quagmire54321".

2009 Mar 31
4
Convert Character to Date
Hello, I have a date in the format Year-Month Name (e.g. 1990-January) and R classes it as a character. I want to convert this character into a date format, but when I try as.Date(1990-January, "%Y-%B"), I get back NA. The function strptime also gives me NA back. Thanks. [[alternative HTML version deleted]]
2009 Mar 03
2
Characters To Matrix
Hi, I have a data set that I read in using readLines, but R classes it as a character string. The data set has multiple columns and rows, but I only want the first 2 columns in the form of a matrix. Thanks for the help. [[alternative HTML version deleted]]
2009 Mar 04
2
Number Regular Expressions
Hi, I'm trying to write a regular expression that captures numbers in the form 9,007,653,372,262.48 but does not capture dates in the form 09/30/2005 I have tried numerous expressions, but they all seem to return the dates as well. Thanks. [[alternative HTML version deleted]]
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...? ?1 + 1 > ? ?ph = parse(text=history()) > ? ?as.list(ph) > ? ?ph[length(ph)-1] > ? ?# expression(1 + 1) > ? ?eval(ph[length(ph)-1]) > ? ?# [1] 2 > > > vQ > ------------------------------ Message: 92 Date: Tue, 31 Mar 2009 00:14:12 -0700 (PDT) From: Bob Roberts <quagmire54321@yahoo.com> Subject: [R] Convert Character to Date To: r-help@r-project.org Message-ID: <662076.42273.qm@web112213.mail.gq1.yahoo.com> Content-Type: text/plain Hello,    I have a date in the format Year-Month Name (e.g. 1990-January) and R classes it as a character. I want to convert this...
2009 Mar 04
1
Eliminate Factors from Data Frame
Hi, I formed a 49 by 3 data frame by reading in a text file using read.table(), and combining it with a matrix that I made by using unlist() on a list of character strings. I would like to do some simple arithmetic operations on the elements in the data frame columns (e.g. column 3/column2) but the values in the data frame are stored as factors and using stringsAsFactors=FALSE did not work. I
2009 Apr 03
1
Functions Accessing Databases
Hello, I'm accessing a MySQL database from inside R and had a problem with a function. In the database, there is data from years 1985 to 2007 that I would like to retrieve. I can easily get the data from one year by the following: info1985=dbGetQuery(con, statement='the SQL query') Inside the statement, I have a column that is set to the desired year (e.g. table.column=1985) through
2009 Mar 06
2
Extract Row on Criteria
Hi, I have a data frame and I want to extract the entire rows that have the 20 largest numbers in column Z. How would I go about doing that? Thanks. [[alternative HTML version deleted]]