On 11/09/2014 07:19, PO SU wrote:
Dear expeRts,
These days i and some of my friends often encount the same problem when installing
packages, e.g. when i try to install.packages("stringi"), i will get :
package ‘stringi’ successfully unpacked and MD5 sums checked
Warning in install.packages
Hi
You still do not disclose important info about details of your functions.
However, when you want to perform indexing like you show, you maybe can get rid
of NULL and use zero instead.
> a<-1:5
> a[-c(1,3)]
[1] 2 4 5
> a[-c(0,1,3)]
[1] 2 4 5
> a[-c(1,0,3)]
[1] 2 4 5
> a[-c(0,1,0,3,0)]
[1] 2 4
Dear expeRts,
These days i and some of my friends often encount the same problem when
installing packages, e.g. when i try to install.packages("stringi"), i will get
:
package ‘stringi’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary insta
Tks, i think using logical index is a way, but to do that, i have to keep a
vector as long as the original vector. that's, to exclude position 1 and 3 from
a<-1:5
I have to let b<-c(F,T,F,T,T) and exec a[b], not a[-c(1,3)]. which c(1,3) is
much shorter than b if a is a long vector. that's, b wo
On Sep 10, 2014, at 1:20 PM, Thiago V. dos Santos wrote:
> Dear all,
>
> This is my first message in this list, so please excuse any mistake.
>
> I am trying to plot moisture data for 11 soil layers over the course of the
> year, but I am yet to find the correct function to do that. I am tryin
Dear all,
This is my first message in this list, so please excuse any mistake.
I am trying to plot moisture data for 11 soil layers over the course of the
year, but I am yet to find the correct function to do that. I am trying to
reproduce the lower figure in this panel: https://imageshack.com/
hi,
I can confirm that MKL even with gcc (and on AMD Opterons)
is damn fast!
I tried R-benchmark-25 and MASS-ex
but Intel's own link advisor is rubbish, I mean look at this:
-Wl,--start-group
$(MKLROOT)/lib/intel64/libmkl_intel_lp64.a
$(MKLROOT)/lib/intel64/libmkl_core.a
$(MKLROOT)/lib/inte
On 10/09/2014 12:20 PM, William Dunlap wrote:
Can you make your example a bit more concrete? E.g., is your 'index
vector' A an integer vector? If so, integer(0), an integer vector
with no elements, would be a more reasonable return value than NULL,
an object of class NULL with length 0, for the
Can you make your example a bit more concrete? E.g., is your 'index
vector' A an integer vector? If so, integer(0), an integer vector
with no elements, would be a more reasonable return value than NULL,
an object of class NULL with length 0, for the 'not found' case and
you could check for that c
May be i could add a extra elment to B,that's:
F<-function( C ) {
C<-C[-A]
some processing...
res<-NULL or some new index not included in A
return(res)
}
so in a loop,
C<-c(B,1)
tmpindex<-length(C)
A<-tmpindex
for( i in 1:10) {
D<-F(C)
A<-c(A,D)
}
--
PO SU
mail: desolato...@163.com
M
Another nice thing about using ~formula is that it stores the
environment in which the formula was made along with the formula.
Thus you know which envrionment should be used with evaluating it (and
don't have to guess that parent.frame() may be the right environmnet).
E.g.,
evalRHS <- function
Tks for your
a <- list(ress = 1, res = NULL)
And in my second question, let me explain it :
Actually i have two vectors in global enviroment, called A and B .A is
initialized to NULL which used to record some index in B.
Then i would run a function F, and each time, i would get a index value o
Most of the time I would agree with csv being the best format. _If_ you
are dealing with plain ASCII text.
Having spent most of yesterday with an Excel spreadsheet containing Russian
letters, I can say it is quite difficult to export the data to Unicode
UTF-16 tab-delimited text and then successf
Although it may seem troublesome to export to csv, I have found that every
direct access library for reading Excel files seems to come with some fiddly
bits that confuse new users (and can show down an experienced user). For
example, XLConnect can be a headache if your files are large because it
On Wed, Sep 10, 2014 at 3:51 AM, Omar André Gonzáles Díaz
wrote:
> The best way is to save the file as CSV... after you can simply import it
> with this comand in R:
>
> read.csv(...) ... to know more about the read.csv comand use in R this:
> ?read.csv.
>
> There are other packages to import EXCE
The best way is to save the file as CSV... after you can simply import it
with this comand in R:
read.csv(...) ... to know more about the read.csv comand use in R this:
?read.csv.
There are other packages to import EXCEL FILES, but the simplest way, its
importing this as CSV.
2014-09-09 18:03 GM
>From an email list:
"R is well known in the world of Big Data and is increasing in popularity. A
number of very useful resources are available for anyone undertaking data
mining in R.
For example, Luis Torgo has just published a book called Data Mining with R �
learning with case studies (Torg
On 10/09/2014, 3:21 AM, PO SU wrote:
>
> Dear expeRts,
> I have some programming questions about NULL in R.There are listed as
> follows:
> 1. I find i can't let a list have a element NULL:
> a<-list()
> a$ress<-1
> a$res<-NULL
> a
> str(a)
You can do it using
a <- list(ress = 1, res = NU
Hi
> Now confused by "Choices"! :) What is my error please?
Your main error is that you do not read help which was offered by Wiliam.
Choices is not a function it is name of a variable. You can call it e.g.
ctsanddogs if you wish.
see in line
> -Original Message-
> From: r-help-boun..
Hi
I am puzzled about what do you want?
You was discouraged using $ operator due to partial matching, however you still
use it.
In your example you do not have named element being NULL. Just check it
yourself.
> a<-list()
> a$ress<-1
> a$res<-NULL
> a
$ress
[1] 1
> str(a)
List of 1
$ ress:
Dear expeRts,
I have some programming questions about NULL in R.There are listed as
follows:
1. I find i can't let a list have a element NULL:
a<-list()
a$ress<-1
a$res<-NULL
a
str(a)
How can i know i have a named element but it is NULL, not just get
a$,a$,a$ there all get NUL
21 matches
Mail list logo