Displaying 20 results from an estimated 400 matches similar to: "substring"
2008 Feb 12
2
how to specify modes of certain fields in read.table
I have a data file with 50 columns. Among them, there are two
coordinates, X and Y
X
Y
641673.78807
3607080.78438
641436.56207
3607108.30543
641165.28042
3607136.82957
640879.58373
3607116.20568
When I use read.table, it rounds X and Y to the maximal 8 decimal number
as.
641673.8 3607081
641436.6 3607108
641165.3 3607137
640879.6 3607116
640683.5 3607105
My question
2008 Feb 11
2
how to generate a column based on other columns in a data frame
HI,
I am working on a data set with multiple collections of mosquitoes at
sampling sites. Each row represents a collection of individual samples
with coordinates for each collection.
... X, Y,...
1 36.435 30.118
2 36.435 30.118
3 36.435 30.118
4 35.329 29.657
5 35.329 29.657
6 36.431 30.111
7 36.431 30.111
8 35.421 29.797
9 35.421 29.797
10 35.421 29.797
2008 Sep 07
1
run optim() on a list
Hi,
I am at the end of my wit to figure out how to run the optim function on
a list.
Basically, I have a data set of three columns as "Site", "Pool" and
"Positivity" ( the full data set is copied at the end). I want to run
the maximal likelihood estimation separately on subsets split by "Site"
data<-read.table(...)
2008 Jan 31
1
decrease amount of ticks on y axis in lattice levelplot
Hi all,
How can I decrease the number of ticks on the y-axis in a lattice
levelplot()? I have as many ticks displayed on the y-axis as I have
columns of data (1000 columns), how can I decrease this amount of ticks,
while still properly displaying all the data?
Note that I get my data from a matrix object, in which the z-values of
the levelplot are the actual values in the matrix, whereas the
2010 Jan 15
1
cbind or ?
Hey Guys,
It sure seems I get stuck on things that should be easy.
Heres my question:
PARCELS<-by(ResImp[ , "ACCOUNTNO"], ResImp["Property"], length)
> PARCELS
Property: UNSOLD
[1] 9053
-------------------------------------------------------------------------------------------
Property: SOLD
[1] 578
2008 Sep 13
0
FreeBSD 7.1-BETA/6.4-BETA Available...
The FreeBSD 7.1-BETA and 6.4-BETA builds are now available on the
FreeBSD FTP mirror sites. This is the first step in the release process
for FreeBSD-7.1 and FreeBSD-6.4. This set of builds do not include
pre-built packages. The ISOs are available from:
ftp://ftp.freebsd.org/pub/FreeBSD/releases/${arch}/ISO-IMAGES/7.1/
ftp://ftp.freebsd.org/pub/FreeBSD/releases/${arch}/ISO-IMAGES/6.4/
2002 Jul 06
2
.iso file corrupted
Hello,
On doing "$ rsync --progress --archive --partial
-vvv
rsync://carroll.cac.psu.edu/redhat-ftp/redhat/linux/7.3/en/iso/i386/valhalla
-i386-disc1.iso ", I got the following output
<---------------------------------------------------------------------------
------>
local_version=24 remote_version=26
receiving file list ...
recv_file_name(valhalla-i386-disc1.iso)
received 1
2013 Dec 09
0
FreeBSD 10.0-RC1 now available
The first RC build of the 10.0-RELEASE release cycle is now available
on the FTP servers for the amd64, i386, ia64, powerpc, powerpc64 and
sparc64 architectures.
* Please see the change list for an important note regarding the
bsdinstall(8) ZFS on GELI option.
The image checksums follow at the end of this email.
ISO images and, for architectures that support it, the memory stick images
are
2019 Feb 20
0
Bug: time complexity of substring is quadratic as string size and number of substrings increases
Update: I have observed that stringi::stri_sub is linear time complexity,
and it computes the same thing as base::substring. figure
https://github.com/tdhock/namedCapture-article/blob/master/figure-substring-bug.png
source:
https://github.com/tdhock/namedCapture-article/blob/master/figure-substring-bug.R
To me this is a clear indication of a bug in substring, but again it would
be nice to have
2006 Mar 15
5
Recent 6.1-PRE: burncd: ioctl(CDRIOCFIXATE): Input/output error
I'm running:
localhost(6.1-P)[21] uname -a
FreeBSD localhost 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #19: Wed Mar 15 07:15:25 PST 2006 root@g1-18.catwhisker.org.:/common/S2/obj/usr/src/sys/LAPTOP_30W i386
localhost(6.1-P)[22]
I figured I'd grab a copy of the recent 6.1-BETA4 (disc1) ISO to
try it out & hand it out to folks....
It seems to have worked, but I got a bit of a whine
2008 Jan 24
5
Can''t boot from ISO image...
Hi,
I''ve been trying to boot from a RHEL4 install iso without much luck
(the xen way).
The Host is:
RHEL 5.1
xen-3.0.3-41.el5
Here is my guest config:
# -*- mode: python; -*-
#============================================================================
# Python configuration setup for ''xm create''.
# This script sets the parameters used when a domain is created using
2005 Jul 28
0
vsftpd and Kickstart
I'm trying to setup a kickstart server that will use ftp. I created a
user account and put the ISO images in /home/centos. I created a
directory /home/centos/disc1 and mounted the first ISO image there.
When I try to do the ftp install I keep getting an error "Unable to
retrieve ftp://my.ftpserver.com//home/centos/disc1/CentOS/base/netstg2.img"
I tried different versions of the
2013 Nov 05
1
FreeBSD 10.0-BETA3 now available
The third BETA build of the 10.0-RELEASE release cycle is now available
on the FTP servers for the amd64, i386, ia64, powerpc, powerpc64 and
sparc64 architectures.
The image checksums follow at the end of this email.
ISO images and, for architectures that support it, the memory stick images
are available here:
ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.0/
(or any of the FreeBSD
2004 May 25
1
FW: Trouble with ACLs
Well, I screwed around a bit and after doing a "wbinfo -u" and a "wbinfo -g"
I stopped getting the "unable to map SID" error. Now I'm getting a
different error. ;-D
[2004/05/25 09:09:34, 3] smbd/dosmode.c:unix_mode(111)
unix_mode(FC2-i386-disc1.iso) returning 0744
[2004/05/25 09:09:34, 3]
smbd/posix_acls.c:convert_canon_ace_to_posix_perms(2500)
2006 Jul 11
4
how get a substring of a string
hello all
i want to get the substring of a string
i found a source that do it...but don''t work in my machine
example
"the source of ruby".chars[0..5]
that must return "the so"
--
Posted via http://www.ruby-forum.com/.
2006 Mar 28
0
substring and html in the db
Hey guys,
Ran into a snag today and was wondering if anyone can give me a hand. I have
a blog type application that I''m developing. There is a page "list all
entries" which looks like this:
Title1
posted by Person1 about 2 hours ago
test1 test1test1 test1test1 test1test1 test1test1 test1test1 test1test1
test1... (click here for full post)
Title2
posted by Person1 about 2
how to count the total number of (INCLUDING overlapping) occurrences of a substring within a string?
2009 Dec 20
1
how to count the total number of (INCLUDING overlapping) occurrences of a substring within a string?
Last one for you guys:
The command:
length(gregexpr('cus','hocus pocus')[[1]])
[1] 2
returns the number of times the substring 'cus' appears in 'hocus pocus'
(which is two)
It's returning the number of **disjoint** matches. So:
length(gregexpr('aa','aaa')[[1]])
[1] 1
returns 1.
**What I want to do:**
I'm looking for a way to count
2013 Sep 30
1
str_count counts the substring
I am trying to count the number of times a word occurs in a string.
and using str_count function from the package stringr. This function counts
the substrings as well.
Is there a way in which I can exclude the substring count and just take the
exact match.
Thanks in advance.
--
Thanks and Regards
Agrima Srivastava
-------------------------------------------------------------------------------
2010 Apr 29
2
substring comparison
Hi all,
I'm writing a script to do some basic text analysis in R. Let's assume
I have a data frame named data which contains a column named 'utt'
which contains strings. Is there a straightforward way to achieve
something like this:
data$ContainsThe <- ifelse(startsWith(data$Utt,"the"),"y","n")
or
data$ContainsThe <-
2014 May 02
2
substring if a record has a "\"
Hello togehter,
i have a litte problem. I have a data.frame with a view entries like this
one:
1
A Marius Muller -\nIT Services
B Rockwood\nBrockhues
C Microlog Services\nMarcos
D Firefox Services
I now want only the first description in the column until the "\n". How can
i do this?
The solution look like this one:
1
A Marius Muller -
B Rockwood
C Microlog