Displaying 20 results from an estimated 3000 matches similar to: "Can I define a object array in R?"
2013 Mar 28
2
Can R read in .xyz files
Hi,
Can R read in .xyz files? If so, what is the package,
thanks
--
Shane
[[alternative HTML version deleted]]
2016 Apr 15
1
Decision Tree and Random Forrest
I need the output to have groups and the probability any given record in
that group then has of being in the response class. Just like my email in
the beginning i need the output that looks like if A and if B and if C then
%77 it will be D. The examples you provided are just simply not similar.
They are different and would take interpretation to get what i need.
On Apr 14, 2016 1:26 AM,
2013 May 16
1
connect to local mySQL database
Hi,
I would like to access a local mysql database.
In python using the sqlite3 library it is quite straightforward. I just have to pass the path to the sqlite-file;
sqlite3.connect('.../xy.sqlite')
Is there something similar in R (or specifically in the RMySQL package)?
It seems like I have to use the MySQL function in the RMySQL package in order to ...
"initializes a MySQL
2011 Jul 23
1
Why are all repos < 5.6 listed?
Greetings all.
I just enabled all repos on my system, to enable me to find
a particular package. This is the first time I have noticed
all the Centos repos < 5.6 being listed.
Is this a new feature, to include all repos pre 5.6 now?
Here's the output of the aforementioned yum command - sorry
it's a little bit long:
[root at karsites ~]# yum --enablerepo '*' --disablerepo
2012 Jul 10
2
how can I show the xlab and ylab information while using layout
hi R-users:
I want to draw three plot into one figure by layout and the script has
been shown below.
But I find R does not show the xlab and ylab information completely as
shown the figure attached.
How can I midify the script.? thank you .
xxlab<-paste(cpmd," (",ro,"%)",sep=" ")
yylab<-paste(rfmd," (",co,"%)",sep=" ")
2011 Dec 03
4
Data alignment
Hello!
I have a data.frame which looks like:
Name - Value
A - 400
A - 300
B - 200
B - 350
C - 500
C - 350
D - 450
D - 600
E - 700
E - 750
F - 630
F - 650
I want to add another column where all A,B should get an index 1, all C,D an
index of 2 and all E,F an index of 3 so that the data.frame looks like:
ID - Name - Value
1 - A - 400
1 - A - 300
1 - B - 200
1 - B - 350
2 - C - 500
2 - C - 350
2
2012 Nov 22
4
Data Extraction
Hello,
I would appreciate if someone could help me resolve the following:
1. df1[!is.na( X1 | X2 | X3 | X4 | X5),][,1:5] # This does not work
2. Is these message harmful? The following object(s) are masked from 'df1 (position 3)':
X1, X2, X3, X4, X5
Thanks,
Pradip Muhuri
#Reproducible Example
set.seed(5)
df1<-data.frame(matrix(sample(c(1:10,NA),100,replace=TRUE),ncol=5))
2016 Apr 14
3
Decision Tree and Random Forrest
I still need the output to match my requiremnt in my original post. With decision rules "clusters" and probability attached to them. The examples are sort of similar. You just provided links to general info about trees.
Sent from my Verizon, Samsung Galaxy smartphone<div>
</div><div>
</div><!-- originalMessage --><div>-------- Original message
2018 May 30
0
par(mfrow=c(3,4)) problem
Hi,
You're mixing base plot and ggplot2 grid graphics, which as you've
discovered doesn't work.
Here's av strategy that does:
https://cran.r-project.org/web/packages/egg/vignettes/Ecosystem.html
This vignette has a good overview, well as info specific to that package.
Sarah
On Wed, May 30, 2018 at 4:43 AM greg holly <mak.hholly at gmail.com> wrote:
> Hi all;
>
2016 Apr 15
0
Decision Tree and Random Forrest
Since you only have 3 predictors, each categorical with a small number of
categories, you can use expand.grid to make a data.frame containing all
possible combinations and give that the predict method for your model to
get all possible predictions.
Something like the following untested code.
newdata <- expand.grid(
Humidity = levels(Humidity), #(High, Medium,Low)
2012 May 15
9
help
1. Emma is performing an experiment that requires individual handling of some animals. The sizes of the animals are lognormally distributed: The natural logarithms of their sizes has a normal distribution with mean 3 and standard deviation 0.4. The time (in minutes) it takes to handle each animal is given by
10 + s · 1.5 + eε for animals with s ≤ 20 20 + s · 0.8 + eε for animals with s > 20
2012 Jun 03
1
fine control of plots after use of layout(matrix ...
Sir,
I would like to create a combined line-bar plot, with the line up top and
bar plot below, but with the x-axes suppressed on the topmost plot, the
line and bar plot areas joined by a common line, and the x-axes (of dates)
joined to the bottom part of the bar plot.
i have been able to format the area using the layout(matrix( ... commands,
but cannot figure out the final step.
here's the
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
That does clarify for me that you're missing a step: I didn't clearly
follow your description at first.
corrplot expects a correlation matrix, not your original data. You need to
use cor() first.
That's pretty clear in the documentation. See for instance the examples:
data(mtcars)
M <- cor(mtcars)
corrplot(M)
Sarah
On Sat, Mar 17, 2018 at 12:00 PM Shivi Bhatia <shivipmp82 at
2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
Hi Sarah,
Thank you for your help.
I tried using CR1<-as.matrix(CR1) but gives error Error in corrplot(CR1,
method = "circle") : The matrix is not in [-1, 1]!. I am using a corrplot
library.
Please find the reproducible example:
dput(head(CR1,10))
structure(c(26L, 46L, 39L, 38L, 47L, 59L, 56L, 61L, 43L, 60L,
78L, 63L, 2L, 58L, 8L, 1L, 1L, 9L, 11L, 2L, 1037500L, 46747L,
346300L,
2018 May 30
4
par(mfrow=c(3,4)) problem
Hi all;
I need to put 12 different plot2 into the same matrix. So my array for the
matrix will be par(mfrow=c(3,4)). I am running ggplot2 to produce my 12
plots. For some reason, par(mfrow=c(3,4)) did not turn out 3*4 matrix.
my basic R codes for each plot is
par(mfrow=c(3,4))
library(ggplot2)
p <- ggplot(a, aes(x=Genotypes, y=Plant_hight, size=Plant_hight,
color=Showing_rate)) +
.
.
Best
2012 Oct 22
1
BiodiversityR GUI error message
Dear Gabor
You got solution for your problem?
"I have just got a laptop with win 7 64 bit installed on it. I
installed R and quite a few packages I use. When I try to start
BiodiversityR the library loads without any problems but when starting
the GUI it gives me the following error message:
Sourced: BiodiversityGUI.R
Error : .onAttach failed in attachNamespace() for 'Rcmdr',
2016 Apr 01
1
(no subject)
dear sir/madam,
while i am trying to convert the data into timeseries
using xts command.i am getting this error. please help me to resolve this
issue
xts(mydata$MCP, as.Date(rdate, format='%d-%m-%Y')
+ xts(mydata$MCP, as.Date(rdate, format='%d-%m-%Y')
Error: unexpected symbol in:
"xts(mydata$MCP, as.Date(rdate, format='%d-%m-%Y')
xts"
2016 Apr 14
3
calculate sampel size?
Hi R user,
Can we calculate sample size when only mean and SE are given?
Let say one example, I have mean with SE is 0.54+-0.0517 (mean+-SE). Is
there any way to find the samples (sample size n) in that condition in R?
i think this question is not related to R, I hope you won't mind.
Thanks
[[alternative HTML version deleted]]
2012 Jun 27
1
Make a reference?
How can I make a reference i this case? I want to make a reference to
'Artikel XXX'
For example
In The Artikel 'XXXX' there is two tables.
..
Litterature
Artikel XXX
--
View this message in context: http://r.789695.n4.nabble.com/Make-a-reference-tp4634611.html
Sent from the R help mailing list archive at Nabble.com.
2012 Jun 28
2
Size of subsample in ecodist mantel()
What is the size of the boostrapped subsample in ecodist mantel()
thanks
[[alternative HTML version deleted]]