I am trying to extract information “OS Vendor” and “OS Name” from the
following text file online.
http://spec.org/jEnterprise2010/results/res2013q3/jEnterprise2010-20130904-00045.txt
My goal is to extract these two attributes from all the text files
available from this link given below and put
I am trying to replicate the twitter and word cloud example found here
https://sites.google.com/site/miningtwitter/questions/talking-about/wordclouds/wordcloud1
When implemented verbatim, I replicate results and all works fine. But, when I
make a slight modification to the code it fails in creat
OSX 10.10.2
R 3.1.3
XQuartz installed.
I am trying to run one of the tcltk demos
This one works:
tt <- tktoplevel()
label.widget <- tklabel(tt, text = "Hello, World!")
button.widget <- tkbutton(tt, text = "Push",
command = function()cat("OW!\n"))
tkpack(label.widget, but
Hi,$I had this problem,
delete all and reconfigure ONLY with:
cd /tools
./rsyns.
cd ..
./configure --enable-R-shlib
make
make install
be sure to be in your /home
kmezhoud
On Wed, Mar 11, 2015 at 7:55 PM, peter dalgaard wrote:
>
> > On 11 Mar 2015, at 20:05 , MacQueen, Don wrote:
> >
> >
Dear Sir,
Thanks a lot for your help and guidance.
Regards
Amelia
--`--
On Wed, 11/3/15, Ben Bolker wrote:
Subject: Re: [R] Gamma Distribution - is there any problem with "pgamma"?
To: r-h...@stat.math.ethz.ch
Date: Wednesday, 11 March, 2015, 11:54
Perfect, perfect, perfect.
Thanks very much, John.
Adrian
On Wed, Mar 11, 2015 at 10:00 PM, John McKown
wrote:
> See if the following will work for you:
>
> grep('^-?[0-9]+([.]?[0-9]+)?$',myvector,perl=TRUE,invert=TRUE)
>
>> myvector <- c("a3", "N.A", "1.2", "-3", "3-2", "2.")
>> grep('^-?[0-9]+(
See if the following will work for you:
grep('^-?[0-9]+([.]?[0-9]+)?$',myvector,perl=TRUE,invert=TRUE)
> myvector <- c("a3", "N.A", "1.2", "-3", "3-2", "2.")
> grep('^-?[0-9]+([.][0-9]+)?$',myvector,perl=TRUE,invert=TRUE)
[1] 1 2 5 6
>
The key is to match a number, and then invert the TRUE / FAL
Hi everyone,
I need a regular expression to find those positions in a character
vector which contain something which is not a number (either positive
or negative, having decimals or not).
myvector <- c("a3", "N.A", "1.2", "-3", "3-2", "2.")
In this vector, only positions 3 and 4 are numbers, the
What is the result of
capabilities()['tcltk']
?
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 3/9/15, 2:27 PM, "Imran Akbar" wrote:
>Hi,
>
>I've installed the latest version of R from source on Amazon Linux with
>the
>
Dear Mr Byng,
Thanks a lot for your great help. Appreciate.
Regards
Amelia
On Wed, 11/3/15, Martyn Byng wrote:
Subject: RE: [R] Gamma Distribution - is there any problem with "pgamma"?
e...@r-project.org>
Date: Wednesday, 11 March, 2015, 11:48 AM
I am trying to add a column with data to a data frame that already has
information but am getting this error:
> rich.stats4 = merge(rich.stats,Location,Month,by="X.SampleID")
Error in fix.by(by.x, x) :
'by' must specify one or more columns as numbers, names or logical
I have two separate data
Also, of the problem only occurs in RStudio then your question would need to be
asked in their support forum. They do override some standard R functions so
occasionally there are bugs introduced by that. Check if it occurs in plain R
before posting here.
-
> shouldn't your last expression be:
>
> if (any(tst)) big.vector.1[tst] <- big.vector.2[tst]
>
>
Sure, that was a typo.
Also, I know that `%%` does not make sense neither for Inf nor for big
numbers, but `%/%` - since it's "only" a special case of `/` - should
make sense; it should be "equivalent
shouldn't your last expression be:
if (any(tst)) big.vector.1[tst] <- big.vector.2[tst]
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.
On Wed, Mar 11, 2015 at 11:14 AM, William Dunlap wrote:
> > %/% which
Hi R-Experts,
Thanks to the R package "SuppDists", I can draw/plot the sampling distribution
of the Pearson (and/or Spearman) rho coefficient.
install.packages("SuppDists")
library(SuppDists)
curve(dPearson(x,85,rho=0.64),from=-1,to=1)
Do you know a package (or some packages) I could use if I w
Please don't post in HTML - your code is unreadable.
Using dput() to provide some of your data may also encourage people to
help you figure out what's wrong.
Without a reproducible example that includes some sample data (fake is
fine), the code you used, and some clear idea of what output you
exp
On 03/11/2015 01:36 AM, Søren Højsgaard wrote:
Dear all,
My package 'gRbase' uses three packages from Bioconductor and these are not
automatically installed when gRbase is installed. My instructions (on the
package webpage) to users are therefore to run:
Treat Bioconductor packages as any o
Amelia Marsh yahoo.com> writes:
>
> Dear R forum
>
> I have following data
>
> amounts = c(928906.144,156091.0576,433798.3404,993425.7224,
> 1323976.364,649106.9339, 369967.2612,2528872.35,1226093.655,
> 1145446.149,1809624.453,599329.0394,2200955.213,2583318.064,
> 745625.8069,961828.8828,174
Hi,
Try
pgamma(amounts,shape_gamma,scale=scale_gamma)
as I am guessing you mean scale_gamma to be the scale of the distribution, but
are using it as the rate ( = 1 / scale) instead
Martyn
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Amelia Marsh
S
I think these dates are from some historical database, as they are
labeled "BC". And the days might refer to some Epoch of ancient
calendars, maybe the Chinese Calendar whose Epoch was 105 BC (at least
if we can trust Wikipedia:
https://en.wikipedia.org/wiki/Chinese_calendar )
Alberto Monteiro
__
I've just found an annoyance with the behaviour of %/% which, BTW,
violated the sacred rule that for all a, and non-zero b:
a = b * (a %/% b) + a %% b
Namely, that Inf %/% n is not Inf, but NaN.
Why is this so? It's an annoyance, because in expressions like:
big.vector.1[a, b, c] <- big.vector.
Dear R forum
I have following data
amounts =
c(928906.144,156091.0576,433798.3404,993425.7224,1323976.364,649106.9339,
369967.2612,2528872.35,1226093.655,1145446.149,1809624.453,599329.0394,2200955.213,2583318.064,745625.8069,961828.8828,1744841.313,1939390.005,1077873.654,729924.2713,803584.26
http://stats.stackexchange.com/questions/7268/how-to-aggregate-by-minute-data-for-a-week-into-hourly-means
On Wed, Mar 11, 2015 at 12:19 PM, Kuma Raj wrote:
> I have a measurement that was taken in 15 minutes or more and want to
> aggregate it by hour. How could I do that?
>
> Sample data is fou
I have a measurement that was taken in 15 minutes or more and want to
aggregate it by hour. How could I do that?
Sample data is found below
date_time concentration
26/11/2013 15:46 529.25
26/11/2013 16:03 1596
26/11/2013 16:23 1027.111
26/11/2013 16:39 1001.9
26/11/2013 16:54 -80.25
26/11/2013 17:
On 11/03/2015 10:31, Bob O'Hara wrote:
Hi!
I'm trying to persuade R's regular expressions to do what I want. I
This is not "R's regular expressions" , but the world's regular expressions.
have a vector of strings which are names of variables, some of which
are elements of strings. I want to
Steve,
Here is one approach that works. I am calling your first data frame "df".
# list all years from min to max observed in each ID
years <- tapply(df$Date, df$ID, function(x) min(x):max(x))
# create a data frame based on the observed range of years
fulldf <- data.frame(ID=rep(names(years), s
Hi!
I'm trying to persuade R's regular expressions to do what I want. I
have a vector of strings which are names of variables, some of which
are elements of strings. I want to reformat all of the variables into
a list, so (for example) beta[1] and beta[2] would be a vector in the
list. Where I'm
On 11/03/15 20:01, Frederic Ntirenganya wrote:
Hi All,
I need a help on a loop which can compare the each component of vector to
each component of a Matrix.
Let a vector b = {b1, b2, ...,bn} and 2x2 matrix A = Aij.
I need to compare each component of the vector with each component of a
matrix
Hi Erin,
If you want to use .First, just put it in the directory where you start up
your R session, use it to change all the options that you want for all
projects, then source a file to switch to the directory that you want. I
call mine "SelectAnalysis.R" and it just displays a list of current
pro
Dear all,
My package 'gRbase' uses three packages from Bioconductor and these are not
automatically installed when gRbase is installed. My instructions (on the
package webpage) to users are therefore to run:
source("http://bioconductor.org/biocLite.R";);
biocLite(c("graph","RBGL","Rgraphviz"))
Hi,
you didn't specify values in A, and you first wanted to compare bi
with Aij, but then also which bi is less/equal to zero.
For the first case, with
A <- matrix(0:3,2)
b <- seq(-1,5)
and a comparison function for bi less/equal to Aij like
f <- function (bi) {as.integer(bi<=A)}
you can iter
Hi All,
I need a help on a loop which can compare the each component of vector to
each component of a Matrix.
Let a vector b = {b1, b2, ...,bn} and 2x2 matrix A = Aij.
I need to compare each component of the vector with each component of a
matrix and print 1 if the component is less or equal to
32 matches
Mail list logo