Re: [R] Probable Error in fmsb package

2015-12-31 Thread Heinz Tuechler
Anindya Sankar Dey wrote/hat geschrieben on/am 30.12.2015 07:35: Hi All, The fmsb package has a function called Variance Inflation Factor and it states the definition of the function as follows:- "To evaluate multicolinearity of multiple regression model, calculating the variance inflation

Re: [R] Dput Help in R

2015-12-31 Thread Mark Sharp
Shivi, It looks like you have copied and pasted with errors. When you use dput() on a dataframe, it will output a list (see example that follows). I think you have cut off the beginning of the output and have manually added the assignment “ab<-“. Also it is clear that the read.csv is

[R] Histogram for Left Censored Data

2015-12-31 Thread Steven Stoline
Dear All: I need helps with creating histograms for data that include left censored observations. Here is an example of left censored data *Sulfate.Concentration*

[R] bootstrapping statistics from leaken package

2015-12-31 Thread Benedetto Rocchi
I am trying to generate a confidence interval for the statistic arpt (at risk of poverty threshold generated with the package leaken) using the package boot. This is my temptative script (where XH090 and DB030 and w are variables of an attached dataframe): > arpt.boot <- function(data,i){ > d

Re: [R] bootstrapping statistics from leaken package

2015-12-31 Thread Bert Gunter
Try d= data[ ,i] instead of d= data[i] in your function. If that doesn't help, I think we would have to know more about the structure of your data. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley

Re: [R] Dput Help in R

2015-12-31 Thread SHIVI BHATIA
Hi Duncan, Please find the dput from the data. ab<-read.csv("collection_last.csv",header=TRUE) y<-ab[1:10,] ab<- "2,458", "2,461", "2,462", "2,463", "2,464", "2,465", "2,468", "2,469", "2,470", "2,473", "2,474", "2,475", "2,476", "2,477", "2,478", "2,479", "2,480", "2,483", "2,484,267",

[R] unname() not working as stated in documentation

2015-12-31 Thread Richard M. Scriven
Hi all, In help(unname), for the "force" argument, it states that "if true, the dimnames (names and row names) are removed even from data.frames." However, when I use unname() to remove all the names from mtcars, it fails. > unname(mtcars, force = TRUE) Error in

Re: [R] Dput Help in R

2015-12-31 Thread David Winsemius
> On Dec 30, 2015, at 11:26 PM, SHIVI BHATIA > wrote: > > Hi Duncan, > Please find the dput from the data. > > ab<-read.csv("collection_last.csv",header=TRUE) > y<-ab[1:10,] > This is (possibly) partial output from a dput call. Unable to repair at any rate. >

Re: [R] R:Exponent

2015-12-31 Thread David Winsemius
> On Dec 31, 2015, at 1:12 PM, David Winsemius wrote: > >> >> On Dec 31, 2015, at 11:16 AM, Abram Wooten via R-help >> wrote: >> >> Hello, >> >> I am new to R and I am having trouble adding an exponent to my problem. For >> instance, >>> mat5

Re: [R] create one bigger matrix with one smaller matrix

2015-12-31 Thread Giorgio Garziano
A <- matrix(c(1,2,3,4),2,2) B <- matrix(A, nrow=14, ncol=14) > B [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,]131313131 3 1 3 1 3 [2,]242424242 4 2 4

[R] R:Exponent

2015-12-31 Thread Abram Wooten via R-help
Hello, I am new to R and I am having trouble adding an exponent to my problem. For instance, > mat5 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) > mat6 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) > mat5%^%2 Error: could not find function "%^%" I unsure on weather I should square mat5 or use the two

Re: [R] create one bigger matrix with one smaller matrix

2015-12-31 Thread David Winsemius
> On Dec 31, 2015, at 12:28 PM, Kathryn Lord wrote: > > Dear R users, > > Suppose that I have a matrix A > > A <- matrix(c(1,2,3,4),2,2) >> A > [,1] [,2] > [1,]13 > [2,]24 > > With this matrix A, I'd like to create bigger one, for example, > >

Re: [R] [FORGED] Histogram for Left Censored Data

2015-12-31 Thread Rolf Turner
On 31/12/15 23:20, Steven Stoline wrote: Dear All: I need helps with creating histograms for data that include left censored observations. Here is an example of left censored data *Sulfate.Concentration* <-matrix(c(1450,1800,1840,1820,1860,1780,1760,1800,1900,1770,1790,

Re: [R] create one bigger matrix with one smaller matrix

2015-12-31 Thread Bert Gunter
Well, all of the solutions proposed are a bit tricky in that the matrix must be "constructed" by hand. They are also reinventing wheels. What I think you really want is the kronecker product, which is the matrix operation that does exactly what you want. e.g. A <- matrix(1:4, nr=2) to create a

Re: [R] Histogram for Left Censored Data

2015-12-31 Thread Jim Lemon
Hi Steve, Maybe something like this: Sconc<-matrix(c(1450,1800,1840,1820,1860,1780,1760,1800,1900, 1770,1790,1780,1850,1760,1450,1710,1575,1475,1780,1790, 1780,1450,1790,1800,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0), 24,2) hist(Sconc[,1],breaks=c(1450,1550,1650,1750,1900))

[R] save screen printed data frames and ggplots into a file

2015-12-31 Thread Ragia Ibrahim
Dear group I have a script that prints data frames and plot using ggplot 2 while running,   how can I do this thanks in advance Ragia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] save screen printed data frames and ggplots into a file

2015-12-31 Thread Bert Gunter
Does what? You said you already have a script. **If** you want to program it as a function, then I suggest that you do some homework and go through an R tutorial, e.g. the "Intro to R" that ships with R or one of the many available on the web. If that is not what you mean, then clarify. Cheers,

Re: [R] R:Exponent

2015-12-31 Thread David Winsemius
> On Dec 31, 2015, at 11:16 AM, Abram Wooten via R-help > wrote: > > Hello, > > I am new to R and I am having trouble adding an exponent to my problem. For > instance, >> mat5 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) >> mat6 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) >>

[R] create one bigger matrix with one smaller matrix

2015-12-31 Thread Kathryn Lord
Dear R users, Suppose that I have a matrix A A <- matrix(c(1,2,3,4),2,2) > A [,1] [,2] [1,]13 [2,]24 With this matrix A, I'd like to create bigger one, for example, [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,]1313

Re: [R] create one bigger matrix with one smaller matrix

2015-12-31 Thread Michael Hannon
Something like: A <- matrix(c(1,2,3,4),2,2) A B <- matrix(rep(A, 4), nrow=2) B C <- do.call(rbind, lapply(1:8, function(x) B)) C On Thu, Dec 31, 2015 at 12:28 PM, Kathryn Lord wrote: > Dear R users, > > Suppose that I have a matrix A > > A <-

Re: [R] save screen printed data frames and ggplots into a file

2015-12-31 Thread Jim Lemon
Hi Ragia, I may be missing your point, but try the "htmlize" function in the prettyR package. This creates an HTML file containing both the text output and images from an R script. Jim On Fri, Jan 1, 2016 at 11:46 AM, Ragia Ibrahim wrote: > Dear group > I have a script

[R-es] De nuevo una preguntilla....

2015-12-31 Thread heber sarmiento via R-help-es
Cordial orario aún no han Saludo a todos y un feliz próximo año para quienes por horario aún no han cambiado de año. una pregúntica, alguien me puede informar si existe un modo de colocar espacio entre dos columnas en un data.frame? gracias de antemano. un abrazo [[alternative HTML