search for: carmak

Displaying 3 results from an estimated 3 matches for "carmak".

Did you mean: carma
2006 Mar 22
3
Parent-Child Tables Help
can someone help me with this i have a table cars ( id int model_id int make_id int color_id int description text constraint fk_cars_carmake foreign key(make_id) references carmakes(id), constraint fk_cars_carmodel foreign key(model_id) references carmodels(id), constraint fk_cars_color foreign key(color_id) references colors(id) ) carmakes ( id int carmake varchar ) carmodels ( id int carmake_id int carmodel varchar ) colo...
2003 Dec 30
4
Assignments in loops
Greetings all. Any help with the following would be appreciated. I want to create a data frame for each file in a directory. The following code does not work but it may show what I am trying to do: carmakes <- c('BMW','Chrysler','Citroen','Fiat','Ford','Holden','Honda', 'Mercedes','MG','Mitsubishi','Nissan','Peugeot','Renault','Subaru','Toyota', 'VW') for (brand in carma...
2011 May 21
1
'apply' with additional class variable
...do is apply a custom function over each column of this matrix, but the function will behave differently depending on the make of the car, so each time a column is passed into my custom function, the function needs to know the make of the car. What I imagine being able to do is something like this: carmake<-c("Toyota","Ford","Chevy") x<-matrix(1:12,nrow=4) colnames(x)<-c("Car1","Car2","Car3") rownames(x)<-c("Horsepower","TopSpeed","Weight","Cost") res<-apply(my_matrix,2,my_func,carmake)...