Displaying 20 results from an estimated 8000 matches similar to: "Comparing parts of strings"
2011 May 19
1
Creating a "shifted" month (one that starts not on the first of each month but on another date)
Hello!
I have a data frame with dates. I need to create a new "month" that
starts on the 20th of each month - because I'll need to aggregate my
data later by that "shifted" month.
I wrote the code below and it works. However, I was wondering if there
is some ready-made function in some package - that makes it
easier/more elegant?
Thanks a lot!
# Example data:
2019 Jan 25
0
[klibc:update-dash] [OUTPUT] Add ifdefs around MEM_OUT handling in outmem
Commit-ID: 8e826c07459371fae3b15ab05a65e178c08d8d60
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=8e826c07459371fae3b15ab05a65e178c08d8d60
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Mon, 27 Oct 2014 15:44:51 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] [OUTPUT] Add ifdefs
2020 Mar 28
0
[klibc:update-dash] dash: [OUTPUT] Add ifdefs around MEM_OUT handling in outmem
Commit-ID: 5064a7b95ea5c2308b816818e513a0fbb363dc3a
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=5064a7b95ea5c2308b816818e513a0fbb363dc3a
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Mon, 27 Oct 2014 15:44:51 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: [OUTPUT] Add
2012 Jul 28
1
[PATCH] ssh-keygen: support public key import/export using SubjectPublicKeyInfo
ssh-keygen already supports importing and exporting ssh keys using
various formats.
The "-m PEM" which should have been the easiest to be used with
various of external application expects PKCS#1 encoded key, while
many applications use SubjectPublicKeyInfo encoded key.
This change adds SubjectPublicKeyInfo support, to ease integration
with applications.
Examples:
## convert
2020 Mar 28
0
[klibc:master] dash: output: Fix clang warnings about GNU old-style field designator
Commit-ID: 31ef3f49d4fd96b67b0e578c5f672fe428430b14
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=31ef3f49d4fd96b67b0e578c5f672fe428430b14
Author: Antonio Ospite <ao2 at ao2.it>
AuthorDate: Sat, 15 Dec 2018 18:49:32 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 16:20:40 +0000
[klibc] dash: output: Fix clang warnings
2004 Mar 16
0
VS: Documentation on how to put classes and methods in packages with namespace?
> -----Oprindelig meddelelse-----
> Fra: Jens Henrik Badsberg
> Sendt: 16. marts 2004 11:37
> Til: 'r-help@stat.math.ethz.ch'
> Emne: Documentation on how to put classes and methods in packages with namespace?
>
>
> Documentation on how to put classes and methods in packages with namespace?
>
> How should I define my classes and methods in
2008 May 19
2
From strings to numbers
Dear all,
I would like to know if there is an easy to transform a vector of strings to
a vector of integers.
Ex:
("ab","ab","bb","cat","cat","ab") will be
(1, 1, 2, 3, 3, 1)
Thx,
Naira
--
View this message in context: http://www.nabble.com/From-strings-to-numbers-tp17315179p17315179.html
Sent from the R help mailing list archive at
2012 Jul 02
0
[klibc:master] [EVAL] Remove unused EV_BACKCMD flag
Commit-ID: 4467d6e5caa5c97023c824114cf76c7d862340e5
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4467d6e5caa5c97023c824114cf76c7d862340e5
Author: Jonathan Nieder <jrnieder at gmail.com>
AuthorDate: Thu, 7 Jul 2011 11:55:42 +0800
Committer: maximilian attems <max at stro.at>
CommitDate: Mon, 2 Jul 2012 10:38:03 +0200
[klibc] [EVAL] Remove unused EV_BACKCMD
2017 Jul 30
1
Add Anova statistics in each figure
Hi R Users,
I created interaction plots in ggplot2 and was trying to add output of two way ANOVA models, especially only interaction ( example treatment*control F(XX, XX) = xxx, p = xxx) into figures, but i was not able to add. Would you mind to help on how I can add information into each figure? I have attached the example data and the code that I used for this.
dat<-structure(list(Sites
2019 Jan 25
0
[klibc:update-dash] eval: Return status in eval functions
Commit-ID: ef5fd2060f3c7d1a4a22a079bc1c32b61964bb5f
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=ef5fd2060f3c7d1a4a22a079bc1c32b61964bb5f
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Tue, 7 Jun 2016 16:47:59 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] eval: Return status in
2020 Mar 28
0
[klibc:update-dash] dash: eval: Return status in eval functions
Commit-ID: 777b77571a451d5fc5dfc04749854ea40abe8093
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=777b77571a451d5fc5dfc04749854ea40abe8093
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Tue, 7 Jun 2016 16:47:59 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: eval: Return
2020 Mar 27
2
[PATCH v2 5/5] Clean up clang warnings
- Convert the "old style" GNU field designator extension to the new
style.
- Use proper indexing into a string literal.
- Use "%s" for the format string in "fmtstr".
- Add or remove casts of the "void *" argument of ioctl.
- Convert "if (!exitstatus == isor)" to "if ((!exitstatus) == isor)"
which retains the current semantics, but may
2003 Jul 17
3
how to divide a string into characters? - for comparing strings that is
Hi
I am searching for a way to do something like "ABC" -> c("A","B","C"). How can this be accomplished?
I tried cut() and split(), but they do something else, it seems.
The purpose for doing this is to find the number of common (and uncommon) characters, i.e. ultimately I want something like this:
> foo("ABD","ADE")
c(2,1) # 2
2010 Aug 24
2
Comparing/diffing strings
Hi all,
all.equal is generally very useful when you want to find the
differences between two objects. It breaks down however, when you
have two long strings to compare:
> all.equal(a, b)
[1] "1 string mismatch"
Does any one know of any good text diffing tools implemented in R?
Thanks,
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice
2017 Oct 12
0
comparing two strings from data
It's generally a very good idea to examine the structure of data after you have read it in. str(data2) would have shown you that read.csv() turned your strings into factors, and that's why the == operator no longer does what you think it does.
use ...
data_2 <- read.csv("excel_data.csv", stringsAsFactors = FALSE)
... to turn this off. Also, the %in% operator will achieve
2017 Oct 13
1
comparing two strings from data
Combining and completing the advice from Greg and Boris the complete
solution is two lines:
data_2 <- read.csv("excel_data.csv", stringsAsFactors = FALSE)
match_list <- match( data_2$data1, data_2$data2 )
The vector match_list will have the matching position when it exists and
NA's otherwise. Its length will be the same as the length of data_2$data1.
You should get
2020 Mar 28
0
[klibc:update-dash] dash: redir: Handle nested exec within REALLY_CLOSED redirection
Commit-ID: 9a5ae0a757f8e021a83941d34a5876760445ddb6
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=9a5ae0a757f8e021a83941d34a5876760445ddb6
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Fri, 18 Jan 2019 13:01:18 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: redir: Handle
2007 Aug 23
0
[git patch] klibc dash 0.5.4 update
hello hpa,
please pull for the dash update
git pull git://brane.itp.tuwien.ac.at/~mattems/klibc.git maks
with this changes:
Alexey Gladkov (1):
Check return code for getgroups and fwrite
Herbert Xu (17):
Remove unnecessary truncation in _STPUTC
Always call conv_escape_str in echocmd
Fix \c spillage across echo commands
Release 0.5.3.
Make eval with empty
2009 Feb 19
4
problem with comparing a part of string with whole string
Hi all,
I got one problem with comparing strings like if any string is like
"*RIGHT, EPICARDIUM: FOCUS, GRAY-WHITE, SINGLE, APPROX 0.6 CM IN DIAMETER*."
and i have to compare "*GRAY-WHITE*" with the above string
or otherwise i have to compare " *TUMOR BENIGN*" this string
with
"*MEDULLRY TUMOR BENIGN,TYP PHEOCHROMOCYTOMA*"
i
2008 Sep 24
1
splitting strings efficiently
I have a very long list of strings. Each string actually contains multiple
values separated by a semi-colon. I need to turn each string into a vector
of the values delimited by the semi-colons. I know I can do this very
laboriously by using loops, nchar, and substr, but it is terribly slow. Is
there a basic R function that handles this situation? If not, is there
perhaps a faster way to do it than