Displaying 16 results from an estimated 16 matches for "my_field".
2024 Jan 30
1
R interpreting numeric field as a boolean field
...your_dataframe, "class")
nrow(your_dataframe)
(as I suspect what you think it is, isn't).
Cheers,
Bert
On Tue, Jan 30, 2024 at 11:01?AM Bert Gunter <bgunter.4567 at gmail.com> wrote:
> "I cannot change the data type from
> boolean to numeric. I tried doing dataset$my_field =
> as.numeric(dataset$my_field), I also tried to do dataset <-
> dataset[complete.cases(dataset), ], didn't work either. "
>
> Sorry, but all I can say is: huh?
>
> > dt <- data.frame(a = c(NA,NA, FALSE, TRUE), b = 1:4)
> > dt
> a b
> 1 NA 1...
2024 Jan 30
1
R interpreting numeric field as a boolean field
...frame)
>
> (as I suspect what you think it is, isn't).
>
> Cheers,
> Bert
>
> On Tue, Jan 30, 2024 at 11:01?AM Bert Gunter <bgunter.4567 at gmail.com>
> wrote:
>
>> "I cannot change the data type from
>> boolean to numeric. I tried doing dataset$my_field =
>> as.numeric(dataset$my_field), I also tried to do dataset <-
>> dataset[complete.cases(dataset), ], didn't work either. "
>>
>> Sorry, but all I can say is: huh?
>>
>> > dt <- data.frame(a = c(NA,NA, FALSE, TRUE), b = 1:4)
>> > dt
&...
2006 Apr 14
5
state_models plugin and file_column?
I was looking at Kyle Mawell''s extremely nifty-looking StateModels
plugin
http://www.kylemaxwell.com/articles/2006/02/06/fun-with-single-table-inheritance
and before I go down the road with it, I was wondering if anyone has
used it with file_column.
The way file_column deals with an uploaded file -- by storing it to the
filesystem in a path that employs the model name and id --
2006 Sep 03
9
using highlight from aaf
Hi,
I''m trying to use highlight ferret method with trunk aaf and 0.10.1
ferret.
In my search display I use:
Myindexedclass.ferret_index.searcher.highlight(@query, result_line.id,
:content)
* searcher is a protected method; how can I access to the searcher from
aaf ?
* is the doc id in aaf the same as my model id ?
* is the first param, query, the string query or the query object ?
2024 Jan 30
1
R interpreting numeric field as a boolean field
...into a single dataframe (since the columns
are exactly the same for all 46 sheets). The rio package does this nicely,
the problem is that, once I have the full dataframe (which amounts to
roughly 2.98 million rows total), I cannot change the data type from
boolean to numeric. I tried doing dataset$my_field =
as.numeric(dataset$my_field), I also tried to do dataset <-
dataset[complete.cases(dataset), ], didn't work either.
The only thing that worked for me was to take a single sheed and through
the read_excel function use the guess_max parameter and set it to a
sufficiently large number (a num...
2006 Mar 31
6
Split Validations?
I have a single table that two people enter data into. Person A creates
the record and I need to specify certain required fields in his form.
Person B has a separate form and she fills in additional fields and I
need to specify that some of these are required.
Since the data is all in one table and since the validations are in the
model, won''t Rails complain when person A tries to
2006 Jan 17
2
How to run direct sql
How can i run and get the value from the following sql:
select avg(my_field) from my_table where which_year=''0506'' and
which_week <= 21 and my_foreign_key_id=10
cheers
--
Posted via http://www.ruby-forum.com/.
2009 Nov 25
1
implementing soundex algorithm
how can i implement soundex algorithm in rails app??
my database is mysql
I want to search a particular table''s data using soundex
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send
2024 Jan 30
1
R interpreting numeric field as a boolean field
...(since the
> columns are exactly the same for all 46 sheets). The rio package does
> this nicely, the problem is that, once I have the full dataframe (which
> amounts to roughly 2.98 million rows total), I cannot change the data
> type from boolean to numeric. I tried doing dataset$my_field =
> as.numeric(dataset$my_field), I also tried to do dataset <-
> dataset[complete.cases(dataset), ], didn't work either.
>
> The only thing that worked for me was to take a single sheed and through
> the read_excel function use the guess_max parameter and set it to a
>...
2006 Jul 16
4
migrations questions: MySQL -> postgreSQL
I started my app before migrations were a best practice and have been using SQL scripts. Now I''m looking at potentially having to move from using MySQL to postgreSQL to use a particular hosting provider. I understand migrations are the way to go to make this ''easy'' but it also looks like the use of migrations introduces extra work in other areas. I''d really
2008 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i
need to pass multiple parameters to the controller other that what is
typed in the text field.
<%= text_field_with_auto_complete :search, :contains, :size => 15,
:frequency => 0.1, :skip_style => true -%>
This is what i have as of now, but i also need to pass ":language =>
@default"
2024 Jan 30
1
R interpreting numeric field as a boolean field
On 30/01/2024 11:10 a.m., Paul Bernal wrote:
> Dear friends,
>
> Hope you are doing well. I am currently using R version 4.3.2, and I have a
> .xlsx file that has 46 sheets on it. I basically combined all 46 sheets
> and read them as a single dataframe in R using package rio.
>
> I read a solution using package readlx, as suggested in a StackOverflow
> discussion as
2006 May 18
1
validates_uniqueness_of
I used validates_uniqueness_of
it is case insensitive, it takes only admin not Admin.
So please help me out how to put validates_uniqueness_of as case
sensitive
Thanks in Advance
Surekha.Matte
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
4
Can RoR''s AJAX helpers do this?
Hi,
I want to type text into an input field then on enter, use AJAX to
update the value of an input field elsewhere on the screen.
''observe_field'' allows me to watch a form field and dynamically update a
DIV. Is there a variation or other method to allow me to update a field
instead?
--
Posted via http://www.ruby-forum.com/.
2007 May 08
3
MYSQL Query --> PAGE
I have all my SIP users in a realtime database. I would like to use
MySQL command to query the database and use the results from the query
to page all the phones found in the query.
The results from the MySQL query will be multiple rows of extension:
Something like:
mysql> Select extension from sip where extension like '6%'
6001
6002
6003
ex....
I need to put all the results into a
2008 Apr 04
6
validates_numericality_of :not_equal_to
I have a situation in which I want to validate a number is not zero.
Both positive and negative values are acceptable, just not zero.
validates_numericality_of has an :equal_to attribute, but I don''t see a
:not_equal_to. I have not yet been able to find anyone who has
discussed this. I did find information about custom validators, so I am
now using a custom validator to check the field