Displaying 3 results from an estimated 3 matches for "num_column".
Did you mean:
num_columns
2006 Mar 15
0
Grid making helper in view
Hello,
I apologize if this has been asked before.
I am interested in creating a helper for my view that generates a
grid-style table. Here''s what I have in application_helper.rb:
def print_grid_layout(items, table_class, num_columns)
print %Q{<table class=''#{table_class}'' cellpadding=''0'' cellspacing=''0''>\n}
rows = Array.new
# creates an array of arrays containing num_column items
num_columns.times do
rows << items.slice!(0..num_columns-1)...
2006 Mar 09
1
Rails File Upload w/ Ajax Update?
...Size</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<tr id="resource-empty-message" class="empty-message" <%= "
style=\"display:none;\" " if !@resources.empty? %>>
<td colspan="<%= num_columns %>">No Entries</td>
</tr>
</tbody>
<tbody id="resource-list-body">
<% if !@resources.empty? %>
<%= render :partial => ''resource'', :collection => @resources,
:locals => { :hidden => fals...
2014 Mar 31
1
C API to get numrow of data frame
Hi ,
Is there any C API to the R API nrow of dataframe ?
x<- data.frame()
n<- nrow(x)
print(n)
0
Example :
My C function which deals with data frame looks like and I don't to send
the number of rows of data frame .I want to detect it from the function
itself, my function take data frame as argument and do some on it. I want
API equivalent to nrow. I tried Rf_nrows,Rf_ncols . No