search for: name_of_str

Displaying 2 results from an estimated 2 matches for "name_of_str".

Did you mean: name_of_set
2006 Jul 24
2
Newbie error message!
...is my code (controller): def import_strings(a_string) table = { } IO.foreach(''#{a_string}'') { |line| if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x table[ $1 ] = $2 description = Description.new description.Index_Number = [$1] description.Name_Of_String = [$2] description.save end } This is my cod (view): <h1>Importing Strings<h1> <%= start_form_tag({:action => ''import_strings''}, :multipart => true)%> <p> <b>Lenguage:</b><br/> <%= select("variabl...
2011 May 28
2
remove ", " at the end of each line for all lines except the first line in a data frame
the question ask me to use gsub() and subsetting to remove the comma at the end of the for all but the first value in a data frame. the first few lines are like the following: [1] "2177663,-41,175,2678248,6021224,1840,5,25,17,,,6,," "2177691,-39.6,176.2,2784798,6173592,1843,7,8,5,30,,7.6,12," [3]