Re: [R] Coercing Output from mget() into Proper Data Frame

2011-06-09 Thread ntyson
Nevermind, I found the problem. I was using a variant of the function that was wrong. Quoting "Sarah Goslee" : That's not enough information for us to be able to help you, since there's no reproducible code. Here's the crucial bit: stem_freqs_list <- mget(uniq_stems,stem_dict) stem_f

[R] Coercing Output from mget() into Proper Data Frame

2011-06-09 Thread ntyson
Hello R-philes: I have the following function that gets the output of mget() and converts it to a data frame to return. What I am finding is that the dimensions are wrong. Basically, I get: bridesmaid wed u see m gt lt like love X.0 dress pagetrack one go X3 get 1 56 35 27 30

[R] Coercing Output from mget() into Proper Data Frame

2011-06-09 Thread ntyson
Hello R-philes: I have the following function that gets the output of mget() and converts it to a data frame to return. What I am finding is that the dimensions are wrong. Basically, I get: bridesmaid wed u see m gt lt like love X.0 dress pagetrack one go X3 get 1 56 35 27 30

Re: [R] Displaying Counts of Unused Factors in Contingency Tables with table()

2010-07-29 Thread ntyson
Dennis, Thank you for your response. For clarification, I was not expecting table() to divinely figure out the intent that I was making two levels out of one (given my character vectors). Since table() is a generic function that behaves differently with character and factor vectors, I n

[R] Converting a Vector into a 2-level Factor

2009-10-21 Thread ntyson
Hello Everyone, Let's say I have a vector as follows: vowels = c("aa", "aa", "ah", "ao", "eh) I want to make a factor consisting of two levels: the things that are "aa" and those that are not "aa". How would I do that? I tried using factor(vowels, levels=c("aa", "~aa"), exclude=NULL), but