Hi
Your data frame is a bit weird. I changed it to more standard structure
df-as.data.frame(lapply(df, unlist))
You can concatenate labels to one character vector
x-with(df, paste(disk, vmfs, vmdk, sep=-))
Then you can use barplot, however labels are quite long to fit.
barplot(df$BW, names=x)
Hi All,
Can someone please tell me* R function for Bisecting K-means algorithm*. I
have used *kmeans() *function but not getting good results.
Please help.
--
Thanks and Regards,
Vivek Kumar Singh
Research Assistant,
School of Computing,
National University of Singapore
Mobile:(0065)
Hi,
I came across this type of growth rate(
http://data.princeton.edu/eco572/grdt.html ) analysis. But I have the
number of user sessions as a plot of numbers varying over time. There are
two curves. and the second curve has more sessions but they vary over
time. Users login and
Dear R-Experts,
using both do.call(…) and Reduce(…), I wonder about the differences of both.
Please consider the following example:
m - matrix( 1:9, ncol=3 )
lst - list( m, 2*m, 3*m )
rbind( lst )
# Returns
[,1] [,2] [,3]
tmp.lst Integer,9 Numeric,9 Numeric,9
do.call(
On Tue, Oct 8, 2013 at 10:22 AM, Asis Hallab asis.hal...@gmail.com wrote:
Dear R-Experts,
So, what is the difference between Reduce and do.call and when best to
use which?
From the help:
‘Reduce’ uses a binary function to successively combine the
elements of a given vector and a
Dear list
I have a matrix composed of islandID as rows and speciesID as columns.
IslandID: Island A, B, C
.O (15 islands in total)
SpeciesID: D0001, D0002, D0003
.D0100 (100 species in total)
The cell of the matrix describes presence (1) or absence (0) of the species
in an island.
Now I
On 10/08/2013 10:21 PM, Elaine Kuo wrote:
Dear list
I have a matrix composed of islandID as rows and speciesID as columns.
IslandID: Island A, B, C….O (15 islands in total)
SpeciesID: D0001, D0002, D0003….D0100 (100 species in total)
The cell of the matrix describes presence (1) or
Hello everybody,
I would like to know if within the glmmADMB package into R interface there is
a way to deal with the NAs different than applying dataformodeling=
na.omit(dataframe). This way as you may know removes all the rows of the data
set with at leas 1 NA.
I would rather prefer to
Hello,
I am encountering very similar problems with frailtypack (only, it seems, 3
years later). I would be incredibly grateful if you would be willing to
share any solutions you happened upon for the problem you mention. I have a
datafile that is even longer than yours (over 15000 events).
Dear all,
I'm using Windows 7, R version 2.15.0 and lattice_0.20-6.
I'm plotting observed data in lattice using wireframe(). I have 3
matrices of observed values (Temp,Dist,Time) and I'm using the formula
method (Temp~Dist*Time).
How do I instruct wireframe to colour the plot surface based
Marta Lomas lomasvega at hotmail.com writes:
Hello everybody,
I would like to know if within the glmmADMB package into R interface
there is a way to deal with the NAs
different than applying dataformodeling= na.omit(dataframe).
This way as you may know removes all
the rows of the
Hi,
I'd like to use Latin Hypercube Sampling (LHC) in the the context of
uncertainty / sensitivity analysis of a complex model with approximately 10
input variables. With the LHC approach I'd like to generate parameter
combinations for my model input variables.
Therefore I came across an simple
Hi
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of Johannes Radinger
Sent: Tuesday, October 08, 2013 3:38 PM
To: R help
Subject: [R] Latin Hypercube Sample and transformation to uniformly
distributed integers or classes
I was going through this example of maxent use:
http://cran.r-project.org/web/packages/maxent/maxent.pdf
# LOAD LIBRARY
library(maxent)
# READ THE DATA, PREPARE THE CORPUS, and CREATE THE MATRIX
data - read.csv(system.file(data/NYTimes.csv.gz,package=maxent))
corpus -
On 08/10/2013 9:37 AM, Johannes Radinger wrote:
Hi,
I'd like to use Latin Hypercube Sampling (LHC) in the the context of
uncertainty / sensitivity analysis of a complex model with approximately 10
input variables. With the LHC approach I'd like to generate parameter
combinations for my model
Hi,
Try:
set.seed(49)
mat1-
matrix(sample(0:1,15*100,replace=TRUE),nrow=15,ncol=100,dimnames=list(LETTERS[1:15],paste0(D,sprintf(%04d,1:100
rowSums(mat1[rownames(mat1)%in% c(A,D,L),])
# A D L
#44 55 50
A.K.
- Original Message -
From: Elaine Kuo elaine.kuo...@gmail.com
To:
I'm wondering what the purpose of the back-quoting of the name is, since
benchmark seems a valid name. The language reference does mention
back-quoting names to make them syntactic names, but I found no
explanation of the why.
Can someone give a concise reason?
JN
Dear all, I have a data set where I want to make a matrix of the mean
values using 3rd column (value). Where rows are unique loc and columns
would be variables. If there is one observation or no observation just
use NA.
dput(d1)
structure(list(loc = structure(c(6L, 9L, 9L, 9L, 9L, 4L,
To make it matrix:
row.names(res)- res[,1]
res1- as.matrix(res[,-1])
A.K.
- Original Message -
From: arun smartpink...@yahoo.com
To: Nico Met nicome...@gmail.com
Cc: R help r-help@r-project.org
Sent: Tuesday, October 8, 2013 10:54 AM
Subject: Re: [R] matrix of mean values
Try:
Dear All I am having problems to install the package COZIGAM.
Despite I have the update version of R (3.0.2) when I try to load the package I
cannot find it in the list of available packages.
If I try to install it from a local zip file I do get this error message:
Error in
Hello,
I am having trouble obtaining AIC or pseudo R^2 for nonlinear quantile
regression fits. I would like to use one of these measures to compare
non-nested models (each with a single, unique predictor variable).
I am trying to fit the following gaussian peak model using the quantreg package:
On Oct 8, 2013, at 7:03 AM, Lauria, Valentina wrote:
Dear All I am having problems to install the package COZIGAM.
Despite I have the update version of R (3.0.2) when I try to load the package
I cannot find it in the list of available packages.
If I try to install it from a local zip
On 08/10/2013 10:44 AM, Prof J C Nash (U30A) wrote:
I'm wondering what the purpose of the back-quoting of the name is, since
benchmark seems a valid name. The language reference does mention
back-quoting names to make them syntactic names, but I found no
explanation of the why.
Can someone give
Your use of the English language is failing to communicate. You mention the
name when name is not a proper noun. Are you referring to some specific
example?
---
Jeff NewmillerThe .
Dear Arun, thanks for the solution. however, for my data I am getting this
warning message
Warning messages:
1: In mean.default(.value[0], ...) :
argument is not numeric or logical: returning NA
what can be the cause of it?
Regards
Nico
On Tue, Oct 8, 2013 at 4:56 PM, arun
The function 'benchmark' which is the only one in package 'rbenchmark'
has a back-quoted name in its first line
`benchmark` - function(
I wondered whether this had specific importance. It appears not.
JN
On 13-10-08 11:15 AM, Jeff Newmiller wrote:
Your use of the English language is
Hi everyone,
Is it possible to obtain the 1st 3rd quartiles the median in a sqldf()
select statement? If so, can you please provide the summary fn code?
Thanks!
Dan
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
Elsa,
It is usual to write to package authors/maintainers about packages before
trying R-help. Inference for nonlinear quantile regression is still a bit
underdeveloped. To get logLik you can use:
logLik.nlrq - function (object, ...)
{
n - length(object$m$resid())
p -
On Oct 8, 2013, at 8:14 AM, Lauria, Valentina wrote:
Dear David,
Your answer does not really solve the problem as I have already downloaded
the COZIGAM zip package (see my previous message).
My response was intended to raise questions that you have not yet considered.
You should be
I've found one solution, which is to transform each matrix into a 1d
array. This gives me the output I wanted.
Grace
On 08/10/2013 09:55, Grace Garner wrote:
Dear all,
I'm using Windows 7, R version 2.15.0 and lattice_0.20-6.
I'm plotting observed data in lattice using wireframe(). I have 3
Dear Jarod,
You can call me Arun.
a- read.table(text=NAME1 NAME2 RNA
mauro francesco E234
luca giuseppe E5578
luca franco E5569
maria luca E4556
maria mauro E4556
luisa mara E4755
mara luca E234
luigi veronica E234
mauro veronica
Try:
d1$value-as.numeric(gsub(,,,as.character(d1$value)))
library(reshape2)
res - dcast(d1,loc~variables,value.var=value,mean)
A.K.
- Original Message -
From: Nico Met nicome...@gmail.com
To: R help r-help@r-project.org
Cc:
Sent: Tuesday, October 8, 2013 10:47 AM
Subject: [R] matrix of
I think there are two possibilities: (1) package.skeleton() can
produce this; (2) the package author prefers this style. Back-quoting
is often unnecessary, unless the object name is not valid without
back-quoting, e.g.,
`a b` - 1:2
ls()
[1] a b
a b
Error: unexpected symbol in a b
`a b`
[1] 1
I have to built a graphic with a time series of returns, but it have not a
frequency (for example monthly in one year). On the x of the graphic I need
to see only the year and not all the date (for example, 1996-01-02 ,
1996).
How I can do this
Thank you
[[alternative HTML version
Hi
I am using the package tables and want to have the rows in the numerical order
and not in the alphabetical order:
library(tables)
Nodes - c(1,10,20,2)
Values- c(1,2,3,4)
Data - data.frame(cbind(Nodes,Values))
data$Nodes- as.factor(as.character(data$Nodes)) # necessary to get
Hello,
First of all, there's no need for data.frame(cbind(...)). data.frame()
only will do the job, and it's less error prone.
As for the question, since the column Nodes is to become a factor, why
use as.character()? Without it the problem is solved:
data - data.frame(Nodes,Values)
On Oct 8, 2013, at 10:29 AM, Renger van Nieuwkoop wrote:
Hi
I am using the package tables and want to have the rows in the numerical
order and not in the alphabetical order:
library(tables)
Nodes - c(1,10,20,2)
Values- c(1,2,3,4)
Data - data.frame(cbind(Nodes,Values))
The order in the table is the order of the levels in the factor, so the
best thing to do is to set the order in the factor itself. You can do this
using the factor function when you create the factor, or with a function
like relevel after the function has been created. In your case, what
happens
The Writing R Extensions guide has a good section on writing generic functions
and methods. However, has anyone generated any additional tutorials,
presentations, notes, etc that extend this topic?
Perhaps showing additional examples of what works well and what risks to avoid.
Thanks,
Harold
Reduce will rbind 2 elements and then the result with the next element
of the list --- while do.call just applies rbind once on all elements of
the list at the same time.
Uwe Ligges
On 08.10.2013 11:22, Asis Hallab wrote:
Dear R-Experts,
using both do.call(…) and Reduce(…), I wonder
Dear Jarod,
How about this?
a- read.table(text=NAME1 NAME2 RNA
mauro francesco E234
luca giuseppe E5578
luca franco E5569
maria luca E4556
maria mauro E4556
luisa mara E4755
mara luca E234
luigi veronica E234
mauro veronica E235
See ?axis.Date
Uwe Ligges
On 08.10.2013 18:34, Barbara Rogo wrote:
I have to built a graphic with a time series of returns, but it have not a
frequency (for example monthly in one year). On the x of the graphic I need
to see only the year and not all the date (for example, 1996-01-02 ,
1996).
Chapter 7 of Writing R Extensions
http://cran.r-project.org/doc/manuals/R-exts.html#Generic-functions-and-methods
-Original Message-
From: gret...@gmail.com [mailto:gret...@gmail.com] On Behalf Of Grant Rettke
Sent: Tuesday, October 08, 2013 4:31 PM
To: Doran, Harold
Cc:
On Tue, Oct 8, 2013 at 11:46 AM, Dan Abner dan.abne...@gmail.com wrote:
Hi everyone,
Is it possible to obtain the 1st 3rd quartiles the median in a sqldf()
select statement? If so, can you please provide the summary fn code?
See the list of functions in Example15 on the sqldf home page:
What is the URL for the section that you are referencing?
On Tue, Oct 8, 2013 at 2:46 PM, Doran, Harold hdo...@air.org wrote:
The Writing R Extensions guide has a good section on writing generic
functions and methods. However, has anyone generated any additional
tutorials, presentations,
I am trying to use the parallel package, and found that makeCluster
hangs (and no apparent actions have taken place). This is Windows7-64,
Enterprise, R 3.0.1 .
I've traced the hang to the following line in newPSOCKnode :
con - socketConnection(localhost, port = port, server = TRUE,
A colleague is sending me quite a few files that have been saved with MS
SQL Server 2005. I am using R 2.15.1 on Windows 7.
I am trying to read in the files using standard techniques. Although the
file has a csv extension when I go to Excel or WordPad and do SAVE AS I
see that it is Unicode
Any help on this?
Regards,
Vivek
On Tue, Oct 8, 2013 at 2:36 PM, Vivek Singh vksingh.ii...@gmail.com wrote:
Hi All,
Can someone please tell me* R function for Bisecting K-means algorithm*.
I have used *kmeans() *function but not getting good results.
Please help.
--
Thanks and
Probably not. I would guess that most (or all) of us have no clue what
bisecting a k-means algorithm means. You might have more luck if you
explain yourself more clearly (but probably not from me in any case).
Is this an R question, by the way? This is not a statistics list --
it's an R
49 matches
Mail list logo