Hello Petr
I'll send mail with plain text format at next time.
(I didn't know how to send plain text mail on gmail)
Thanks.
2016年3月1日(火) 16:07 PIKAL Petr :
> Hi
>
>
>
> You said
>
>
>
> When I asked this question, I used indent for readability.
>
> So maybe it was added extra space.
>
> I exe
Hi
You said
When I asked this question, I used indent for readability.
So maybe it was added extra space.
I executed same command. It has no extra space.
> str(s1)
'data.frame':3 obs. of 4 variables:
$ ID : Factor w/ 3 levels "ID1","ID2","ID3": 1 2 3
$ VAL1: int 2 0 0
$ VAL2: int 2 3
Hmmm, this pretty much looks like homework this list is not intended
for. Please ask your supervisor/teacher why nautodata$mydata.MPG is not
numeric if you cannot find that out yourself.
Best,
Uwe Ligges
On 01.03.2016 00:49, Alnazer Elbedairy wrote:
dear all
attached you will find a csv datas
You do
for(i in 1:n){
a[i] = x[i,1]
where a has length n and x has iter rows, hence you get NA values for
all i > iter...
Best,
Uwe Ligges
On 01.03.2016 07:39, smart hendsome via R-help wrote:
Hi R-users,
I have problem regarding my function. My function as below:
gen.m <- function(
On 01.03.2016 01:34, Eric Hu wrote:
Hi, I am trying to read a fasta file with >15K alignedd sequences. However it
crashes showing a runtime error. I have tried both R.3.2.3 and R.3.2.1 under
windows 7. A smaller fasta file works perfectly fine in either case.
library(seqinr)
myseqs <- read.a
Hi R-users,
I have problem regarding my function. My function as below:
gen.m <- function(n,itr){
set.seed(1234)
m <- matrix(nrow = n, ncol=4)
a <- matrix(nrow = n, ncol = 1)
b <- matrix(nrow = n, ncol = 1)
C <- matrix(nrow = n, ncol = 1)
d <- matrix(nro
Well, seem to have solved own problem.
The article "Enjoy the joy of copulas: with a package copula" has a nice
appendix that describes precisely how to set up what I am looking for. The
only minor issue is that some of the functions have been deprecated.
So, if anyone is curious, here is the
Hi, I am trying to read a fasta file with >15K alignedd sequences. However it
crashes showing a runtime error. I have tried both R.3.2.3 and R.3.2.1 under
windows 7. A smaller fasta file works perfectly fine in either case.
library(seqinr)
myseqs <- read.alignment("aligned_seqs.fasta",format="fa
dear all
attached you will find a csv datasets, there are many steps before these
they work properly. but I have errors in these steps I guess. any help
appreciated.
Step1: convert the data from continuous to categorical
##nautodata is the normalized data. I did it in the previous steps.
MPGCat=
Hello,
I'm trying to figure out how to run copula regressions in R. I see a couple of
packages that do specific versions, but I am hoping to be a bit more flexible.
My specific problem involves two ordered regressions (four levels each) that
may be correlated. Is there a package out there tha
You might look at the sprint function which is in base R
--
Better name for the general practitioner might be multispecialist.
~Martin H. Fischer (1879-1962)
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Cacique Samurai
Sent: Monday, February 29, 201
> fourseq <- sprintf("%04d", 1:3000)
> head(fourseq)
[1] "0001" "0002" "0003" "0004" "0005" "0006"
> tail(fourseq)
[1] "2995" "2996" "2997" "2998" "2999" "3000"
Note that it has to be character to maintain the initial zeroes.
Sarah
On Mon, Feb 29, 2016 at 3:12 PM, Cacique Samurai
wrote:
> Hello
Hello Helpers!
How to create a number sequence from1 to 3000, but usigm four numbers
like 0001, 0002...0102...3000.
Thanks in advanced,
Raoni
--
Raoni Rosa Rodrigues
Research Associate of Fish Transposition Center CTPeixes
Universidade Federal de Minas Gerais - UFMG
Brasil
rodrigues.ra...@gmai
Please keep the mailing list cc'd.
Why? Because that is what you are giving it... vectors, and that is how it is
defined to work. Type
?ifelse
at the R console and read the help.
There are several ways to modify a data frame. Some are
ken$wk5 <- ifelse( is.na( ken$wk5 ), ken$wk4, ken$wk5 )
It's helpful if you post example data with your question, so R-help
readers can easily test your code. I created a fake data set with two x
variables for testing. It's also helpful if you list the necessary
packages. I assume that used the boot package.
You are dealing with two kinds of indic
Not aware of any, but there is a way for you to search CRAN:
library(sos)
???"diode"
--
Sent from my phone. Please excuse my brevity.
On February 29, 2016 9:51:46 AM PST, Amur Ghose wrote:
>Hi,
>
>Are there any R packages for modelling diodes, BJTs, MOSFETs and other
>microelectronic devices ?
All,
Your help with this is greatly appreciated!
I'm working with the vectorplot function in rasterVis to produce wind
vector maps (pretty much like the code in here -
https://rpubs.com/alobo/vectorplot), but I was wondering about a legend.
The vectors that vectorplot produces are wonderful. Wh
Doubtful, but try searching on the rseek.org site.
Most R packages are concerned with the analysis and visualization of
(statistical) data. This sounds like more of a Matlab type capability
for deterministic modeling. But I am wholly ignorant about this, and
so may well be wrong. Ergo the search r
Hi,
Are there any R packages for modelling diodes, BJTs, MOSFETs and other
microelectronic devices ? I found a few for generic circuits and
that's about it.
I am trying to create a package of my own for these devices (
https://github.com/AmurG/transistor ) and would like to know if there
is any e
Checking Rseek.org turns up this discussion thread:
http://blog.gmane.org/gmane.comp.lang.r.r-metrics/month=20130601
which talks about the lack of that method in R.
Sarah
On Mon, Feb 29, 2016 at 2:08 PM, Rafael Costa
wrote:
> Dear R users,
>
> Where can I find the codes to Seasonal Coitegration
Dear R users,
Where can I find the codes to Seasonal Coitegration tests (known as EGHL
test)? This test was presented on paper “Seasonal Cointegration: The
Japanese Consumption Function.” (Engle, R.F., C.W.J. Granger, S. Hylleberg,
and H.S. Lee; 1993).
I am looking forward any help.
Thanks in a
If your start/end pairs are not overlapping you can use findInterval() to
do this
pretty quickly. E.g.,
isInABound <- function (x, low, high)
{
stopifnot(length(low) == length(high))
bounds <- rep(low, each = 2)
bounds[seq(2, length(bounds), by = 2)] <- high
stopifnot(!is.unsorted(
This probably on the limit of acceptable LOCs on this list but here goes:
makeVchopper <- function(pol){
bb = bbox(pol)
delta = (bb[2,2] - bb[2,1])/10
xmin = bb[1,1]-delta
ymin = bb[2,1]-delta
ymax = bb[2,2]+delta
choppoly = function(xmax){
readWKT(sprintf("POLYGON
What is the format of your date columns? -- character, factor, POSIXxx,... ??
See ?str
to find out.
(Reply to the list, not just me; others are far more facile at dates than I am).
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking th
Sounds like a fun little bit of code to write:
- write a function that will return the area of a slice as a function of a
parameter X that can vary between some bounds on your shape: left to right, or
top to bottom etc. E.g. if you want to slice vertically, this could be the area
of the part o
ok thanks!!
I would like to slice it vertically and have 3 distinct areas of equal
area. So I need to chop it up into 3 areas of equal size essentially.
There is no tool to do it in QGIS!!
Thanks
On Mon, Feb 29, 2016 at 5:51 PM, Barry Rowlingson <
b.rowling...@lancaster.ac.uk> wrote:
> On Mon,
On Mon, Feb 29, 2016 at 5:37 PM, Shane Carey wrote:
> Hi,
>
> Is it possible to divide a polygon into 3 equal areas using R?
Yes, in an infinite number of ways. Want to narrow it down?
Specifically, you could slice it vertically, horizontally, or at any
angle between. You could chop it into sq
The r-sig-geo list might be a better place for this post.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Feb 29, 2016 at 9:33 AM, Ravi Teja
The r-sig-geo list might be a better place for this post.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Feb 29, 2016 at 9:37 AM, Shane Carey
Hi,
Is it possible to divide a polygon into 3 equal areas using R?
I cant seem to be able to do it in QGIS.
Thanks
--
Shane
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://st
Hi,
I want to plot the following Geo-hashes on a map with labels as the
percentage against each Geohash.
Geohash % distribution
ttngh 26.14%
ttnfu 17.67%
ttng5 12.31%
ttnfg 11.50%
ttnfv 14.10%
ttngk 7.33%
ttngm 2.14%
ttngj 6.06%
ttnft 1.32%
ttngs 0.75%
ttngn 0.27%
ttng7 0.20%
ttnge 0.15%
ttnfe 0.
The email server for this list filters out most attachments, including yours.
.txt attachments are generally permitted. As you seem to have
successfully read the files into R, use dput() to include (a small
portion if the data are numerous) of the data in your email. Before
doing so, however, exam
On Mon, Feb 29, 2016 at 10:37 AM, Vishal Vinayak Mujumdar 2 <
vmujumd...@sapient.com> wrote:
> Hello Sir,
>
> We are planning to recommend 'R' as solution for Micro Services
> implementation in one of the ongoing project.
Sounds good to me.
>
> Please can you assist us with providing info
> On Feb 29, 2016, at 8:37 AM, Vishal Vinayak Mujumdar 2
> wrote:
>
> Hello Sir,
>
> We are planning to recommend 'R' as solution for Micro Services
> implementation in one of the ongoing project.
>
> Please can you assist us with providing information pertaining to license
> cost , commer
> On Feb 29, 2016, at 6:24 AM, Fernando McRayearth wrote:
>
> Need to create ascii maps for 10 species by writing a loop. So i have to have
> the vectors ready in the Global Environment, and the "raster map" so the
> information can be added.
>
> when writing the loop I am using the "paste"
Hello Sir,
We are planning to recommend 'R' as solution for Micro Services implementation
in one of the ongoing project.
Please can you assist us with providing information pertaining to license cost
, commercial use , usage , warranty etc.
Thanks & Regards,
Vishal Vinayak Mujumdar
Specialist
Need to create ascii maps for 10 species by writing a loop. So i have to have
the vectors ready in the Global Environment, and the "raster map" so the
information can be added.
when writing the loop I am using the "paste" function because the only thing
that changes in the vector is the name o
Hi there,
I am trying to load csv files into the spacecap program in R, but I keep
getting either or both of the following error messages:
Error - mismatch in animal capture details and trap deployment details files :
location id 29
not deployed on SO 22
Error in if (locso[loc, so + 3] == 0)
Dear R users,
I have two data frames.
The first contains a date/time column and the concentration of a species:
head(mydata)
datespecies
1 2016-01-31 23:59:53 -559.17
2 2016-02-01 00:00:53 -556.68
3 2016-
... and if this is homework (it looks like it), you should know that
there is a no homework policy on this list.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" com
Dear all,
new to R - I have tried to search different package manuals, but seem
to be unable to find what I want...is there an R package that allows me
to compute bootstrapped MANOVAs for multivariate analysis containing two
factors, one of them being a repeated measures (within) factor, the
othe
Using
png("foo.png", 1200, 1200, res=200)
x <- rnorm(10)
y <- rnorm(10)
plot(x, y, pch = 21, cex = 1.5,
xlim = range(x, y) * 1.2, ylim = range(x, y)*1.2,
col = "black", bg = "lightgrey")
legend("topleft", legend = "foo", inset = 0.02,
bg = "white", pch = 21, pt.cex = 1.5,
col = "black"
Hi,
I'm not sure about your OS but I fixed while installing below packages on
CentOS for RCurl
yum install curl
yum install curl-devel
Thanks,
Divakar
On Mon, Feb 29, 2016 at 6:32 AM, Loris Bennett
wrote:
> Duncan Murdoch writes:
>
> > On 29/02/2016 6:09 AM, Loris Bennett wrote:
> >> Hi,
> >
Duncan Murdoch writes:
> On 29/02/2016 6:09 AM, Loris Bennett wrote:
>> Hi,
>>
>> I recently installed version 3.2.3. When I call
>>
>> install.packages("RCurl")
>>
>> I get a pop-up menu labelled "HTTPS CRAN Mirror" with a shortish list of
>> mirrors. However, I don't seem to be able to reach
You need to pass a suitably constructed vector of color values to plot() via
the parameter "col". Read the section on "Color Specification" for the par()
function for details. Also read up on the parameter "pch" for which symbol to
use, a filled circle will usually work well. See the help for po
On 29/02/2016 6:09 AM, Loris Bennett wrote:
Hi,
I recently installed version 3.2.3. When I call
install.packages("RCurl")
I get a pop-up menu labelled "HTTPS CRAN Mirror" with a shortish list of
mirrors. However, I don't seem to be able to reach any of these
mirrors, and always get an error
> Loris Bennett
> on Mon, 29 Feb 2016 12:09:14 +0100 writes:
> Hi, I recently installed version 3.2.3. When I call
> install.packages("RCurl")
> I get a pop-up menu labelled "HTTPS CRAN Mirror" with a
> shortish list of mirrors. However, I don't seem to be
> ab
I have the following fields in table:
height, weight, gender
i want to plot height and weight of gender(males and females). The data
points needs to be marked in two different colors.
Regards
parth
[[alternative HTML version deleted]]
__
R-help@
Hi,
I recently installed version 3.2.3. When I call
install.packages("RCurl")
I get a pop-up menu labelled "HTTPS CRAN Mirror" with a shortish list of
mirrors. However, I don't seem to be able to reach any of these
mirrors, and always get an error like the following
Error in download.file(url
Hello Petr.
Thank you for replying.
Your step is better than my step!.
I added one step
> s.dcast <- dcast(s.m, ID+variable~dat)
> subset(s.dcast,df1!=df2)
ID variable df1 df2
1 ID1 VAL1 2 0
5 ID2 VAL2 3 2
9 ID3 VAL3 4 2
This output is what I wanted!!.
P.S.
When I
Hi Ross,
On 29 February 2016 at 08:46, wrote:
> The graph shows arcs between each of the variables and the output node
> (classFFB) along with internal nodes showing parent/child relations between
> 4 nodes.
Yes, that is as expected.
> However, when I look at the model in the TAN object and th
"if" is not vectorized... it only works on length 1 test values. However, if
you do use it, it absolutely requires parentheses... if ( test ) { truecode }.
I think you want "ifelse" which is vectorized... something like
ifelse( is.na( x ), y, x )
Read the help pages ?if and ?ifelse.
I don't
> Bert Gunter
> on Sat, 27 Feb 2016 19:06:05 -0800 writes:
> (on list, since others might not have gotten it either).
> OK, I get it now. It was I who misunderstood.
> But isn't the bug in the **misuse** of match() in ecdf()
> (by failing to specify the nomatch argume
Hi Ross,
On 29 February 2016 at 09:51, wrote:
> The output node is classFFB. My understanding is that the model only
> has one node linked directly to the output node:
> ][matureTreeData.ESTATE|classFFB].
Actually not, e.g.
[matureTreeData.YEAR|classFFB:matureTreeData.ESTATE] means
P(matureTre
Hi Marco
Thanks for your quick response
>-Original Message-
>From: Marco Scutari [mailto:marco.scut...@gmail.com]
>Sent: Monday, 29 February 2016 8:24 PM
>To: ross.chap...@ecogeonomix.com
>Cc: r-help
>Subject: Re: [R] bnlearn and TAN network
>
>Hi Ross,
>
>On 29 February 2016 at 08:46,
Hi.
It seems to me that you are doing wrong almost everything, sorry.
First to your syntax error. "if" is the function and it needs to be called as
such.
new_week <- function(x,y) {
if (x[is.na(x)]) {
x = y
}
}
But if you resolve this you would get
> new_week(s1$wk5, s1$wk4)
Error in if (x[is
Your syntax on the 'if' is wrong; you need 'if (..expression..)' -- you are
missing the parentheses. Also read up on functions; any changes are local
-- you cannot change values outside the environment. You should just
return values. You also probably need to pass in the dataframe you want to
ma
Hi Rachana,
On 23 February 2016 at 12:38, Rachana Bagde wrote:
> Can anyone please solve this query.
>
> http://stackoverflow.com/questions/35577484/cpquery-of-bnlearn-gives-0-for-every-event-and-evidence-in-r
I think there are several problems with your code.
1) Your variables are continuous,
Hi
You does not need to create function, you can use functions already available.
> s1<- read.table("clipboard", header=T, sep=",")
> s2<- read.table("clipboard", sep=",")
You presented second table without names.
> names(s2) <- names(s1)
> s1
ID VAL1 VAL2 VAL3
1 ID1223
2 I
Hi all,
I have created a TAN network using bnlearn in R using the commands:
TAN <- tree.bayes(training.data,"classFFB")
fitted <- bn.fit(TAN,training.data,method="bayes")
where training.data is a dataframe with 6 variables.
I have produced a plot of the network using graphviz.plot:
Hello
I would like to create a funciton which is create new dataframe
for compare reslut of two dataframes.
No. COLUMN DF1 DF2
"1" "VAL1" "2" "0" # <- compare ID1,VAL1
"2" "VAL2" "3" "2" # <- comapre ID2,VAL2
"3" "VAL3" "4" "2" # <- compare ID3,VAL3
s1 <- read.table("sample1.txt"
I’m a newbie and trying to execute this simple function in order to change wk 5
NA’s to wk 4 values for the dataset (ken) below. Can someone pls tell me what
I’m doing wrong? The error msg is “"rror: unexpected input in "new_week <-
function(x,y) { “
Even the “E” is missing in the word “Error.
Hi
Works on WXP too.
platform i386-w64-mingw32
arch i386
os mingw32
system i386, mingw32
status Under development (unstable)
major 3
minor 3.0
year 2015
month 06
day15
svn rev68521
language
63 matches
Mail list logo