Retrieving values in R

I was going through population dataset in googleVis library.Now i am stroring the data in data2

data2 <-data.frame(Poulation)

when i do the following

names(data2)

the following comes

[1] "Rank" "Country" "Population" [4] "X..of.World.Population" "Flag" "Mode" [7] "Date

Now i want to know the names of the country whose population is greater than suppose 10,000,000

I am trying the following for getting the poulation

data2$Population > 10000000

Now how to get the name of countries which have poulation >10000000

Thanks

Answers


Try this:

 data2[data2$Population > 10000000, ]$Country

Need Your Help

managing unique key for cache?

c# .net asp.net .net-3.5

I have to use cache multiple forms data that will be submitted on last form. I m not getting how to handle cache key as it should be unique. I want to use this key to get and put data in different ...

Data set too large to load into memory for processing

mysql ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.2

I have a bigger rapidly growing data set of around 4 million rows, in order to define and exclude the outliers (for statistics / analytics usage) I need the algorithm to consider all entries in thi...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.