[R] How to integrate UMLS to opennlp or NLP package in R
Hi, I am trying to use R's opennlp package with UMLS (Unified Medical Language System, https://www.nlm.nih.gov/research/umls/) to analyze physician's notes, but I couldn't find any hint from Google. Any idea how I can achieve this goal or any tutorials/books/websites I missed? Thanks! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] question about mean
Hi there: I have a question about generating mean value of a data.frame. Take iris data for example, if I have a data.frame looking like the following: - Sepal.Length Sepal.Width Petal.Length Petal.WidthSpecies 15.1 3.5 1.4 0.2 setosa 24.9 3.0 1.4 0.2 setosa 34.7 3.2 1.3 0.2 setosa . . . . . . . . . . . . . . . . . . --- There are three different species in this table. I want to make a table and calculate mean value for each specie as the following table: - Sepal.Length Sepal.Width Petal.Length Petal.Width mean.setosa5.0063.428 1.462 0.246 mean.versicolor 5.936 2.770 4.260 1.326 mean.virginica 6.5882.974 5.552 2.026 - Is there any short syntax can do it?? I mean shorter than the code I wrote as following: attach(iris) mean.setosa-mean(iris[Species==setosa, 1:4]) mean.versicolor-mean(iris[Species==versicolor, 1:4]) mean.virginica-mean(iris[Species==virginica, 1:4]) data.mean-rbind(mean.setosa, mean.versicolor, mean.virginica) detach(iris) -- Thanks a million!!! -- = Shih-Hsiung, Chou System Administrator / PH.D Student at Department of Industrial Manufacturing and Systems Engineering Kansas State University [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] select one function from two of them
Hi all, I have two functions called test1() and test2(). Now how do I select one of them in test3()?? Say test3-function(func=test1){ if (func==test1){ now.func-test1() } else now.func-test2() } I know this function I wrote does not right. Do anyone can tell me how to do that for real? Thanks a million S.H. -- = Shih-Hsiung, Chou Department of Industrial Manufacturing and Systems Engineering Kansas State University [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] select one function from two of them in another function
Hi all, I have two functions called test1() and test2(). Now how do I select one of them in test3()?? Say test3-function(func=test1){ if (func==test1){ now.func-test1() } else now.func-test2() } I know this function I wrote does not right. Do anyone can tell me how to do that for real? Thanks a million S.H. -- = Shih-Hsiung, Chou Department of Industrial Manufacturing and Systems Engineering Kansas State University -- = Shih-Hsiung, Chou Department of Industrial Manufacturing and Systems Engineering Kansas State University [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] function eigen AND Minitab
Hi all. I got a question about eigenvector. I've tried input a symmetric matrix to both R (using eigen function) and minitab, but the result is really different. Can anyone tell me what's wrong with that? Thanks. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.