search for: miao

Displaying 20 results from an estimated 162 matches for "miao".

Did you mean: ciao
2024 Feb 13
2
[PATCH v2 3/8] fbdev: Do not include <linux/backlight.h> in header
Forward declare struct backlight_device and remove the include statement. Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de> Reviewed-by: Jani Nikula <jani.nikula at intel.com> --- include/linux/fb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/fb.h b/include/linux/fb.h index 2ce2f5c2fca9a..7380d959c5d53 100644 --- a/include/linux/fb.h +++
2013 May 03
10
Why can't R understand if(num!=NA)?
I have a program, when I write if(num!=NA) it yields an error message. However, if I write if(is.na(num)==FALSE) it works. Why doesn't the first statement work? Thanks, Miao [[alternative HTML version deleted]]
2012 Jul 27
2
How can I access an element of a string?
Dear Daniel and Jorge, Thank you very much and it does help. If I have a string "ABCD", how can I access the second element of the string "B"? Thanks, Miao 2012/7/27 Daniel Nordlund <djnordlund@frontier.com> > > -----Original Message----- > > From: r-help-bounces@r-project.org [mailto:r-help-bounces@r-project.org] > > On Behalf Of jpm miao > > Sent: Thursday, July 26, 2012 9:12 PM > > To: r-help > > Subject:...
2013 Apr 03
3
Generating a bivariate joint t distribution in R
...istribution of (beta1, beta2). Now I would like to find the distribution of the quotient beta1/beta2, and one way to do it is to simulate via the joint distribution (beta1, beta2), where both beta1 and beta2 follow t distribution. How could we generate a joint t distrubuition in R? Thanks Miao [[alternative HTML version deleted]]
2013 Apr 17
3
Transformation of a variable in a dataframe
HI, I have a dataframe with two variable A, B. I transform the two variable and name them as C, D and save it in a dataframe dfcd. However, I wonder why can't I call them by dfcd$C and dfcd$D? Thanks, Miao > A=c(1,2,3) > B=c(4,6,7) > dfab<-data.frame(A,B) > C=dfab["A"]*2 > D=dfab["B"]*3 > dfcd<-data.frame(C,D) > dfcd A B 1 2 12 2 4 18 3 6 21 > dfcd$C NULL > dfcd$A [1] 2 4 6 [[alternative HTML version deleted]]
2016 Apr 26
2
How to print the frequency table (produced by the command "table" to Excel
Hi, How could we print the frequency table (produced by "table") to an Excel file? Is there an easy way to do so? Thanks, Miao > df <- data.frame(x = 1:3, y = 3:1, z = letters[1:3]) > table(df[,c("y","z")]) z y a b c 1 0 0 1 2 0 1 0 3 1 0 0 > test<-table(df[,c("y","z")]) > as.data.frame(test) y z Freq 1 1 a 0 2 2 a 0 3 3 a 1 4 1 b 0 5 2 b...
2013 Jun 11
2
How can we access an element in a structure
...1065371783791, -0.144708170683529), .Dim = 1:2, .Dimnames = list(NULL, c("x1", "x2")))) > test1[[1]] [1] -1.177829 > test1 [1] -1.177829 attr(,"gradient") x1 x2 [1,] -0.05710654 -0.1447082 > test1["gradient"] [1] NA Thanks, Miao [[alternative HTML version deleted]]
2012 Mar 12
3
A question on histogram - area much less than 1
Hello, I have problem running the histogram function "hist". The area under the histogram is much lower than 1. Could anyone tell me what the problem is? Thanks, (The total number of observation is 992 (close to 1000), so the probability that 0<Y1<35 is approximately 0.277) miao rm(list=ls()) par(mfrow=c(1, 1)) Y <- cbind(matrix(35*0.5,1,277), matrix(35*1.5, 1, 146), matrix(35*2.5, 1, 99), matrix(35*3.5,1,80), matrix(35*4.5, 1, 69), matrix(35*5.5, 1, 63), matrix(35*6.5, 1, 52), matrix(35*7.5,1, 53), matrix(35*8.5, 1, 55), matrix(35*9.5, 1, 98)) Y1<-as.vector(Y) pa...
2008 Aug 22
2
How I can read the binary file with "different type"?
...th one structure like this: readBin("my data file",what="integer",size=4,n=200) or readBin("my data file",what="numeric",size=4,n=200).But only one type of the data can be read properly. Can anyone suggest me how should I read this file? Thanks in advance. Miao [[alternative HTML version deleted]]
2016 Apr 26
0
How to print the frequency table (produced by the command "table" to Excel
Hi jpm miao, You can get CSV files that can be imported into Excel like this: library(prettyR) sink("excel_table1.csv") delim.table(table(df[,c("y","z")])) sink() sink("excel_table2.csv") delim.table(as.data.frame(table(df[,c("y","z")])),label="...
2012 Feb 17
4
How can I tabulate time series data (in RStudio or any other R editor)?
...data sequence, how can I combine the two and see both data in a tabular form? > a2<-101:116> a2ts<-ts(a2, frequency=4, start=c(1979,1))> a2ts Qtr1 Qtr2 Qtr3 Qtr4 1979 101 102 103 104 1980 105 106 107 108 1981 109 110 111 112 1982 113 114 115 116 > Thank you, Miao [[alternative HTML version deleted]]
2012 Feb 21
2
Debugging using RStudio or any other R editor
Hello, I am using RStudio and have trouble finding out the problematic line in the presence of a bug. Could I view the line NUMBER which contains a bug? Is there any R editor able to do it? Thanks, Miao [[alternative HTML version deleted]]
2012 Nov 08
2
A question on "xyplot" function in Lattice package
...quot; means a regular line, type "g" means broken lines, but I can't find a complete list of the choices. The info obtained from the query in R is limited. Could anyone tell me where I can find the complete description of the function, including all types of lines it offers? Thanks! Miao [[alternative HTML version deleted]]
2013 May 03
2
Declare a set (list?) of many dataframes or matrices
Hi, I would like to read several datasets and would like to create a set (list? sequence?) of many empty dataframes. How could this be done? How could I declare a set (list? sequence?) of many empty matrices? Thanks, Miao [[alternative HTML version deleted]]
2012 Jul 27
2
How can I access the title of a table read via read.csv?
...36.028 218.05 2.336995 4.9017 7 198007 125.17 36.007 220.95 2.371917 4.9046 8 198008 128.87 35.966 224.45 2.369107 4.9360 ....................... How can I access the title of the table? For example, I would like to access the character string "REER"; how can I do it? Thanks, Miao [[alternative HTML version deleted]]
2013 Jan 31
4
[RFC][PATCH 2/2] Btrfs: implement unlocked dio write
...bs=4k size=32G runtime=60 directory=/mnt/btrfs/ filename=testfile group_reporting thread [file1] numjobs=1 # 2 4 rw=randwrite == result (KBps) == write 1 2 4 lock 24936 24738 24726 nolock 24962 30866 32101 == result (iops) == write 1 2 4 lock 6234 6184 6181 nolock 6240 7716 8025 Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> --- fs/btrfs/inode.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d17a04b..091593a 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -6589,31 +6589,33 @@ static ssize_...
2013 Apr 18
2
How can I ask R to skip the title when reading the data?
..., I have many reports with identical format. Without the title “XXX High School Grade Report Confidential Yes”, I can just change the xls to csv and read them via read.csv. How can I read the data in the presence of the title? How can I ask R to skip the title and just read the data? Thanks, Miao [[alternative HTML version deleted]]
2012 Oct 01
2
Input and output of time series data - any function or packages that helps?
...results and to run another program. Is there any function or package (like dataframe or zoo?) that might help so that I don't need to copy the results manually to a csv or xls file? If the data are not time series (just indexed by 1, 2,3), is there any function that can help? Thanks, Miao [[alternative HTML version deleted]]
2012 Sep 27
2
Is there a function that runs AR model with Schwarz Bayesian Information Criteria (BIC)?
Hello, Is there a function in R by which one can run AR model with Bayesian Information Criteria (BIC)? To my knowledge, functions ar and ar.ols could select the order only by AIC. Thanks, Miao [[alternative HTML version deleted]]
2012 Dec 14
2
How can I read the following complicated table
...complicated, but I just present a simpler case for ease of illustration. Is there any way to ask R to "read several number after you see the word 'Monday' and store somewhere", and read several number after you see the word 'Tuesday' and store somewhere"? Thanks, miao [[alternative HTML version deleted]]