similar to: Combining a greek letter and a newline on the same label

Displaying 20 results from an estimated 3000 matches similar to: "Combining a greek letter and a newline on the same label"

2012 Mar 23
1
how to cluster rows of words in a text file
Hi: I am trying to cluster the rows of a text file with kmeans: I load the data as follows file1 <- read.csv("somefile.csv") and the file can be viewed having the following line of words > file1 1 word1 word3 word4 word1 2 word1 word4 word3 word1 3 word4 word2 word4 word3 4 word4 word2 word1 word3 5 word2 word2 word4 word2 file_as_matrix <- as.matrix(file1); Now,
2009 Nov 03
3
re ading tokens
Greetings, I am not familiar with processing text in R. Can someone tell me how to read each line of words as separate elements in a list? FE, I would like to turn: word1 word2 word3 word2 word4 into a list of length two with three character elements in the first list and two elements in the second. I know that this should be easy, but I am a little confused by the text functions. Thanks in
2010 Dec 30
1
recursively count the words occurrence in the text files
I just can't google for it: I'm searching for a "bash" "one liner" (awk, perl, or anything) for this: there are text files, in several directories: mkdir one mkdir two mkdir three echo "word1 word2 word3" > one/asf.txt echo "word2 word4, word5" > one/asfcxv saf.txt echo "word1. word2" > one/dsgsdg.txt echo "word6,
2010 Jul 21
2
Issues reshaping data
Hello All, I'm having some trouble reshaping my data from wide to long format. I have tried using both the reshape function and package. Although I haven't worked much with the reshape function, I have found the reshape package useful and intuitive for reshaping data from long to wide format. However, going the other way has me stumped with this type of data. My data is set up, roughly,
2011 Sep 26
2
findAssocs()
I am trying to find the math behind the "tm" package findAssocs() ?findAssocs does not say anything besides "association" and "correlate" Usually entering "findAssocs" at the CLI gives the code for a R function, but in this case I obtain: function (x, term, corlimit) UseMethod("findAssocs", x) <environment: namespace:tm> Any ideas?
2006 May 28
2
Word97 launches but still cannot save or load
Dear friends: Thanks to Ekkehard, I found out how to launch Word97. I went to the .wine/drive_c directory and then (using quotes around "Program Files" and "Microsoft Office") I cd's to where Winword.exe was and then typed, within this subdirectory: wine WINWORD.EXE. That launched Word97 at last. But when I try to save a document, all I get is the first letter of the file
2009 Aug 16
1
Can a variable name include '_' or '.' in portable R code
Hi, It says in R-intro.pdf, "For portable R code (including that to be used in R packages) only A?Za?z0?9 should be used." I'm an wondering why '_' and '.' can be used in portable R code. It very common that some variable name should be composed of two or more English words. Can somebody let me know what is the widely accepted practice to concatenate two English
2007 Jul 07
2
Extending/Modifying QueryParser
Hi, I''ve implemented synonym searching in my rails application but have an idea I''d like to implement but can''t figure out how to do. The idea is that I''d like to give the end user the choice on whether to search for the synonym of a word or not. Preferably by extending the query language to parse a construct similar to ''%word1'' and
2005 Nov 08
0
sorting during xtabs? sorting by "individual" order?
Hey alltogether, refacturing a package (before it will be released), I ran across the following problem. I have two directories with different text files, I want to read the first and construct a document-term matrix from it (every term=word in a row, every file in a column, occurrence frequencies form the values). The second directory contains different files. It needs to be read in to also
2013 Apr 10
2
grup function
Hello, How can i mattch blanks within words, when i have more phrases? c("Shangh i", "Hello here i am","h llo") > gsub(" ","a",c("Shangh i", "Hello here i am","h llo")) [1] "Shanghai" "Helloahereaiaam" "hallo" I would like to have [1] "Shanghai" "Hello here
2013 Nov 30
4
Full text search improvements
FTS indexing is something I hear quite often nowadays. I?ve added some hacks to make it work better for some installations, but it?s about time to think about the whole design and how it could be improved for everyone in future. Here are some of my initial thoughts. Currently Dovecot supports 3 full text search engines: Solr, CLucene and Dovecot Squat. CLucene plugin has various features built
2008 Feb 13
1
can a class have the association has_itself?
is it possible to implement a recursive foreign key association like that? i''m writing a vocab app, where i want the vocab table to have an id and two foreign keys, word1 and word2. the word table will have an id, a word-string, and a language i''m trying to do this as follows: class Vocab < ActiveRecord::Base belongs_to :word belongs_to :word class Word <
2010 Mar 18
2
greek symbols on ylab=
Hi All, I'm trying to get following but not successfully: # this works okay ylab=expression("PM2.5 Concentration ("*mu*g/m^3*")") # But I need "2.5" as a subscript to PM and below this an additional line saying some text, like. ylab=expression("PM[2.5] Concentration ("*mu*g/m^3*")"\n(random text in brackets)) Square brackets doesn't
2012 Mar 27
2
Supperscript, subscript and double lines in the main/sub title and using greek letters
Dear R-help, I am trying to express myself as best as I can here. If you also use Latex to edit math reports or other languages with similar editing method, you'll see what I'm talking about. My sincere appologies if my question is not clear enough to some extend, as also I'm not able to provide my code here because I don`t know which one I can use... When editing the title in R
2010 Sep 10
1
Greek letter included in a character vector
Hello, In the past I have used "expression" to include greek letters in axis labels, but this time I need to include the greek letter as part of a legend. Basically, I need to create the following vector to rename the levels of a factor: c("Interferon-gamma", "IL-10", "IL-5"), where "gamma" obviously needs to be printed as the greek letter
2006 May 04
1
plot greek letter in italic
Hi, Could someone please let me know how to plot greek letters in italic. text(0,14,expression(italic(rho)[italic(f)])) only plots the f in italic and text(37,40,expression(italic(rho))) doesn't plot rho in italic. I have checked demo(plotmath), ?plotmath, FAQ, and the archives 2004-2006 without finding the answer. I'm using R 2.1.1. and Windows XP. Thanks! Tord -- Tord Sn?ll
2011 Nov 01
3
Greek letter
Hi everyone. I'm trying to use small letter phi in a graph produced in R. However, the small letter phi does not look as it should. In fact, it looks like this: http://r.789695.n4.nabble.com/file/n3963311/Untitled.png instead of what is here http://en.wikipedia.org/wiki/Phi Here's the code I use: expression(phi [1]) Anyone has an idea? With regards, Phil -- View this message
2012 Jan 09
1
CairoPDF and greek letter spacing
I have a small problem with R graphics output. When I use the lattice package and CairoPDF to generate publication quality graphs I often use the expression to create an axis title that has microlitres or micrometers as a unit. I use something like the following 'expression(paste("Length (", mu,"m )"))' as an argument to the xlabel function. The command works but the mu
2009 Jan 04
2
Combining greek letters with the contents of variables
Dear r-help list, I am trying to combine a greek letter lambda with the contents of a variable v in the title of a plot. However, it seems that having v inside the expression() function causes it not to be evaluated, on the other hand having expression(lambda) inside something else like paste causes it to be evaluated to a string. Here is an example of what I want to do:
2011 Jan 27
2
pdf greek letter typos
Hi there, yet on the topic of greek letters and pdf plotting: when I run the following code pdf(file="temp.pdf") mu=seq(from=-pi, to=pi, length=100) plot(mu, sin(mu^2), type="l", xlab=expression(mu%in%(list(-pi,pi))), ylab=expression(sin(mu^2)), main=expression((list(mu,sin(mu^2))))) dev.off() I get a "proportional to" symbol in place of a