Re: [R] import csv file into R, strange problem

2011-09-15 Thread bby2103
Thanks for all the input. You were right. It was not csv file in the correct format. As it turned out, it's not a R problem, more a MAC problem. For some reason, my MAC doesn't correctly download csv file from internet, which caused all the subsequent problems. I will have to take it to a m

[R] how to find unique pairs of variables?

2011-09-15 Thread bby2103
I have two variables, both numerical. I would like to find the unique values of the pairs, in other words, unique coordinates if I were to plot them. I also need to know how many pairs there are, but I guess I can use length() if I can somehow isolate the unique pairs first? Thanks a lot!

[R] how to identify the value in a scatterplot?

2011-09-15 Thread bby2103
I'm plotting x and y and there are a couple of outliers. I want to show the value of z for these couple of outliers. Is there an easy way to do this? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

[R] graph bugs using R on MAC

2011-09-18 Thread bby2103
This is has been bugging me for a long time. Nobody around me seems to have this problem. I hope someone on the forum could help me. When I generate a R graph and want to bring the image into Word. I cannot copy and paste it like many of my classmates can do. The "Select" in Edit menu have

Re: [R] graph bugs using R on MAC

2011-09-18 Thread bby2103
Copy paste doesn't work. So I tried to Select and then copy paste, but it doesn't work either. Quoting Don McKenzie : On 18-Sep-11, at 12:38 PM, bby2...@columbia.edu wrote: This is has been bugging me for a long time. Nobody around me seems to have this problem. I hope someone on the for

Re: [R] graph bugs using R on MAC

2011-09-18 Thread bby2103
Yes, I'm positive I had the right window highlighted, and I have shown this problem to lots of people including tech staff, to get no answers. So I suspect it's probably a somewhat obscure problem. Duncan, thanks for the lead on the new group. I will follow up on that. What is the copy2eps?

Re: [R] graph bugs using R on MAC

2011-09-18 Thread bby2103
Don and Duncan, That function works, up to the same point where I can save pdf into Word using the menu. But when I use Identify function together with plot function, the Quartz window has to be closed before I can go back the console to execute "copy2eps" function. But by then, I don't hav

Re: [R] graph bugs using R on MAC

2011-09-18 Thread bby2103
Cool! Don showed me another trick--use (n= ) in Identify. The active window will come back to console after the specified amount of clicks, you will be able to execute more commands in console. Thank you! Quoting Duncan Murdoch : On 11-09-18 5:15 PM, bby2...@columbia.edu wrote: Don and Du

[R] map at fips level using multiple variables

2011-12-07 Thread bby2103
Hi, I just started playing with county FIPS feature in maps package which allows geospatial visualization of variables on US county level. Pretty cool. I did some search but couldn't find answer to this question--how can I map more than 2 variables on US map? For example, you can map by the

Re: [R] map at fips level using multiple variables

2011-12-07 Thread bby2103
Hi David, Sorry it sounds vague. Here is my current code, which gives the distribution of family size at US county level. You will see on a US map family size distribution represented by different colors. Now if i have another variable income, which has 3 categories(<50k, 50k-80k,>80k).

[R] difference between createPartition and createfold functions

2011-10-02 Thread bby2103
Hello, I'm trying to separate my dataset into 4 parts with the 4th one as the test dataset, and the other three to fit a model. I've been searching for the difference between these 2 functions in Caret package, but the most I can get is this-- A series of test/training partitions are crea

Re: [R] difference between createPartition and createfold functions

2011-10-02 Thread bby2103
Hi Steve, Thanks for the note. I did try the example and the result didn't make sense to me. For splitting a vector, what you describe is a big difference btw them. For splitting a dataframe, I now wonder if these 2 functions are the wrong choices. They seem to split the columns, at least

Re: [R] difference between createPartition and createfold functions

2011-10-03 Thread bby2103
Hi Max, Thanks for the note. In your last paragraph, did you mean "in createDataPartition"? I'm a little vague about what returnTrain option does. Bonnie Quoting Max Kuhn : Basically, createDataPartition is used when you need to make one or more simple two-way splits of your data. For ex