search for: zhihua

Displaying 20 results from an estimated 35 matches for "zhihua".

2006 May 04
2
install R under suse: packages dependency
...SSH to login into the SUSE server, I can't use YAST2, so I have to use rpm -i in the shell. The system tells me that I need some other packages such as xorg-x11-fonts-100dpi, blas, libgfortran.so.0(). Is there some website where I can download and install these packages? Thanks a lot! Zhihua Li
2007 Jul 19
3
Error: evaluation nested too deeply when doing heatmap with binary distfunction
Hi netters, I have a matrix X of the size (1000,100). The values are from -3 to +3. When I tried heatmap(X, distfun=function(c),dist(c,method="bin"),hclustfun=function(m),hclust(m,method="average")) I got the error message: Error: evaluation nested too deeply: infinite recursion / options(expressions=)? However, if I used default parameters for distfunction:
2008 Mar 07
4
locate the rows in a dataframe with some criteria
...ind the answer after hours of searching and trying. Suppose there'a a dataframe M: x y 10 A 13 B 8 A 11 A I want to locate the rows where x >=10 and y="A". I know how to do it to vectors by using which, but how to do it with the dataframe? Thank you very much! Zhihua Li _________________________________________________________________ MSN ÖÐÎÄÍø£¬×îÐÂʱÉÐÉú»î×ÊѶ£¬°×Áì¾Û¼¯ÃÅ»§¡£ [[alternative HTML version deleted]]
2008 Jan 26
3
An R clause to bind dataframes under certain contions
...ames A,B and D. I want to combine them into one matrix, joining the rows having the same A and B values (X$A==Y$A and X$B = Y$B). So the resulting dataframe has four variables/columns: A,B,C and D. I was wondering what's the best way to do it in R. Could anyone give me some advice? Thanks! Zhihua Li _________________________________________________________________ ÊÖ»úÒ²ÄÜÉÏ MSN ÁÄÌìÁË£¬¿ìÀ´ÊÔÊÔ°É£¡ [[alternative HTML version deleted]]
2007 Jun 05
1
rJava installation under linux: configuration failed
...;) following which rJava was downloaded and being installed, but during the last test step it said: can't complie a simple JNL program. Configuration Failed! Did I do something wrong? Or there's something I should do that I didn't? Thanks a lot! Sincerely Yours: Zhihua Li
2007 Nov 27
2
Postscript saving failed. (PR#10473)
Full_Name: Zhihua Liu Version: 2.6.0 OS: Submission from: (NULL) (66.176.38.107) When I produced a .ps graph in the screen, I had problem to save them. The following warnings show up: Error: Invalid font type In addition: Warning messages: 1: font family not found in PostScript font database 2: font family not...
2008 Jan 26
3
Comparison of aggregate in R and group by in mysql
...mysql, it took seconds to finish a similar job: select Group,Age,Type ,avg(Salary) from X group by Group,Age,Type Is it because mysql is superior in doing such kind of things? Or my R command is not efficient enough? Why did R have to consume huge memories to do the aggregation? Thanks again! Zhihua Li _________________________________________________________________ ÌìÁ¹ÁË£¬ÌíÒÂÁË£¬ÐĶ¯ÁË£¬¡°Æß¼þ¡±ÁË http://get.live.cn [[alternative HTML version deleted]]
2005 Mar 26
0
learning networks with a large number of variables andpre-set parents.
...packages, such as deal, can learn the bayesian networks structure from training data. But I'm not sure if deal or other similar packages can handle 10000 variables...... Thanks a lot for your information. >From: "Shelby Berkowitz" <berkowi4 at msu.edu> >To: "'zhihua li'" <lzhtom at hotmail.com> >Subject: RE: [R] learning networks with a large number of variables andpre-set parents. >Date: Fri, 25 Mar 2005 10:00:17 -0500 > >It's not really clear to me what it is you're trying to do, how you've >defined links between th...
2005 May 30
3
how to "singlify" entries
hi netters I have a rather simple question. I have a data frame with two variables X and Y, both of which are factors. X has 100 levels while Y has 10 levels only. The data frame has 100 rows in all, so for X the values are unique, and Y has many replicate values. Now I wanna reduce the data frame into 10 rows only, according to the 10 levels of Y. I don't care which value of X is in
2005 Dec 03
2
how to subset rows using regular expression patterns
hi netters, i have a dataframe A with several columns(variables). the elements of column M are character strings. so A$M=c("ab","abc","bcd","ac","abcd","fg",....."fl"). i wanna extract all the rows where A$M match some regular expression pattern. for a simple example, let the pattern be just "ab", i wanna subset
2005 Dec 08
2
how to change a dataframe with characters to a numeric matrix?
hi netters, i have a dataframe TEST like this: Y1 Y2 Y3 X1 4 7 8 X2 6 2 Z X3 8 0 1 i would like to change it to a numeric matrix, replacing "Z" with NA Y1 Y2 Y3 X1 4 7 8 X2 6 2 NA X3 8 0 1 i've tried the function data.matrix but it didn't work. is there any easy way to do this? thanks a lot!
2005 Dec 12
2
store and retrieve object names in a vector
hi netters, suppose i have a series of objects X1, X2, B1,C1........... they all have the same dimensions. i want to combine into one by using cbind: y<-cbind(X1,X2,B1,C1.....) but i don't want to type the names of these objects one by one. instead, i've put their names into a vector: x<-c("X1","X2","B1","C1",....) i used y<-cbind(x).
2005 Jun 23
2
quotient and remainder
hi netters Is there a function in R that can compute the quotient and remainder of a division calculation? such that when 11 is given as the dividend and 5 the divider, the function returns 2(quotient) and 1(remainder). Thanks a lot! _________________________________________________________________ 伱佲伔佈佅伮佋佖 MSN Explorer: http://explorer.msn.com/lccn/
2012 May 25
1
How to specify the libvirtd in connect call
Hi, Here is my situation, I install libvirt in a non-default directory and start libvird with sudo. While I can connect virsh to libvirtd using "virsh --connect qemu:///system", I fail to connect my app using "virConnectOpen("qemu:///system")", which complains "unable to locate libvirtd daemon in $PATH". Then, I take another try and add the path of
2005 May 13
1
manipulating dataframe according to the values of some columns
hi netters, I'm a newbie to R and there are some very simple problems puzzeled me for two days. I've a dataframe here with several columns different in modes. Two of the columns are special for me: column 1 has the mode "factor" and column 2 has the mode "numeric vectors". The values for column 1 are either "T" or "F". I wanna do two things:
2012 Apr 06
2
[API reference] Are there XML-handling API to retrieve info directly from xml configure file
Hi, everyone I'm writing a application using libvirt and need to query guest os's virtual network interface usage, like bytes read or written through a given interface. I know int virDomainInterfaceStats(virDomainPtr dom, const char * path, virDomainInterfaceStatsPtr stats, size_t size) is designed for my purpose but I 'm not sure how I determine the second parameter path.
2012 Apr 05
2
Is this Race Condition?
Hi, everyone I'm writing application using libvirt and I need call virDomainGetCPUStats to get domain cpu stats . I learn from API reference that this function has to be called when domain is running. So my question is if there is an atomic way to test the domain's state and get its stats? Or, it's ok to call this function when domain is not active, but caller just gets error
2008 Sep 22
4
sort a data matrix by all the values and keep the names
...g = FALSE) : unimplemented type 'list' in 'orderVector1' The only way I can sort all the data is by converting it to a matrix: > sort(as.matrix(x)) [1] 1 2 4 6 7 8 But now I lost all the names attributes. Is it possible to sort a data frame and keep all the names? Thanks! Zhihua Li _________________________________________________________________ [[elided Hotmail spam]] [[alternative HTML version deleted]]
2005 Jul 12
2
how to generate argument from a vector automatically
hi netters i have a vector NAMES containing a series of variable names: NAMES=c(x,r,z,m,st,qr,.....nn). i wanna fit a regression tree by using the code: my.tree<-tree(y~x+r+z+m+....nn,my.dataframe) but i don't want to type out "x+r+z+m+....+nn" one by one, as there are so many variables. besides, sometimes i wanna put the code in a function. so i need to have the
2008 Apr 17
1
how to use a function in aggregate which accepts matrix and outputs matrix?
...matrixwith the dimension (y,3), where y depends on the input. And I'd like the resultto be a rbind of each of the subset outputs. aggregate can not do that because the function is supposed to take vectors and output scalars.How can I apply the complicated function to groups of a matrix? Thanks! Zhihua Li _________________________________________________________________ Windows Live Photo gallery ÊýÂëÏà»úµÄ³¬¼¶°é£¬ÇáËɹÜÀíºÍ±à¼­ÕÕƬ£¬»¹ÄÜÖÆ×÷È«¾°ÃÀͼ£¡ http://get.live.cn/product/photo.html [[alternative HTML version deleted]]