search for: _vector_

Displaying 11 results from an estimated 11 matches for "_vector_".

Did you mean: _vector
2015 Mar 17
2
Proposing a change in the base::sink interface for type argument
...ssage"), split=FALSE) However, reading the implementation there is implicit assumption that type is a single character value: https://github.com/wch/r-source/blob/trunk/src/library/base/R/sink.R#L23 I'm finding this very confusing as the interface is giving a default value of a character _vector_ causing the illusion that by default both output/message will be redirected. I'm proposing either a change in the interface so it is a single character (either output or message) or a loop in the implementation on all values in type so it will actually be considered a vector. Here is an exampl...
2015 Mar 18
1
Proposing a change in the base::sink interface for type argument
...the implementation there is implicit assumption that type > >is a single character value: > >https://github.com/wch/r-source/blob/trunk/src/library/base/R/sink.R#L23 > > > >I'm finding this very confusing as the interface is giving a default value > >of a character _vector_ causing the illusion that by default both > >output/message will be redirected. > > > >I'm proposing either a change in the interface so it is a single character > >(either output or message) or a loop in the implementation on all values > >in > >type so it w...
2015 Mar 18
0
Proposing a change in the base::sink interface for type argument
...gt; >However, reading the implementation there is implicit assumption that type >is a single character value: >https://github.com/wch/r-source/blob/trunk/src/library/base/R/sink.R#L23 > >I'm finding this very confusing as the interface is giving a default value >of a character _vector_ causing the illusion that by default both >output/message will be redirected. > >I'm proposing either a change in the interface so it is a single character >(either output or message) or a loop in the implementation on all values >in >type so it will actually be considered a v...
2010 Dec 10
1
WriteXLS error:Error in get(x, envir = envir) : variable names are limited to 256 bytes
Hello all, I don't understand why this won't work. I have entered: WriteXLS(alldata,'test.xls') and I get this error message: Error in get(x, envir = envir) : variable names are limited to 256 bytes. My variable names are not very long, and are accepted by write.csv. alldata is a list containing 4 dataframes, with each dataframe having the the same variable names, which are:
2012 Mar 17
3
rtriang using ifelse statement
Hi All, I want to draw samples (n=4) from one of 2 triangular distributions for each value in a matrix. I am using an ifelse statement to try to define which distribution to draw from. >From the output, I can see that the ifelse statement is choosing the correct distribution, however, my n=4 simulations aren't occurring. Is there a way to adjust the ifelse statement to fix this, or must
2001 Nov 12
3
'subscript out of bounds' in matrices
Dear list Having read through all the archives of the mailing lists, I've had no luck finding the answer to my problem. I am running a for(i in 1:n) loop and am creating a matrix, p, for each of the n observations. This matrix p is a 2x1 matrix. I am then doing the following: diagp<-diag(c(p[1,1],p[2,1])) to create a matrix with the elements of P on the diagonal (i.e. a 4x4 matrix).
2019 Nov 02
6
head.matrix can return 1000s of columns -- limit to n or add new argument?
Thanks Martin and Peter, I agree that we can be careful and narrow and still see a nice improvement in behavior. While Herve's point is valid and I understand his frustration, I think staying within the matrix vs c(matrix, array) space is the right scope for this work in terms of fiddling with inheritance. As another point, I don't know off the top of my head of any other classes which
2020 Apr 24
0
R 4.0.0 is released
...o be selected from any of the built-in palettes. * n2mfrow() gains an option asp = 1 to specify the aspect ratio, fulfilling the wish and extending the proposal of Michael Chirico in PR#17648. * For head(x, n) and tail() the default and other S3 methods notably for _vector_ n, e.g. to get a "corner" of a matrix, has been extended to array's of higher dimension thanks to the patch proposal by Gabe Becker in PR#17652. Consequently, optional argument addrownums is deprecated and replaced by the (more general) argument keepnums. An...
2020 Apr 24
0
R 4.0.0 is released
...o be selected from any of the built-in palettes. * n2mfrow() gains an option asp = 1 to specify the aspect ratio, fulfilling the wish and extending the proposal of Michael Chirico in PR#17648. * For head(x, n) and tail() the default and other S3 methods notably for _vector_ n, e.g. to get a "corner" of a matrix, has been extended to array's of higher dimension thanks to the patch proposal by Gabe Becker in PR#17652. Consequently, optional argument addrownums is deprecated and replaced by the (more general) argument keepnums. An...
2020 Apr 24
0
R 4.0.0 is released
...o be selected from any of the built-in palettes. * n2mfrow() gains an option asp = 1 to specify the aspect ratio, fulfilling the wish and extending the proposal of Michael Chirico in PR#17648. * For head(x, n) and tail() the default and other S3 methods notably for _vector_ n, e.g. to get a "corner" of a matrix, has been extended to array's of higher dimension thanks to the patch proposal by Gabe Becker in PR#17652. Consequently, optional argument addrownums is deprecated and replaced by the (more general) argument keepnums. An...
2010 Dec 11
0
is there a packge or code to generate markov chains in R
...I have entered: > > WriteXLS(alldata,'test.xls') I have gotten tripped up by the argument syntax in WriteXLS myself, many times. Please check the help page for argument names and use them, especially paying attention to the fact that the first argument needs to be a character _vector_ (and I suspect that passing it a list may not qualify) and I always use the name for the Excel file argument. I suspect that this may work: WriteXLS('alldata','test.xls') -- David. > > and I get this error message: > > Error in get(x, envir = envir) : variable na...