[Lign251] Hmwk problem #4 - file-loading issue
Roger Levy
rlevy at ucsd.edu
Sun Oct 14 13:27:16 PDT 2007
Hi Melanie,
I think you just need to specify it as brown$Count instead of
brown$count (i.e., capitalized).
Roger
Melanie A. Tumlin wrote:
> Having successfully loaded the data file, I'm now receiving the
> following message in response to the hist() command:
>
> Error in hist.default(brown$count, freq = FALSE, plot = FALSE) :
> 'x' must be numeric
>
> Any thoughts on how to fix this?
>
> -- Melanie
>
> ----
> "If we knew what we were doing, it wouldn't be called research." --
> Albert Einstein
>
> Melanie A. Tumlin
> Department of Cognitive Science
> University of California, San Diego
> 9500 Gilman Drive #0515
> La Jolla, CA 92093-0515
> email: mtumlin at cogsci.ucsd.edu <mailto:mtumlin at cogsci.ucsd.edu>
>
>
>
> On 14 Oct 2007, at 11:10, Josée Poirier wrote:
>
>> Alternatively, you can specify the URL of the data file in your R
>> command, and R will find the data:
>>
>> x <-
>> read.table("http://ling.ucsd.edu/courses/lign251/brown-counts-lengths-nsyll",header=T,quote="")
>>
>> josée
>>
>>
>>> Is anyone else still having problems loading the file into R? Even using
>>> the code provided on the website, I get this message:
>>>
>>> Error in file(file, "r") : unable to open connection
>>> In addition: Warning message:
>>> In file(file, "r") :
>>> cannot open file 'brown-counts-lengths-nsyll', reason 'No such file or
>>> directory'
>>>
>>> I'm assuming this means it's not looking in the right place, but I can't
>>> figure out where the right place is. Any clues?
>>>
>>> Thanks,
>>> Dan
>>>
>>> _______________________________________________
>>> Lign251 mailing list
>>> Lign251 at ling.ucsd.edu <mailto:Lign251 at ling.ucsd.edu>
>>> http://pidgin.ucsd.edu/mailman/listinfo/lign251
>>>
>>
>> _______________________________________________
>> Lign251 mailing list
>> Lign251 at ling.ucsd.edu <mailto:Lign251 at ling.ucsd.edu>
>> http://pidgin.ucsd.edu/mailman/listinfo/lign251
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Lign251 mailing list
> Lign251 at ling.ucsd.edu
> http://pidgin.ucsd.edu/mailman/listinfo/lign251
--
Roger Levy Email: rlevy at ucsd.edu
Assistant Professor Phone: 858-534-7219
Department of Linguistics Fax: 858-534-4789
UC San Diego Web: http://ling.ucsd.edu/~rlevy
More information about the Lign251
mailing list