Hi:
I have one million names of city and their population and want to make
a hash so that by giving key = city, the hash function will return its
population.
I use the hash package in R as follows:
h <- hash(c(as.vector(df$city)), c(as.vector(df$population)))
But getting the following error:
Err
Hi:
I am trying to compute n-grams using package tm and tau with following code:
tokenize_ngrams <- function(x, n=3)
return(rownames(as.data.frame(unclass(textcnt(x,method="string",n=n)
texts <- c("This is the first document.", "This is the second file.",
"This is the third text.")
corpus <-
Hello,
The Scopus bibliographic database allows one to manually download
publications. Is there any R package for accessing scopus data ? How
can it be accessed in R?
Thanks:
John
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listin
Hi:
I am running the following code to query Pubmed database, but getting
the error "couldn't connect to host".
library(RCurl)
library(XML)
library(tm)
url <- "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?";
q <- "db=pubmed&term=saunders+nf[au]&usehistory=y"
esearch <- xmlTreePars
Hi:
I am trying to implement a bandwidth reduction algorithm for a (M x
N) binary matrix using the GA package in R.
I am using the folloging code to get the optimal permutation for rows
and columns (optimization in two dimensions).
M <- matrix(c(0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1,
Dear all,
I have a binary matrix
0 0 0 0 0
1 1 1 0 0
1 1 1 0 0
0 0 0 0 0
0 0 0 1 1
0 0 0 1 1
I want to find the location of all the square and rectangular 1 blocks, like
First block in row=2, col=1 to row=3, col=3.
Second block in row=5, col=4, to row=6, col=5.
How can I find such blocks of 1?
Hi:
I am trying to analyze an yeast gene expression data
http://arep.med.harvard.edu/biclustering/yeast.matrix
I need to convert the real-valued data matrix to a binary (0,1)
matrix. Is there any package available? How can it be done?
Thanks:
John
_
Hi:
I want to calculate how much the values in a binary matrix varies, and
for that I apply the sd() method.
mat <- matrix(c(1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1), nrow=4, ncol=3)
stddev <- sd(dist(mat, method="binary"))
And i get the following answer:
stddev
[1] 0.3442652
Is this correct? Or
Hi:
I have calculated the Silhouette score and Dunn score after
hierarchical clustering for 3 clusters:
#Distance measure
d <- dist(USArrests, method = "euclidean")
#Hierarchical clustering
hc <- hclust(dist(USArrests), "ave")
#calculating silhouette value for 3 clusters
sil<- silhouette(cutree(h
Hi:
I want to create a polygon encircling a graph. For this i use convex
hull to get the coordinate points for polygon.
g <- barabasi.game(10)
L<-layout.fruchterman.reingold(g)
temp1 <- chull(L)
temp1 <- c(temp1, temp1[1])
plot(g, layout=layout.fruchterman.reingold)
But when i plot the polygon
Hi:
I have installed the NetData package, and want to use the MagAct96-98
- Extracurricular affiliation data. But while loading the data, its
giving an error. Any help?
install.packages("NetData")
library(NetData)
data('studentnets.magact96.97.98', package = "NetData")
Warning message:
In data(
Hello:
I have a 4-column dataset: Crime, Education, Urbanization, Age. I want to
construct a multiple linear regression to find the effect of Education,
Urbanization, and Age on Crime"
lm(Crime ~ Education + Urbanization + Age)
If I use + in above statement, does it mean it will build a model to
Hi:
I am trying to query pubmed abstracts using the following syntax:
url= "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?";
search = paste(url, "db=pubmed&term=", queryTerm1, "+AND+",
queryTerm2,"+OR+",queryTerm3, "+OR+", queryTerm4,
"[abstract]&retmax=100&usehistory=y", sep="")
do
Hi:
I am trying to search PubMed abstracts which contains BOTH two terms:
COL4A1 AND Ocular. I am using the following code:
url= "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?";
search = paste(url,
"db=pubmed&term=COL4A1+AND+Ocular[abstract]&retmax=300", sep="")
docId <- xmlTreeParse
Hi:
Is there any Package in R which implements the KMP String search algorithm ?
Thanks
John
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guid
Thank you so much,
Yes I need to look up how to make a reproducible example,
William I will try your advice, I believe this will be my salvation here, once
I get my computer.
Pancho
On Sep 13, 2012, at 23:59, "William Dunlap" wrote:
>
>> -Original Message-
>> From: r-help-boun...@r-pr
Hello
This request asks something beyond the technicalities of the R language, I
would like to ask you wonderful people if you have ever suffered as programmers
( or de facto programmers like myself though I am a 'research assistant') from
tendonitis and how you coped with it, i have golfer's e
I have a dataframe of 80+ columns and over 700 rows. I use
write.foreigin(data,C:/filename.dat,codefile.sps) and it does write out the
.dat file and the code file.
Problem is that when I open the codefile in SPSS 20, I can an error message
saying there are too many variables and something about
Hello:
I have looked at the bnlearn and deal packages for infering bayesian
network. Can anyone suggest any other suitable package for constructing
bayesian gene regulatory network using gene expression data?
Thanks!
John
[[alternative HTML version deleted]]
Hi:
I have clustered microarray gene expression data and trying to map between
microarray probe, gene, pathway, gene ontology, and homology for a set of
(affy) microarray probes. Is there any package in R which facilitates this?
I am looking at bioconductor, but till now could not find a solution.
I'm using garchFit() on a volatile time series. I'd like to set a limit such
that the SUM(alpha, beta) < 1. Is there a way to configure that by passing a
parameter into garchFit()? Or is there another way to do it? Thanks.
[[alternative HTML version deleted]]
_
Hello group!
I use R 2.8.0 . I've just found out that par(mfrow =) *resets* par
('cex'), not reduces it as documented. To reproduce:
par(cex = 0.5)
par(mfrow = c(2, 2))
print(par('cex'))
It outputs 0.83, not 0.415 as expected.
Particularly such a behavior makes plot.acf effectively ignore par
(
Hello, I am about to order a new workstation at my university that will be used
for R (and other research related tasks). I would appreciate any feedback on
the specifications of a very fast machine. The machine should run windows (XP
probably better than vista). Which chip, memory size and spec
On Thu, 20 Nov 2008, Wacek Kusnierczyk wrote:
[EMAIL PROTECTED] wrote:
So what exactly is your understanding of a canonical entity and
perhaps that'd clarify your point?
when i studied medicine, i used to think about 'canonical' anatomy
(well, we'd just speak of hu
that pdfs aren't stored
in the same way that other files i've used in the past are. that's
fine, good to learn new things.
As for trying the readPDF() function, yes, I have downloaded and used
xpdf to convert pdfs into plain text since reading the OP email.
However, ow you can m
Dear R-help,
Please forgive me if any of the following sounds naieve/confused, i've
just got back from a mini-pub-crawl, slightly tipsy, and am feeling
brave to ask a possibly silly question... also, not to shiny on the
technical side of things.
Problem - I need to text mine a collection of 10,00
;%ÐÔÅØ"
[3] "1 0 obj
<<"
[4] "/Length 587
"
[5] "/Filter /
FlateDecode"
[6]
">>"
[7]
"stream"
[8] "[EMAIL PROTECTED]&ÎÁ±?\024tBL\020$ñ°ãd4›½*´.‰\002\001<øï·_•èÌf
\017’W¯_wÕ«îrðãc;Šòê`GæUŠOÛV×&³£øç¾ö\006ƒ¤Ê®\027[vïÖæ6ïWÛ7
us know via email at
[EMAIL PROTECTED]
The conference web site will contain a form for indicating the
topic of a presentation you are considering presenting.
www.xlsolutions-corp.com/usar2009
==Students, ask us how to attend free=
your seat Now - Earlybird Rates.
Payment due after the class! Email Sue Turner: [EMAIL PROTECTED]
Phone: 206-686-1578
Please let us know if you and your colleagues are interested in this
class to take advantage of group discount. Register now to secure your
seat!
Cheers,
Elvis Miller, PhD
Hi,
I am new to using R for Time series analysis. I was wondering if there are any
functions that can convert ARMA or ARIMA time series into their corresponding
AR or MA time series representations (by calculating the corresponding AR or MA
coefficients).
Thanks a lot
Kris.
dear R users,
I am using sweave to generate report for my data analysis.
I recently updated R ro 2.8.0, and now I have the following results when
compile the the tex file generated from R.
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(
R List,
I am seeking help in the area of kernel smoothing. I am attempting to use LSCV
values to conduct 2d and weighted 2d kernel smoothing (imported from an ArcMap
shapefile), and have been unable to find tools to conduct such analysis in R.
My biggest problem is determining the LSCV value an
On 21 окт, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> I am using TINN-R for working with R and for that purpose it is a very
> handy editor, in particular the R-Explorer that shows the existing
> objects and their properties is worth money.
Hi group!
Suppose I have 2 matrices A and B of equal dimensions.
I want to apply a function f to all corresponding pairs of rows from A
and B in an efficient manner.
Basically, I want
mapply(f, data.frame(A), data.frame(B))
but for rows.
How do I do it?
Thanks,
Andrey
Hello,
I am using TINN-R for working with R and for that purpose it is a very
handy editor, in particular the R-Explorer that shows the existing
objects and their properties is worth money.
But I want to move to a more flexible editor (in particular for Latex)
and was thinking of WinEdt (or maybe
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Hi,
i'm trying to build an r-package (Windows Vista, R 2.7.2), so i created
one with the package.skeleton() command.
After that i zipped it and tried to load it in R.
Attaching the package via the Windows R-console menu 'Packages/Install
package(s) from local zip-files' failed:
/> utils:::menuIn
for group discount and reserve your seat Now - Earlybird Rates.
Payment due after the class! Email Sue Turner: [EMAIL PROTECTED]
Email us for group discounts.
Email Sue Turner: [EMAIL PROTECTED]
Phone: 206-686-1578
Please let us know if you and your colleagues are interested in this
class to
** September 22-23, 2008
* Princeton, NJ ** September 25-26, 2008
* Washington, DC ** September 29-30, 2008
Looking for R/Splus Advanced Programming? Please email sue Turner:
[EMAIL PROTECTED]
Ask for group discount and reserve your seat Now
Hi there,
I am a beginner with R. Anyone could help to explain me what the following
warning msg means?
Warning messages:
1: In any(predictorMatrix[j, ]) :
coercing argument of type 'double' to logical
Got 6 of it...although further calculations were done. Because of this
warning I am not sur
** September 22-23, 2008
* Princeton, NJ ** September 25-26, 2008
* Washington, DC ** September 29-30, 2008
Looking for R/Splus Advanced Programming? Please email sue Turner:
[EMAIL PROTECTED]
Ask for group discount and reserve your seat Now
Hello everybody,
I have problem with a lapply command, which rather proves that I don't
fully understand it.
I want to extract from a list that consists of dataframes, the length
of the first sequences from a given variable (its part of a simulation
exercises).
Below is code which does the job, b
Its ok.
I've just read about update.formula in another message.
Paul
Paul Emberson wrote:
Hi,
I am trying to write a function which takes a formula as input and
outputs a new formula with a different response while keeping the rest
of the formula the same.
I.e.
respapply : ( y ~ a+b ) ->
Hi,
I'm using the IDE Eclipse with the Statet-Plugin to develop R-code.
Is there a possibility to set breakpoints for debugging in R-script files
(just like in Java-code)?
Cheers,
Eli
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/lis
- Earlybird Rates.
Payment due after the class! Email Sue Turner: [EMAIL PROTECTED]
(1) R/Splus Advanced Programming - Seattle, August 14-15
http://www.xlsolutions-corp.com/Radv.htm
Course Outline:
- Overview of R/S fundamentals: Syntax and Semantics
- Class and Inheritance in R/S-Plus
- Concepts
On 15 июл, 13:23, "hadley wickham" <[EMAIL PROTECTED]> wrote:
> An alternative to enscript is
> highlight,http://www.andre-simon.de/doku/highlight/en/highlight.html, which
> does
> come with R highlighting built in.
>
> Hadley
>
Thanks for pointing t
Hi group!
GNU enscript is a free (as in freedom) text file decorator, which
among other features can highlight source code files. The language
syntax descriptions are provided via special "states" files. The
standard distribution contains states files for the most popular
languages (C, C++, Pascal
Hi,
R seems to use the "1/n-1"-factor calculating the standard-deviation sd().
If i wat to get the "non-sample" standard-deviation i use
sqrt(sd(x)^2*((n-1)/n))
Is there a parameter to get the sd()-function using the "1/n" factor
directly?
Or is there any other function to do so?
Thank you
Can someone please enlighten me as to why the following happens?
> -2.7^8.6
[1] -5125.407
> p<- -2.7
> q<- 8.6
> p^q
[1] NaN
R seems perfectly able to calculate -2.7^8.6, but fails when the exact same
values are assigned to variables and then the computation is repeated.
Thanks in advance for an
On 28 июн, 03:19, "Bricklemyer, Ross S" <[EMAIL PROTECTED]> wrote:
> I am having difficulty calculating the median of grouped data. I have 8 to
> 10 repeated measures per sample and I have successfully used the following
> code to calculate th
Hi All,
I am a new member to R programming.
Am generating some visuals by using Cairo library. But Cairo is not
compatible with all compilers(Box plot,histogram and RNA degradation
plots-I would prefer to use some libraries rather than R native
functions).Can anyone suggest an alternative for thi
Our July *** New York City *** R/S-Plus Fundamentals and Programming
Techniques course is scheduled for:
New York City / July 28-29, 2008 ***
Please direct enquiries to Sue Turner: [EMAIL PROTECTED]
Payment due AFTER the class
Ask for Group Discount ---
Looking for R
On 25 июн, 09:28, "Jim Porzak" <[EMAIL PROTECTED]> wrote:
> The user of your R script sees only the outputs you create. The R source is
> hidden.
>
But you may expose R sources via the web server if you wish.
Andrey
__
R-h
A simple approach is to assume that dependence structure between
variables (which is characterized by copula) is constant throughout
the process. In this case, you may apply log-likelihood estimation of
copula parameters to ranked AR-GARCH process residuals.
A more complicated approach is to inven
On 20 июн, 11:06, Wacek Kusnierczyk
<[EMAIL PROTECTED]> wrote:
> the result may be that the more beautiful the code, the more the performance
> sucks.
Sad but true.
Andrey
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailma
Try
> ?merge
Andrey
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
help(qt) states that:
"ncpnon-centrality parameter delta; currently except for rt(), only for
abs(ncp) <= 37.62"
so I would expect that calling qt with non-centrality parameter exceeding
37.62 should fail, instead e.g. calling
> mapply(function(x) qt(p = 0.9, df = 55, ncp = x),35:45)
gives:
Hello,
I'm trying to sample in Random Forests by a factor, but it is a regression
problem and I can't figure out how to do this (I can only see how to sample by
strata in classification).
Thanks
Jesse Lasky
__
R-help@r-project.org mailing list
https:/
Hello,
I want to plot 21 scatter plots in a 7*3 matrix on a single A4 page
(using mfcol). Below is an example, which -by and large- looks very
close to the desired result. But I do not get it to fill out the whole
page. If I specify the a different page size, the plots still do not
fill out the wh
I have a set of live data about customer satisfaction and desires of a
live ecommerce site. There are only 311 survey responses. There were
approximately 154 questions. A large fraction of these questions were
questions with numerical answers (e.g. on a scale of 1 to 10 how
satisfied are you with o
Announcing R/Splus Advanced Programming course: May 29-30, 2008
in San Francisco.
*** half of the seats are already taken ***
Please email for earlybird rates: Payments due after the class.
R/Splus Advanced Programming Course Outline:
Day 1
- Overview of R/S fundamentals: Syntax
ject: [BioC] XLSolutions 9 Courses: Upcoming March-April 2008 R/S+
> Course Schedule by XLSolutions Corp
> From: Sue Turner <[EMAIL PROTECTED]>
> Date: Tue, March 04, 2008 12:23 pm
> To: [EMAIL PROTECTED]
> Our March-April 2008 R/S+ course schedule is now available. Please chec
Hello,
I am trying to call a FORTRAN subroutine from R. The Fortran code is @:
http://lib.stat.cmu.edu/apstat/206
It performs a bivariate isotonic regression on a rectangular grid (m X n)
matrix. I used the g77 compiler and successfully created a dll file and it also
loads successfully from R.
Our March-April 2008 R/S+ course schedule is now available. Please check
out this link for additional information and direct enquiries to Sue
Turner [EMAIL PROTECTED] Phone: 206 686 1578
--Can't see your city? Please email us! --
Ask for
Our March-April 2008 R/S+ course schedule is now available. Please check
out this link for additional information and direct enquiries to Sue
Turner [EMAIL PROTECTED] Phone: 206 686 1578
--Can't see your city? Please email us! --
Ask for
s. eclipse. co. uk
<[EMAIL PROTECTED]> wrote:
>
>
>
>
> sorry, it would probably better be described as a table
>
> thanks
>
>
>
>
>
> On Tue Mar 4 11:28 , "Henrique Dallazuanna" sent:
y(x, 1, function(.x).x[any(.x < cutoff)]))
On 04/03/2008, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a table of x rows and y columns. The table is huge and so i'd
like
> to create a subset of the data conta
Hi,
I have a table of x rows and y columns. The table is huge and so i'd like
to create a subset of the data containing rows where any of the y values are
below a threshold, say 1e-4. Is there a simple way of doing this in R?
thanks
Rich
_
Hi,I am wondering how to conduct Kenward-Roger correction in
the linear mixed model using R. Any idea?
Thanks a lot,
Suyan
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-
Dear all,
I usually run R on my laptop with Windows XP Professional.
Now I really want to run R on a computer cluster (4 processors) with
Suse Linux Enterprise ver. 10. But I am new with computer cluster.
Should I modify my functions in order to use the greater
performance
and availabili
Hi,
i'd like to plot some data that I have with the value on the x axis and freq
on the y axis.
So, I need to calculate the freq a value is seen within my data vector
for example, say i have a vector of data
data=c(1,1,1,4,5,5,6)
I want
values<-c(1,4,5,6)
freq<-c(
Hi, i'm having trouble with my x and y axis. The commands i'm using are
below. The problem is that the y axis starts at coordinate 0,1 and the x
axis starts at coordinate 0,0. As far as I know the y axis can't start at 0
(because it's log scaled) ,so I would like to position the x a
Good afternoon,
I've installed R on Suse 10.3 compiling the source files. I opne the program on
shell configuration and i have a problem saving the workspace and *.R or
*.Rdata files. I 've read the manual and written the comand as it says but the
output is:
save.image()
Errore in gzfile(file,
few
months as we formally rollout out products (and company). In the meantime,
we would be happy to brief you about our plans in more detail offline. I can
be reached at [EMAIL PROTECTED] Glad you enjoyed our song!
Martin H. Schultz
CSO
Revolution Computing Inc.
John Maindonald wrote
Hi,
i'm very new to R, so sorry for what i'm sure is a very basic question. I'm
producing a boxplot with the data below:
df3<-data.frame(
x=c(10,11,115,12,13,14,16,17,18,21,22,23,24,26,27,28,29,3,30,32,33,34,35,4,4
1,45,5,50,52,56,58,6,67,6738,68,7,8,9),
fq=c(8,11,1,2,4,4,
Happy New Year
Our *** San Francisco *** R/Splus Advanced Programming is scheduled for
January 24-25,
2008
Please email for earlybird rates: Payments due after the class.
R/Splus Advanced Programming Course Outline:
Day 1
- Overview of R/S fundamentals: Syntax and
Dear All,
I need to perform a numerical integration of one dimensional
fucntions. The extrems of integration are both finite and the functions
I'm working on are quite complicated. I have already tried both area()
and integrate(), but they do not perform well: area() is very slow and
integrate(
,
2008
Please email for earlybird rates: Payments due after the class.
R/Splus Advanced Programming Course Outline:
Day 1
- Overview of R/S fundamentals: Syntax and Semantics
- Class and Inheritance
- Concepts, Construction and good use of Language Objects
- Coercion and Efficiency
Hallo [EMAIL PROTECTED],
sehen Sie sich jetzt Ihre Chance des Jahres 2007 an. Sie wurden ausgewaehlt
fuer diese einmalige Gelegenheit!
Setzen sie jetzt zum Schlussspurt an und kassieren Sie für Ihre Arbeit
endlich das Geld, was Sie verdient haben.
Verdoppeln und verdreifachen, ach was
Hi,
I need to import some expressions form Mathematica into R editor for
coding purposes. If I just copy the expression from Mathematica into
R
editor, I obtian unuseful string. For instance, if I want to copy the
expression beta/sigma from Mathematica, I have \!\(β\/σ\) in the R
editor. Does
Gruess Gott [EMAIL PROTECTED],
letztmalig im 3. Versuch erhalten Sie die Gelegenheit Ihre 2400.00 EUR
abzuholen. Klicken Sie einfach auf die untere Webseite und Sie werden unser
Angebot bestaetigt sehen.
Eine weitere Gelegenheit wird es dann nicht mehr geben - Wir werden Sie
dann auch nicht
Hallo [EMAIL PROTECTED],
dieses ist nun schon unsere 2. Mail an Sie, da wir nicht moechten, dass
Ihnen die für Sie reservierten 2400,00 EUR verloren gehen.
Ja tatsaechlich, dieser Betrag ist für Sie als Inhaber der Email r-
[EMAIL PROTECTED] reserviert
Greifen sie jetzt zu und holen sie sich
Holen sie sich jetzt 2400 EUR in Cash ab
Und gehen Sie dabei einen sicheren und koeniglichen Weg !!!
Alles mehrsprachig und einfach erklaert, starten Sie jetzt !!!
Für jeden erhaeltlich, ganz einfach: Anklicken, Registrieren, abholen !!!
WO ERHALTEN SIE SONST 2400 Euro in 12 Monaten aufgeteil
Holen sie sich jetzt 2400 EUR in Cash ab
Und gehen Sie dabei einen sicheren und koeniglichen Weg !!!
Alles mehrsprachig und einfach erklaert, starten Sie jetzt !!!
Für jeden erhaeltlich, ganz einfach: Anklicken, Registrieren, abholen !!!
WO ERHALTEN SIE SONST 2400 Euro in 12 Monaten aufgeteil
i would like to perform moran's analysis with r...
thanks
duccio
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal
Monthly!
Sender: "Email Classified Now 1st time in Pakistan!" <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/related; type="multipart/alternative";
boundary="=_NextPart_000_0177DE59_0.557487C2"
Date: Wed, 12 Sep 2007 15:53:57 -0700
Message-I
86 matches
Mail list logo