similar to: Dividing one column of form xx-yy into two columns, xx and yy

Displaying 20 results from an estimated 10000 matches similar to: "Dividing one column of form xx-yy into two columns, xx and yy"

2016 Jun 07
0
[Bug 1014] "nft list chain xx yy" list also sets from the table xx
https://bugzilla.netfilter.org/show_bug.cgi?id=1014 Pablo Neira Ayuso <pablo at netfilter.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Pablo Neira Ayuso
2003 Dec 06
3
Axe time of series in format yy-mm-dd
I'm trying to plot a ibm stock time series. I made the download of that series, ibm <- get.hist.quote(instrument = "ibm", start = "2003-01-01",quote=c("CL")) And ibm is a serie wiht this characteristic: Start = 37623 End = 37960 Frequency = 1 When I try to plot it, ts.plot(ibm) In the graphic the axe time is represented by 37623 ... 37960, How can I put
1999 Dec 07
1
chron yy/mm/dd
I'm not too familiar with chron, but I don't think it should drop the month and day in the second example following example: > chron(20000, format="y/m/d") [1] 124/10/04 > chron(20000, format="yy/m/d") [1] 2024 Paul Gilbert -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read
2009 Oct 01
2
Treating variables as symbols
Hey, I'm trying to find how to perform operations with a variable treated as a symbol. For, an extremely simple, example I want to integrate a*x with respect to x and I want to find the indefinite integral of this, (a*x^2/2), or the definite integral with some interval for x. Another example of such a use would be to create a function y<-function(x) {a*x} and by typig y(2) I would get the
2006 Feb 01
2
Dates entered as MM/DD/YY
I have some forms on my site that use text boxes to enter dates. They typically default to today''s date, in the format "MM/DD/YYYY" However, sometimes a user will erase the box and type in a date, but instead of typing 02/01/2006, they''ll type 2/1/06. Once the record is created in the mysql database, it reads as ''0006-02-01'' instead of
2011 Aug 16
1
Utilizing column names to multiply over all columns
## Hello there, ## I have an issue where I need to use the value of column names to multiply with the individual values in a column and I have many columns to do this over. I have data like this where the column names are numbers: mydf <- data.frame(`2.72`=runif(20, 0, 125), `3.2`=runif(20, 50, 75), `3.78`=runif(20, 0, 100), yy=
2010 Sep 21
1
Creating table from data frame
Hey, I have a dataset where two columns are factors and another column consists of values. Each combination of factors can only have a single value assigned to it. I'd like to represent this as a matrix or table where the rows are the first column factors and the columns the second column factors. So that each cell a_ij in the matrix represents the associated value for the factor combination
2011 Nov 20
2
Adding two or more columns of a data frame for each row when NAs are present.
I am fairly new to R and would like help with the problem below. I am trying to sum and count several rows in the data frame yy below. All works well as in example 1. When I try to add the columns, with an NA in Q21, I get as NA as mySum. I would like NA to be treated as O, or igored. I wrote a function to try to count an NA element as 0, Example 3 function. It works with a few warnings,
2010 Oct 22
1
Controlling number of numbers before R rewrites to "+e18" etc
Hey, I'm using R as a pre-processor for a large dataset with IDs which are numeric (but has no numeric meaning so can be seen as factors). I do some data formating and then write it out to a csv file. However the problem is that the IDs are very long, 18-22 chars long more precisely. R is constantly rewriting these IDs to the abbreviated +eX which hinders me from exporting the data to the
2011 Jan 02
1
lmtp (xxx@mydomain.yy): Error: user xxx@mydomain.yy: Initialization failed: Namespace '': mbox: mbox requires client_limit=1 for service
new Dovecot 2.0.8 installation on Opensuse 11.3 I got the error "lmtp (xxx at mydomain.yy): Error: user xxx at mydomain.yy: Initialization failed: Namespace '': mbox: mbox requires client_limit=1 for service" while trying to transfer mails by lmtp from postfix to dovecot. I googled and looked on the dovecot wiki about this client_limit issue, but no success. What's the syntax
2012 Feb 06
2
dividing values of each column in a dataframe
Hey Guys I want to divide(numerically) all the columns of a data frame by different numbers. Here is what I am doing but getting a weird error. The values in each column are not getting divided by the corresponding value in the denominator vector instead by the alternative values. I am sure I am messing up something. Appreciate your help -Abhi head(counts) WT_CON WT_RB MU_CON
2009 Jan 28
2
Logical subset of the columns in a dataframe
Hi R-helpers, I've been struggling with a problem for most of the day (!) so am finally resorting to R-help. I would like to subset the columns of my dataframe based on the frequency with which the columns contain non-zero values. For example, let's say that I want to retain only those columns which contain non-zero values in at least 1% of their rows. In Excel I would calculate a row
2013 Apr 18
3
dividing a long column to many short ones by a condition
hello i have a very long column of numbers. i want R to make a new column every time the value changes from zero. example for the column: 90.1194354 87.94788274 80.34744843 64.06080347 30.40173724 0 0 0 0 0 16.28664495 23.88707926 29.31596091 48.85993485 13.02931596 0 0 0 7.600434311 20.62975027 29.31596091 32.5732899 for this example i want to get 3 columns. thanks! [[alternative HTML version
2004 May 27
4
extract columns using their names
Hello, Is there a way to extract multiple columns from a dataframe using their names instead of their numbers? Currently I use: data2 <- data1[, c(1,3,9)] And I am looking for something like data2 <- data1[, c("XX","YY","ZZ")] I use the same dataframe for many purposes, and I run codes that change the order of the columns every time. Many thanks, Adrian
2009 Jan 20
2
Broken dovecot-uidlist files
I have just upgraded to 1.1.8, hoping to fix these types of errors: Jan 20 10:39:27 laura deliver(xxxxxx at example.net): Broken file /srv/storage/mail/store/net/example/xx/xxxxxx/Maildir/dovecot-uidlist line 156: Invalid data: Jan 20 10:41:19 laura dovecot: POP3(yy.yy at example.at): Broken file /srv/storage/mail/store/at/example/yy.yy/Maildir/dovecot-uidlist line 2: Invalid data:
2009 Sep 03
2
dividing a dataframe column by different constants
Dear R users, today I've got the following problem. Here you are a dataframe as example. There are some SAMPLES for which a CONCentration was recorded through TIME. The time during which the concentration was recorded is not always the same, 10 points for Sample A, 7 points for Sample B and 11 for sample C Also the initial concentration was not the same for the three samples. I would like
2007 Nov 20
2
html/form newbie: trying to upload a little data to a server
Hello! I've been trying for several hours to upload a few bits of data (not a file) from an html form to a server, and none of my variants have worked thus far. I've done some web searching, too. Anyway, here's the form: <form method="POST" action="mmsrequest"> <pre> UserID: <input type="text" NAME="userid"> Date :
2010 Feb 05
2
sum a particular column by group
Dear all, I have a table like this: > eds R.ID Region Gender Agegr Time nvisits 1 1 A F 60--64 1:00 1 2 2 O F 55--59 1:20 1 3 3 O F 55--59 3:45 3 4 4 S M 60--64 1:10 3 5 5 W F 55--59 12:30 1 6
2011 Aug 18
4
splitting sample names
I have a data frame like this xx<-data.frame(cbind(Sample=c('Ctrl_6h','1+0_6h','1+200_6h','1+5k_6h','Ctrl_5K_6h','ConA_6h'), IFIT1=c(24,25,24.7,24.5,24.2,24.8))) grep('[[:digit:]]h',xx$Sample) yy<-xx$Sample strsplit(yy,"_") I have to extract the time information separated by '_' in the sample
2010 Jun 08
3
partial matches across rows not columns
Hi R users, I am trying to omit rows of data based on partial matches an example of my data (seal_dist) is below: A quick break down of my coding and why I need to answer this - I am dealing with a colony of seals where for example A1 is a female with pup and A1.1 is that female's pup, the important part of the data here is DIST which tells the distance between one seal (ID) and another