[R-es] Script con error

2016-02-29 Thread Manuel Máquez
Tengo un vector 'dt' con 95 observaciones cuyos valores fluctúan entre 1 y 32 y quiero obtener las cantidades que sean <=5, y cuando haya una mayor el contador se vuelve 0, hasta que encuentre otra cantidad <= 5 para volver a iniciar la cuenta. el script está así: for(i in 1:length(dt)) {

Re: [R] create function for compare two dataframe.

2016-02-29 Thread Hiroyuki Sato
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

Re: [R] create function for compare two dataframe.

2016-02-29 Thread PIKAL Petr
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

Re: [R] help in KNN

2016-02-29 Thread Uwe Ligges
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

Re: [R] Change NA value into 0

2016-02-29 Thread Uwe Ligges
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 <-

Re: [R] read.alignment() crashes

2016-02-29 Thread Uwe Ligges
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 <-

[R] Change NA value into 0

2016-02-29 Thread smart hendsome via R-help
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 <-

Re: [R] Copula Regression

2016-02-29 Thread Janmaat, John
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

[R] read.alignment() crashes

2016-02-29 Thread Eric Hu
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 <-

[R] help in KNN

2016-02-29 Thread Alnazer Elbedairy
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.

[R] Copula Regression

2016-02-29 Thread Janmaat, John
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

Re: [R] Special sequence

2016-02-29 Thread Federman, Douglas
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,

Re: [R] Special sequence

2016-02-29 Thread Sarah Goslee
> 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

[R] Special sequence

2016-02-29 Thread Cacique Samurai
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

Re: [R-es] Juntar dos data.frames eliminando celdas con NA

2016-02-29 Thread Carlos Ortega
Hola, Del ejemplo que has puesto, no entiendo cómo generas el "Fate_3" y el "Fate_4" tras hacer ese ejercicio de poner los fates en columnas consecutivas. Adjunto cómo se dispone el ejemplo que comentas en Excel y claro no has indicado en el ejemplo ningún Fate_3 que permita obtener un Fate_3 <-

Re: [R] receiving Error: unexpected '='

2016-02-29 Thread Jeff Newmiller
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

Re: [R] bootstrap glm

2016-02-29 Thread Adams, Jean
​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

Re: [R] Packages for modelling microelectronic devices

2016-02-29 Thread Jeff Newmiller
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

[R] legend for vectorplot in rasterVis

2016-02-29 Thread Adrienne Wootten
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.

Re: [R-es] Ejecutar una función automáticamente

2016-02-29 Thread Javier Marcuzzi
Estimado Jorge Velez Hay una opción de programarlo en forma gráfica (en Windows 10 está desde cortana, en los otros creo que desde cmd). Taskschd.msc Javier Rubén Marcuzzi De: Jorge I Velez Enviado: lunes, 29 de febrero de 2016 14:57 Para: R-help-es Asunto: [R-es] Ejecutar una función

Re: [R] Packages for modelling microelectronic devices

2016-02-29 Thread Bert Gunter
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] Packages for modelling microelectronic devices

2016-02-29 Thread Amur Ghose
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

Re: [R-es] Ejecutar una función automáticamente

2016-02-29 Thread Carlos Ortega
Hola Jorge, Puedes: - Para OSX: acceder a la shell con "system" y ejecutar un "cron". - Y para Windows: - El equivalente de cron para windows: http://stackoverflow.com/questions/132971/what-is-the-windows-version-of-cron - O instalar un cygwin en Windows y utilizar algo

Re: [R] Seasonal Cointegration

2016-02-29 Thread Sarah Goslee
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

[R] Seasonal Cointegration

2016-02-29 Thread Rafael Costa
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

Re: [R] removing data based on date pairs in a separate data frame

2016-02-29 Thread William Dunlap via R-help
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

Re: [R] divide polygon shapefile into 3 equal areas

2016-02-29 Thread Barry Rowlingson
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){

Re: [R] removing data based on date pairs in a separate data frame

2016-02-29 Thread Bert Gunter
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

Re: [R] divide polygon shapefile into 3 equal areas

2016-02-29 Thread Boris Steipe
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

Re: [R] divide polygon shapefile into 3 equal areas

2016-02-29 Thread Shane Carey
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

[R-es] Ejecutar una función automáticamente

2016-02-29 Thread Jorge I Velez
Buenas tardes a todos, Me gustaría ejecutar una función f(x, when) cada cierto tiempo; "x" es un string y "when" es la frecuencia de ejecución (cada hora, cada media hora). Alguna sugerencia? Estoy trabajando en Windows, pero tambien tengo acceso a OS X, asi que agradecería si pudieran

Re: [R] divide polygon shapefile into 3 equal areas

2016-02-29 Thread Barry Rowlingson
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

[R-es] problema al importar una BD que esta en formato de SPSS

2016-02-29 Thread eric
Estimados, tengo que hacer un calculo muy simple, pero con una BD mas o menos grande (250mil filas x 500 columnas) ... esta BD esta en formato de SPSS y la importo asi: library(foreign) bdr <- read.spss("CASEN_2013_MN_B_Principal.sav", use.value.labels=FALSE, to.data.frame=TRUE)

Re: [R] How to plot Geohash on a Map using R

2016-02-29 Thread Bert Gunter
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

Re: [R] divide polygon shapefile into 3 equal areas

2016-02-29 Thread Bert Gunter
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

[R] divide polygon shapefile into 3 equal areas

2016-02-29 Thread 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

[R] How to plot Geohash on a Map using R

2016-02-29 Thread Ravi Teja
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

Re: [R] Help with SpaceCAP

2016-02-29 Thread Bert Gunter
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,

Re: [R] Query - 'R' for commercial use

2016-02-29 Thread John McKown
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

Re: [R] Query - 'R' for commercial use

2016-02-29 Thread David Winsemius
> 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

Re: [R] Loop Help

2016-02-29 Thread David Winsemius
> 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

[R] Query - 'R' for commercial use

2016-02-29 Thread Vishal Vinayak Mujumdar 2
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

[R] Loop Help

2016-02-29 Thread Fernando McRayearth
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

[R] Help with SpaceCAP

2016-02-29 Thread Tara Jane Pirie
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] ==

