Displaying 20 results from an estimated 300 matches similar to: "manipulating strings"
2003 Apr 04
2
Bug in %in% (match)
Hi,
Am I hitting some limit in match? Consider the following example:
> tst<-seq(100,125,by=.2)%in%seq(0,800,by=.1)
> sum(tst)
[1] 76
> seq(100,125,by=.2)
[1] 100.0 100.2 100.4 100.6 100.8 101.0 101.2 101.4 101.6 101.8 102.0
102.2
[13] 102.4 102.6 102.8 103.0 103.2 103.4 103.6 103.8 104.0 104.2 104.4
104.6
[25] 104.8 105.0 105.2 105.4 105.6 105.8 106.0 106.2 106.4 106.6 106.8
2003 Apr 04
2
Bug in %in% (match)
Hi,
Am I hitting some limit in match? Consider the following example:
> tst<-seq(100,125,by=.2)%in%seq(0,800,by=.1)
> sum(tst)
[1] 76
> seq(100,125,by=.2)
[1] 100.0 100.2 100.4 100.6 100.8 101.0 101.2 101.4 101.6 101.8 102.0
102.2
[13] 102.4 102.6 102.8 103.0 103.2 103.4 103.6 103.8 104.0 104.2 104.4
104.6
[25] 104.8 105.0 105.2 105.4 105.6 105.8 106.0 106.2 106.4 106.6 106.8
2007 Jul 23
4
nnet 10-fold cross-validation
Hi
It clear that to do a classification with svm under 10-fold cross
validation one uses
svm(Xm, newlabs, type = "C-classification", kernel = "linear",cross =
10)
What corresponds to the nnet?
nnet(.....,cross=10)?
Regards
2005 Jul 12
2
what is the .Machine$double.xmin for a 64 bit machine?
I use a 32 bit machine. For those using 64 bit machines,
what is the .Machine$double.xmin for for machines?
regards. Stephen.
----- Original Message -----
From: Achim Zeileis <Achim.Zeileis at wu-wien.ac.at>
Date: Tuesday, July 12, 2005 10:51 am
Subject: Re: [R] exact values for p-values - more information.
> On Tue, 12 Jul 2005, S.O. Nyangoma wrote:
>
> > > If they
2005 Jan 14
3
summing subsets of rows matrices
I have a large data matrix (4460X3500) and I want to sum row subsets in groups of 10 (bin). Is there an efficient way to do this in R without using loops. Looping takes forever to perform this task!
For example suppose we have the matrix
> matrix(1:12,6,2)
[,1] [,2]
[1,] 1 7
[2,] 2 8
[3,] 3 9
[4,] 4 10
[5,] 5 11
[6,] 6 12
my problem is to sdum for
2005 Jul 20
5
Chemoinformatic people
Dear colleague,
Just an e-mail to know if they are people working in the field of chemoinformatic that are using R in their work. If yes I was wondering if we couldn't exchange tips and tricks about the use of R in this area ?
Best regards
Fred Ooms
[[alternative HTML version deleted]]
2005 Sep 13
3
where is eda library (Prof. Ripley's Exploratory Data Analysis Library)
Hi
I want to install eda library. Where can I download it?
I use R version 2.1.0 on Linux.
Thanks.
Stephen.
----- Original Message -----
From: Luis Ridao Cruz <Luisr at frs.fo>
Date: Tuesday, September 13, 2005 1:32 pm
Subject: Re: [R] How to erase objects
> ?rm
>
>
> >>> <v.schlecht at arcor.de> 13/09/2005 12:08:55 >>>
>
> Hi, I admit that
2005 Jul 11
4
exact values for p-values - more information.
Hi there,
If I do an lm, I get p-vlues as
p-value: < 2.2e-16
This is obtained from F =39540 with df1 = 1, df2 = 7025.
Suppose am interested in exact value such as
p-value = 1.6e-16 (note = and not <)
How do I go about it?
stephen
2011 Nov 01
3
factor level issue after subsetting
Dear list,
I cannot figure out why, after sub-setting my data, that particular item
which I don't want to plot is still in the newly created subset (please
see example below). R somehow remembers what was in the original data
set. A work around is exporting and importing the new subset. Then it's
all fine; but I don't like this idea and was wondering what am I missing
here?
Thanks!
2005 Aug 15
2
queer data set
I have a dataset that is basically structureless. Its dimension varies
from row to row and sep(s) are a mixture of tab and semi colon (;) and
example is
HEADER1 HEADER2 HEADER3 HEADER3
A1 B1 C1 X11;X12;X13
A2 B2 C2 X21;X22;X23;X24;X25
A3 B3 C3
A4 B4 C4 X41;X42;X43
A5 B5 C5 X51
etc., say. Note that a blank
2009 Jun 03
1
insert and count missing data
Hi R-users,
I have missing data for the month. My question is how do I insert the missing month and fill up the cell with 'na' for the rain amount? Then I would like to count the percentage of missing data.
No Year month rain
1398 1985 10 104.2
1399 1985 11 138.0
1400 1985 12 120.4
1401 1986 1 12.6
1402 1986 2 19.4
1403 1986 3 1.0
1404 1986 4 58.8
2012 Oct 15
1
performance analytics
hi Michael,
am sorry for the incomplete reply .
csv file data havinmg like this ,
>getSymbols("IBM")
>weekly_data = to.weekly(week_name)
>dataframe=data.frame(weekly_data)
>outputfile_name="F:\\R-programs\\Outputfile.csv"
>write.table(dataframe, file =outputfile_name,sep = ",",col.names
=TRUE,row.names = T)
> datafrom_table <-
2008 Sep 17
2
lately pop3 with #define DEBUG needs GDB=1
I'm not sure when this happened.
In yesterday dovecot-1.1 hg if pop3 is compiled with DEBUG defined, it
needs GDB=1 otherwise it ends with:
Panic: Leaked file fd 4: dev 104.2 inode 3342766
Not sure if this can be caused by the fact that I call pop3 with a bash script.
protocol pop3 {
mail_executable = /usr/libexec/dovecot/pop3.sh
inside I've something like
if [ x`id -un` =
2011 Sep 09
2
Comments inside a line? Not possible?
Hello!
In the guidelines I've read:
"Comment your code. Entire commented lines should begin with # and one space.
Short comments can be placed after code preceded by two spaces, #, and
then one space. "
Just wondering if there is no way to comment something out "in the
middle" of a line? Example:
Original code:
mystrings<-c("a","b","c")
2011 Nov 11
2
Estimating IRT models by using nlme() function
Hi,
I have a question about estimating IRT models by using nlme, not just rasch
model, but also other models.
Behavior Research Methods
<http://www.springerlink.com/content/1554-351x/> Volume
37, Number 2 <http://www.springerlink.com/content/1554-351x/37/2/>, 202-218,
DOI: 10.3758/BF03192688
Using SAS PROC NLMIXED to fit item response theory models (2005). Ching-Fan
2014 Nov 02
0
nutdrv_qx and Best Power equipment
> I finally got a Best Power Patriot Pro II fixed up with a new battery and cable, and tried it with nutdrv_qx (since it uses a variant of the Q1 protocol). It auto-detected the use of Q1.
>
> It looks like things mostly work:
Nice, merging bestups.c into nutdrv_qx has been on my todo list for a
while, let's see how far we can get.
> 1) The bestups driver uses an "ID"
2005 Jul 11
4
exact values for p-values
Hi there,
If I do an lm, I get p-vlues as
p-value: < 2.2e-16
Suppose am interested in exact value such as
p-value = 1.6e-16 (note = and not <)
How do I go about it?
stephen
2006 Oct 19
1
Problem Reading from .txt
I apologize that I've asked a similar question before, but being new to
R I don't think I did a very good job of formating the question.
I've included a text file since the date set is somewhat large.
What I have is a huge string of numbers in a text file. The numbers are
all separated by comma's and the groups are separated by a semicolon.
What I would like to do is read each
2008 Sep 24
1
t tests/ANOVA
I have a set of data that comprises genome numbers in single eggs from three different parasite clones - 3D7, HB3, and MIX. I can draw a boxplot of the genome numbers for each clonefed but how do I carry out a t test or ANOVA to compare if the means are signifcantly different? (Data is listed below)
Many thanks,
Georgina Humphreys
clonefed genomes
HB3 21.3
HB3 23.5
HB3 25.9
3D7 27.2
HB3 28.1
2011 Oct 11
1
singular gradient error in nls
I am trying to fit a nonlinear regression to infiltration data in order to
determine saturated hydraulic conductivity and matric pressure. The
original equation can be found in Bagarello et al. 2004 SSSAJ (green-ampt
equation for falling head including gravity). I am also VERY new to R and
to nonlinear regressions. I have searched the posts, but am still unable to
determine why my data come up