search for: karena

Displaying 20 results from an estimated 32 matches for "karena".

Did you mean: arena
2011 Jun 15
4
R string functions
...the percentage of each letter in the string, what string functions can I use to count the number of each letter appearing in the string? For example, the letter "A" appeared 6 times, letter "T" appeared 5 times, how can I use a string function to get the these number? thanks, karena -- View this message in context: http://r.789695.n4.nabble.com/R-string-functions-tp3600484p3600484.html Sent from the R help mailing list archive at Nabble.com.
2010 Aug 05
2
questions about string handling
...00 AA AA 1002 GG CC AA 1003 TT CC GG thing to be done: 1) take the '/' off 2) replace the numbers with letters, 0 not change. 1=A, 2=G, 3=C, 4=T what is the most efficient way to do it? thanks you very much, karena -- View this message in context: http://r.789695.n4.nabble.com/questions-about-string-handling-tp2314335p2314335.html Sent from the R help mailing list archive at Nabble.com.
2011 Jul 21
4
Random number generation
Hi, I want to generate multiple sets of random numbers. The requirement is that: 1) each set have 3 random numbers; 2) the sum of the three number is always 1. how to do this? thank you, karena -- View this message in context: http://r.789695.n4.nabble.com/Random-number-generation-tp3685463p3685463.html Sent from the R help mailing list archive at Nabble.com.
2010 May 05
4
any function in R similar to the "scan" function in SAS?
...do the opposite thing to what "paste" does? suppose I only have the third column "three" now, and I want to get the first and second columns. If in SAS, I can do the following: one = scan(three,1,'-') two = scan(three,-1,'-') How can I do this in R? thank you, karena -- View this message in context: http://r.789695.n4.nabble.com/any-function-in-R-similar-to-the-scan-function-in-SAS-tp2131264p2131264.html Sent from the R help mailing list archive at Nabble.com.
2010 May 04
2
question about 'write.table'
...............,loci100. now, I want to print these data.frames to 100 separate files, and the names of the files are also loci1, loci2, loci3,......., loci100. how to perform this under a "for" loop? say, for (i in 1:100) { write.table(...., file='...', ........) } thank you, karena -- View this message in context: http://r.789695.n4.nabble.com/question-about-write-table-tp2126309p2126309.html Sent from the R help mailing list archive at Nabble.com.
2011 Oct 19
2
A questions regarding R plots
Hi Dear all, I am making Venn Diagram plots in R. I attached an example: http://r.789695.n4.nabble.com/file/n3919206/venn.jpeg I want to get rid of the black boarder line, is there any way to do it? Thank you very much, Karena -- View this message in context: http://r.789695.n4.nabble.com/A-questions-regarding-R-plots-tp3919206p3919206.html Sent from the R help mailing list archive at Nabble.com.
2010 Apr 22
6
macro variable in R?
...just wondering if there are some functions in R that are similar to the macro variables in SAS. so I can create these 10 matrices by doing: for (i in 1: 10) { matrix_$i <- matrix(nrow=i, ncol=i) } rather thank creating these matrices one by one manually. Anyone have any suggestions? thanks, karena -- View this message in context: http://r.789695.n4.nabble.com/macro-variable-in-R-tp2020772p2020772.html Sent from the R help mailing list archive at Nabble.com.
2010 Jan 12
2
how to handle missing values "." when importing data in R
hi, I have a question about importing data in R. I want to import a file which has missing value in it, and the missing values are denoted as ".", I want to first read in the file, and then change the "." into the number zero "0". how can I do that? thank you, karena -- View this message in context: http://n4.nabble.com/how-to-handle-missing-values-when-importing-data-in-R-tp1012298p1012298.html Sent from the R help mailing list archive at Nabble.com.
2010 Jan 13
4
a question about deleting rows
...3 4 7 8 10 2 2 4 1 2 4 3 10 3 7 0 0 0 0 8 4 10 1 0 0 2 3 5 11 1 0 0 0 5 what I want to do is: only if n2=0 and n3=0 and n4=0 and n5=0 then delete the row. how can I do that? thank you, karena -- View this message in context: http://n4.nabble.com/a-question-about-deleting-rows-tp1013403p1013403.html Sent from the R help mailing list archive at Nabble.com.
2010 Nov 02
2
how to make multiple curves in one plot
...my code to make a plot. The problem is, now I want to add one more curve to the plot, which is for another variable in the data.frame -log10(results_chr_p$p). My question is: how to make multiple lines in one plot, especially when using the 'running' function in it?? thank you very much, karena -- View this message in context: http://r.789695.n4.nabble.com/how-to-make-multiple-curves-in-one-plot-tp3023135p3023135.html Sent from the R help mailing list archive at Nabble.com.
2010 Sep 08
2
a question about replacing the value in the data.frame
...1 2 1 0 . . . . . . . . . . . . 1 2 2 1 1 0 so for this data set, what I wanna do is to replace all the '2' with '1', how can I do it in an efficient way? thank you, karena -- View this message in context: http://r.789695.n4.nabble.com/a-question-about-replacing-the-value-in-the-data-frame-tp2532010p2532010.html Sent from the R help mailing list archive at Nabble.com.
2010 Jul 16
2
a issue about the qutation mark?
...how the difference: 1) the code not working: read.csv("trait.file") #line 8 funcname(folder/hyper.csv) #last line 2) the code working: read.csv(trait.file) # line 8 funcname("folder/hyper.csv") # last line anyone can tell me why is the difference? thank you, karena -- View this message in context: http://r.789695.n4.nabble.com/a-issue-about-the-qutation-mark-tp2291537p2291537.html Sent from the R help mailing list archive at Nabble.com.
2010 Jun 03
5
string handling
.... 10T/C 00G/G90 What I want is to get the letters which are on the left and right of '/'. for example, for "9G/G09", I only want "G", "G", and for "abd89C/T90", I only want "C" and "T", how to get these? thank you, karena -- View this message in context: http://r.789695.n4.nabble.com/string-handling-tp2242119p2242119.html Sent from the R help mailing list archive at Nabble.com.
2011 Jun 13
1
Convert SAS code to R code about survival analysis
...0 -------------------------------- In the dataset, 'subject' is suject ID, 'surv' is the survival time, 'censht' is the indicator of censor, 'educ' is the strata variable indicating the education status. How convert such SAS codes to R code? thank you very much, karena -- View this message in context: http://r.789695.n4.nabble.com/Convert-SAS-code-to-R-code-about-survival-analysis-tp3594657p3594657.html Sent from the R help mailing list archive at Nabble.com.
2010 Jul 14
4
question about string handling....
...okf789(db)_c 3 jojfiod(90).gt 4 "ij"_(78)__op 5 (iojfodjfo)_ab what I want is to create a new variable called "var3". the value of var3 is the content in the Parentheses. so var3 would be: var3 ok db 90 78 iojfodjfo how to do this? thanks, karena -- View this message in context: http://r.789695.n4.nabble.com/question-about-string-handling-tp2289178p2289178.html Sent from the R help mailing list archive at Nabble.com.
2012 Mar 07
2
fill=T?
...2 0 1 1 0 If I read in the file using 'read.table("data", head=T, fill=T), then the data.frame in R will be: a b c d 1 2 3 4 1 8 6 NA 1 2 0 NA 1 1 0 NA Could anyone tell me how to handle this? Thank you very much, Karena -- View this message in context: http://r.789695.n4.nabble.com/fill-T-tp4454751p4454751.html Sent from the R help mailing list archive at Nabble.com.
2010 Aug 05
2
a question about 'read.table' with or without 'read.table'.(urgent)
...p3', we can see, in 1) the values for snp3 are all '00', while in 2) the values are all '0'. How can I keep the original values for snp3 as '00', meanwhile get the 'headers' or say the colnames as 'snp1 snp2 snp3'? thank you very much, karena -- View this message in context: http://r.789695.n4.nabble.com/a-question-about-read-table-with-or-without-read-table-urgent-tp2314423p2314423.html Sent from the R help mailing list archive at Nabble.com.
2010 Sep 08
3
regression function for categorical predictor data
Hi, do you guys know what function in R handles the multiple regression on categorical predictor data. i.e, 'lm' is used to handle continuous predictor data. thanks, karena -- View this message in context: http://r.789695.n4.nabble.com/regression-function-for-categorical-predictor-data-tp2532045p2532045.html Sent from the R help mailing list archive at Nabble.com.
2011 Sep 14
1
Questons about 'igraph' package
...--------------------------------------------------------------------- The 'color' attribute does work, the nodes are red and green, but the 'name' attribute doesn't work, I still have the numeric id on each node (0-99). Can anyone tell me how to solve this problem? Thank you, Karena -- View this message in context: http://r.789695.n4.nabble.com/Questons-about-igraph-package-tp3814338p3814338.html Sent from the R help mailing list archive at Nabble.com.
2010 Aug 31
1
any statement equals to 'goto'?
...es. what I want to do is to skip the 'bad' variable, for example, I got this error message when j=116, so I just wanna ignore variable116, is there a statement that can do this: when getting this error message 'Error in MEEM...........', directly goto the next variable? thank you, karena -- View this message in context: http://r.789695.n4.nabble.com/any-statement-equals-to-goto-tp2402107p2402107.html Sent from the R help mailing list archive at Nabble.com.