Re: [R] Prevent a table from crossing page boundary using rmarkdown/pandoc

2016-11-03 Thread Duncan Murdoch
On 02/11/2016 8:22 PM, MacQueen, Don wrote: I'm using rmarkdown::render, which executes pandoc, to create a fairly simple document, and I would like to prevent tables from breaking across pages. I've been doing some web-searching but haven't found a solution. If you make it into a float, LaTeX

[R] Getting error in clustering analysis of RNAseq raw reads

2016-11-03 Thread Yogesh Gupta
Dear All, I have raw read for around 40,000 transcripts at 3 development stages in four tissue with two biological replicate. I want to do clustering to see the correlation between biological replicate and tissue gene expression. For that I used the following cammand but geeting error at the end.

Re: [R] When customizing last line, the code stops working

2016-11-03 Thread Fowler, Mark
Hi Frank, Maybe just the quotes? paste0("dt_sp_", 1:length(sp)) [1] "dt_sp_1" "dt_sp_2" "dt_sp_3" "dt_sp_4" noquote(paste0("dt_sp_", 1:length(sp))) [1] dt_sp_1 dt_sp_2 dt_sp_3 dt_sp_4 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Frank S. Sent: Nove

Re: [R] When customizing last line, the code stops working

2016-11-03 Thread Duncan Murdoch
On 03/11/2016 8:29 AM, Frank S. wrote: Dear all, The function I present works perfectly when I run it as written (that is, leaving NEW LINE as commented). However, when I try to run the same function via this mentioned line (and therefore commenting LAST LINE) R gives an error message: Error

[R] [R-pkgs] Massive Update to Hmisc package

2016-11-03 Thread Frank Harrell
Hmisc 4.0-0 is now on CRAN. The package has undergone a massive update. The most user-visable changes are; - support for Rmarkdown html notebooks - advanced html tables using the htmlTable package and summaryM function; can copy and paste into word processors - support for plotly interactive gr

[R] Generating Progressively Type-II Censored Samples

2016-11-03 Thread Achieng Okelo
Dear all, Is there a built-in function in R that can be used to generate type-II progressively censored samples from a given distribution (like the two parameter Lindley distribution) using the algorithm in Balakrishnan and Sandhu (1995). The algorithm is in the document attached. Thank you --

[R] Manage unbalanced panel with plm

2016-11-03 Thread laura roncaglia
Dear all, I am using an unbalanced panel dataframe to run my analysis. The df is based on a national survey and I know the reason why the df is unbalanced. I tried to understand if plm package corrects for unbalanced panel, so that I can use the plm package without problem. I create a plm.data u

[R] Five new ordinary members of the R Foundation

2016-11-03 Thread Martyn Plummer
The R Foundation has elected five new ordinary members in recognition of their contributions to the R project: * Jennifer Bryan    https://www.stat.ubc.ca/~jenny/ * Diane Cook    http://dicook.github.io/ * Julie Josse    http://juliejosse.com/ * Tomas Kalibera   https://github.com/kalibera  * Bala

[R] Fwd: Where the modification has to be done i am en countouring problem

2016-11-03 Thread Katha Baswanth
-- Forwarded message -- From: Katha Baswanth Date: Thu, Nov 3, 2016 at 2:36 PM Subject: Where the modification has to be done i am en countouring problem To: yang.f...@canada.ca Loading required package: tcltk Error in daynormm[(i - i1):(i + i1), ] : subscript out of bounds --

[R] coursera course - assgnment - error : Error in which(!is.Na(content[["sulfate"]])) : , could not find function "is.Na"