[R] removing data based on date pairs in a separate data frame

2016-02-29 Thread Thomas Barningham
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

Re: [R] plot of different groups

2016-02-29 Thread Bert Gunter
... 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"

[R] R package for bootstrapping a mixed-design (between-within) MANOVA

2016-02-29 Thread Kristina Loderer
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

Re: [R] Color of points in legend() ignored if plotting to PNG

2016-02-29 Thread David L Carlson
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 =

Re: [R-es] Juntar dos data.frames eliminando celdas con NA

2016-02-29 Thread Víctor Granda García
Ah!, lo siento entonces, leí rápido y no entendí bien lo que querías hacer. Supongo que con el paquete data.table puedas hacer algo parecido, pero no tengo claro cómo, siento no ser de mucha ayuda. Un saludo! El lun., 29 feb. 2016 a las 13:04, Ruben Bermad () escribió: >

Re: [R] Version 3.2.3: package not available error with https

2016-02-29 Thread Divakar Reddy
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: > > >

Re: [R] Version 3.2.3: package not available error with https

2016-02-29 Thread Loris Bennett
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

Re: [R] plot of different groups

2016-02-29 Thread Boris Steipe
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

Re: [R] Version 3.2.3: package not available error with https

2016-02-29 Thread Duncan Murdoch
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

Re: [R] Version 3.2.3: package not available error with https

2016-02-29 Thread Martin Maechler
> 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.

[R] plot of different groups

2016-02-29 Thread Partha Sinha
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]] __

Re: [R-es] Juntar dos data.frames eliminando celdas con NA

2016-02-29 Thread Ruben Bermad
Hola Victor, Antes de nada muchas gracias por la ayuda. El problema de inner_join o left_join es que une los datos en base al ID que se usa para hacer el merge, y que en mi caso seria el ID. Pero ello no me permite eliminar para cada fila los NAs que haya en las distintas columnas, desplazando

Re: [R-es] Juntar dos data.frames eliminando celdas con NA

2016-02-29 Thread Víctor Granda García
Hola Rubén, Echa un vistazo al paquete dplyr, si no recuerdo mal las funciones "left_join" o "inner_join" hacen lo que quieres. Mira en https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf para un vistazo rápido de lo que puede hacer y

[R-es] Juntar dos data.frames eliminando celdas con NA

2016-02-29 Thread Ruben Bermad
Hola a todos, Quisiera juntar las informacion de dos data.frames con una union de columnas un tanto especial. La informacion que tengo son datos de captura-recaptura de diferentes individuos, por ejemplo en una base de datos tengo:ID <- c(1,2,3,4)Fate_1 <- c(2,2,2,2)Fate_2 <- c(0,0,0,NA)Fate_3

[R] Version 3.2.3: package not available error with https

2016-02-29 Thread Loris Bennett
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

Re: [R] create function for compare two dataframe.

2016-02-29 Thread Hiroyuki Sato
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

Re: [R] bnlearn and TAN network

2016-02-29 Thread Marco Scutari
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

Re: [R] receiving Error: unexpected '='

2016-02-29 Thread Jeff Newmiller
"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

Re: [R] Why does match() treat NaN's as compables; Bug or Feature?

2016-02-29 Thread Martin Maechler
> 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

Re: [R] bnlearn and TAN network

2016-02-29 Thread Marco Scutari
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.

Re: [R] bnlearn and TAN network

2016-02-29 Thread ross.chapman
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

Re: [R] receiving Error: unexpected '='

2016-02-29 Thread PIKAL Petr
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

Re: [R] receiving Error: unexpected '='

2016-02-29 Thread jim holtman
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

Re: [R] Query in R.

2016-02-29 Thread Marco Scutari
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)

Re: [R] create function for compare two dataframe.

2016-02-29 Thread PIKAL Petr
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

[R] bnlearn and TAN network

2016-02-29 Thread ross.chapman
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

[R] create function for compare two dataframe.

2016-02-29 Thread Hiroyuki Sato
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 <-

[R] receiving Error: unexpected '='

2016-02-29 Thread KMNanus
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

Re: [R] Color of points in legend() ignored if plotting to PNG

2016-02-29 Thread PIKAL Petr
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