Solved

search a data frame in R

Posted on 2015-01-16
4
186 Views
Last Modified: 2015-01-28
Hi,

I have created a data frame in R using the attached example. I stripped down some data so that I can attach the file. How can I search a Data frame in R by specifying values for columns TICKER and DCLRDT. Once the search is complete for that particular row I want to return the difference between columns RET and vwretd.

Thanks

0
Comment
Question by:camper12
  • 2
4 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 40555162
I can't help you, but just wanted to point out that it looks like you forgot to attach anything.
0
 

Author Comment

by:camper12
ID: 40555235
0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 40568051
I would go with RSQLite and make database from CSV, then use common SQL to retrieve parts of data you need.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40576853
zoo can help too, though no huge advantage over sql...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Finding a job can be stressful - searches, resume tweaks, and networking events can be super boring. Luckily we're here to help you land your dream job!
If you want to move up through the ranks in your technology career, talent and hard work are the bare necessities. But they aren’t enough to make you stand out. Expanding your skills, actively promoting your accomplishments and using promotion st…
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now