2016-11-03 Thread Roelof Wobben
Hello, I want to try to get all the data of a cloumn namend "sulfate" which is not Na. So I did : corr <- function(directory, threshold = 0) { # lezen van alle bestanden in de directory file_list <- list.files( directory, pattern = "*.csv", full.names = TRUE) # lezen van alle be

Re: [R] coursera course - assgnment - error : Error in which(!is.Na(content[["sulfate"]])) : , could not find function "is.Na"

2016-11-03 Thread Rui Barradas
Hello, Just read the error message more carefully. The function name is the (obvious) problem! Try, with all lowercase, is.na() Hope this helps, Rui Barradas Em 03-11-2016 16:40, Roelof Wobben escreveu: Hello, I want to try to get all the data of a cloumn namend "sulfate" which is not Na.

Re: [R] coursera course - assgnment - error : Error in which(!is.Na(content[["sulfate"]])) : , could not find function "is.Na"

2016-11-03 Thread Rui Barradas
Hello again, I've just read your code more carefully and I believe you should read the help page ?complete.cases and run the examples therein. Tip: don't compare the return value with 0, it's nonsense. Rui Barradas Em 03-11-2016 16:40, Roelof Wobben escreveu: Hello, I want to try to get all

[R] The code itself disappears after starting to execute the for loop

2016-11-03 Thread Maram SAlem
Hi all, I've a question concerning the R 3.3.1 version. I have a long code that I used to run on versions earlier to the 3.3.1 version, and when I copied the code to the R console, I can still see the code while the loop is executing , along with the output printed after each iteration of the l

Re: [R] coursera course - assgnment - error : Error in which(!is.Na(content[["sulfate"]])) : , could not find function "is.Na"

2016-11-03 Thread David Winsemius
> On Nov 3, 2016, at 9:40 AM, Roelof Wobben wrote: > > Hello, > > I want to try to get all the data of a cloumn namend "sulfate" which is not > Na. > > So I did : > > corr <- function(directory, threshold = 0) { > > # lezen van alle bestanden in de directory > > file_list <- list.files

Re: [R] The code itself disappears after starting to execute the for loop

2016-11-03 Thread jim holtman
A little more information would help. How exactly are out creating the output to the console? Are you using 'print', 'cat' or something else? Do you have buffered output checked on the GUI (you probably don't want it checked or you output will be delayed till the buffer is full -- this might be

Re: [R] install R in relative path

2016-11-03 Thread Tom Graves via R-help
Do you know if there is anyway to not have to put it in the PATH or symlink to the original build location?  I was hoping just calling it in relative path like ./R-3.3.1/bin/Rscript would do it but it errors Rscript execution error: No such file or directory.  is there any sort of RPATH (similar

[R] multiplying a matrix by a vector

2016-11-03 Thread Dimitri Liakhovitski
Hello! I have a matrix x and a vector y: x <- matrix(1:6, ncol = 2) y <- c(2,3) I need to multiply the first column of x by 2 (y[1]) and the second column of x by 3 (y[2]). Of course, I could do this - but it's column by column: x[,1] <- x[,1] * y[1] x[,2] <- x[,2] * y[2] x Or I could repeat

Re: [R] multiplying a matrix by a vector

2016-11-03 Thread Rui Barradas
Hello, Take advantage that in R '*' recycles its arguments (the shorter one) and that the operation is performed column-wise: t(y * t(x)) Hope this helps, Rui Barradas Em 03-11-2016 21:05, Dimitri Liakhovitski escreveu: Hello! I have a matrix x and a vector y: x <- matrix(1:6, ncol = 2)

Re: [R] multiplying a matrix by a vector

2016-11-03 Thread Sarah Goslee
Like this? > sweep(x, 2, y, "*") [,1] [,2] [1,]2 12 [2,]4 15 [3,]6 18 > On Thu, Nov 3, 2016 at 5:05 PM, Dimitri Liakhovitski wrote: > Hello! > > I have a matrix x and a vector y: > > x <- matrix(1:6, ncol = 2) > y <- c(2,3) > > I need to multiply the first column of x by

Re: [R] Resetting Baseline Level of Predictor in svyglm Function

2016-11-03 Thread Courtney Benjamin
Thank you, Anthony; it worked flawlessly.? Courtney Benjamin Broome-Tioga BOCES Automotive Technology II Teacher Located at Gault Toyota Doctoral Candidate-Educational Theory & Practice State University of New York at Binghamton cbenj...@btboces.org 607-763-863