Displaying 20 results from an estimated 4000 matches similar to: "Data Frame Manipulation using function"
2010 Jul 01
4
Index of Character
Hi,
I am a newbie to R and this may be too simple to ask.
I am trying to find out a string function in R that returns the index of a
character.
For e.g. indexOf("Test1234", '4') would return 8.
Is there a similar function in R.
I tried searching the documentation and could find other useful string
functions, but not the index function.
Thanks in advance.
Regards,
Harsh
2006 Mar 16
1
Patch: patches for smbmount opton documentation ( smbmount.8.xml )
Hi,
I use samba on Linux 2.6 and 2G over size file sharing.
It seems smbmount '-o lfs' need to use with large file.
but default man page doesn't say this option.
I want to edit smbmount.8.xml for lfs and unicode option.
I believe using mount.cifs is right way on latest Linux.
But one of the implementation smb_clients tools take this
lazy option.
Is it right way to change of man page
2010 Aug 12
2
Append to csv without header
Hi,
I am writing a function that writes to a csv file for every call.
However, for the subsequent calls, I want to append the data to the existing
csv file without appending the column names again.
I tried searching in the previous posts, but I am stuck with different
errors.
Here is what I am doing (dataF is a data-frame):-
outputFilePath <- paste(getwd(), "/",
2009 Oct 24
6
Working with ListCtrl and ListItem
Hi List,
I''m trying to get my ListCtrl to work. Currently I''ve managed to fill
my ListCtrl with items, but I think it''s not the most beautiful way:
class MyList < Wx::ListCtrl
def initialize(parent, *args)
super(parent, :style => Wx::LC_REPORT|LC_HRULES )
create_layout
fill_list
end
def create_layout
self.insert_column(0, "Name")
2010 Jul 25
1
Left Outer Join 2 DF's on Multiple Conditions
Hi,
I am trying to execute the following SQL statement using two data frames:
tab1, tab2 : Two Tables
Select tab1.*, tab2.*, tab1.tobiiTime - tab2.ruiTime as timeDiff,
IFNULL(n-m, -9999999) as alwaysIncrement
FROM tab1
LEFT OUTER JOIN tab2 On tab1.data1 - tab2.mouseX = 0 And tab1.data2 -
tab2.mouseY = 0
I am trying to do the following in R:-
*#Getting error here:*
data
2010 Jul 22
1
Updating a Data Frame
Hi,
I have a global data-frame in my R script.
At some point in my script, I want to update certain columns of this
data-frame by calling in an update function.
The function looks like this:
# get events data. This populates a global event data frame in the R-script
events <- getEvents(con, eventsFilePath)
# events has columns eventid, timeStamp, isSynchronized, timeDiff; with
millions of
2007 Jul 27
1
Wx::ListItem data
Hi all,
i have a question:
i need a Wx::ListItem to wrap my content but i get a strange result...
irb(main):001:0> require ''wx''
=> true
irb(main):002:0> li = Wx::ListItem.new
=> #<Wx::ListItem:0x281610c>
irb(main):003:0> li.set_data(3)
=> nil
irb(main):004:0> li.get_data
=> 7
any hint?
thank you,
fabio.
2010 Jul 12
1
Comparison of two very large strings
Hi,
I have a function in R that compares two very large strings for about 1
million records.
The strings are very large URLs like:-
http://query.nytimes.com/gst/sitesearch_selector.html?query=US+Visa+Laws&type=nyt&x=25&y=8.
..
or of larger lengths.
The data-frame looks like:-
id url
1
2010 Jun 18
1
Error: cannot allocate vector of size 31.8 Mb
Hi,
I am getting the following error while trying to run an R script:
Error: cannot allocate vector of size 31.8 Mb
I tried setting up memory.limit(), vsize, etc. but could not make it run.
My computer has following configurations:-
OS: Windows 7
Processor: Intel Core 2 Duo
RAM: 4GB
Thanks in advance,
Harsh Yadav
[[alternative HTML version deleted]]
2010 Jul 20
1
Error using sqldf
Hi,
I am running a query using sqldf() [package : sqldf]. The query is:-
userid <- 5
taskid <- 5
tab1 <- fn$sqldf("SELECT tobiiEvents.data1, tobiiEvents.data2,
events.`timestamp` as tobiiTime
FROM tobiiEvents
INNER JOIN events ON events.eventid = tobiiEvents.eventid
WHERE tobiiEvents.subtype = 'MOUSE' AND tobiiEvents.userid = 5 AND
tobiiEvents.taskid = 5
ORDER BY
2007 May 01
1
How to insert item to ListCtrl
The only way I know to use ListCtrl is to call ListCtrl#set_item_count and
define a callback function on_get_item_text(item, col)
How can I insert Listitem one by one, that each Listitem is composed with
several string
--
flyerhzm@hotmail.com
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2010 Jul 28
1
Reading timestamp column from MySQL
Hi,
I am reading a SQL (MySQL) table in R data frame.
When I read in the table that has a timestamp data-type field, R gives it
the following format:-
1.236887e+12
So when I want to manipulate a column with timestamp = 1236887146615
It returns me multiple rows, as many timestamps gets converted to same
value: 1.236887e+12
Any ideas of how this could be dealt with, so that I can get the
2010 Aug 11
1
Bigmemory: Error Running Example
Hi,
I am trying to run the bigmemory example provided on the
http://www.bigmemory.org/
The example runs on the "airline data" and generates summary of the csv
files:-
library(bigmemory)
library(biganalytics)
x <- read.big.matrix("2005.csv", type="integer", header=TRUE,
backingfile="airline.bin",
descriptorfile="airline.desc",
2006 Mar 28
3
ListItem patches
Hi
Attached, patches to implement ListItem. This class, in wxruby 0.6.0, allows styling of individual items in a ListCtrl, via a particularly clunky API. In disambiguating the overloaded ListCtrl#set_item method it introduces one non backwards-compatible change. I''ve followed the WxPython convention as described in the Wx class ref, renaming set_item(index, col, string, imageid) to
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web
Development with Rails. In interation E1
NoMethodError in Admin#checkout
Showing app/views/admin/checkout.rhtml where line #12 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?
Extracted source (around line #12):
2009 Oct 10
1
documentation bug?
Hi,
I'm thoroughly RTFM'ing in order to find out what I'm doing wrong
<http://lists.samba.org/archive/samba/2009-October/thread.html#151046>
and I noticed that links from the *Samba-HOWTO-Collection* to the
*manpages-3* don't work... the problem is that both documentation sets
are on different directories but links don't include a path (nor
absolute, nor relative).
2007 Jun 15
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_object.c libswfdec/swfdec_player.c
libswfdec/swfdec_as_frame.c | 3 ++-
libswfdec/swfdec_as_object.c | 3 ++-
libswfdec/swfdec_player.c | 16 ++++++++++------
3 files changed, 14 insertions(+), 8 deletions(-)
New commits:
diff-tree 51bdd4e30a331ac9d4c21748097323187eed89f9 (from e415c0893f4316b99bbec0eb418b9664efee2b99)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Jun 15 19:38:26 2007 +0200
mark the
2006 Mar 25
2
Calling an action in another controller
I have two controllers, one for lists and one for list items. When I''m
viewing a list I''d like to have a link to create list items within that
list. How do I go about calling an action in the listitems controller
to create a new item within that specific list?
Thanks
--
Posted via http://www.ruby-forum.com/.
2010 Feb 26
2
Routing Error using Paperclip
For some reason I can''t figure out why I am getting a routing error when
I add Paperclip support. I have another test app when similar code is
working.
I created a new test app first without Paperclip support and it was
doing the CRUD operation fine. However when I added Paperclip support I
get the following error?
Routing Error
user_url failed to generate from
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: