search for: coercibl

Displaying 20 results from an estimated 27 matches for "coercibl".

Did you mean: coercible
2009 Aug 04
0
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
...45ba1a7c30c0e31b1b67300eb0a25 ^[[4;35;1mSQL (0.2ms)^[[0m ^[[0mSHOW VARIABLES LIKE ''collation_database''^[[0m Collation: utf8_general_ci ^[[4;36;1mScore Load (0.0ms)^[[0m ^[[0;1mMysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ''='': SELECT * FROM `scores` WHERE (`scores`.`product_id` = ''7'' AND `scores`.`iphone_identifier` = ''6b194f783d645ba1a7c30c0e31b1b67300eb0a25'' AND `scores`.`player_name` = ''一'') LIMIT 1^[[0m ActiveRecord::...
2013 Mar 21
2
Check if a character vector can be coerced to numeric?
...;4") I would like to develop a function that will convert any vectors that can be PROPERLY converted to a numeric (myvect2) into a numeric, but leaves character vectors which cannot be converted (myvect1) alone. Is there any simple way to do this (e.g. some function that tests if a vector is coercible to a numeric before doing so)? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana,...
2009 Jun 19
2
meaning of glm(value ~ .,
...- glm(value ~ ., data=crs$dataset[,c(1:59,922)], family=binomial(link="logit")) I am not clear about what value ~ . means and also, I see data=crs$dataset[,c(1:59,922)] I have read that the data argument is optional here "an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which glm is called" when they say "data", is that meant to include the dependent variable as well. In ot...
2020 Sep 24
1
How to use `[` without evaluating the arguments.
...metadata='list', .intern='environment'), contains='long.table') #' LongTable constructor method #' #' @param rowData [`data.table`, `data.frame`, `matrix`] A table like object #' coercible to a `data.table` containing the a unique `rowID` column which #' is used to key assays, as well as additional row metadata to subset on. #' @param rowIDs [`character`, `integer`] A vector specifying #' the names or integer indexes of the row data identifier columns. These #'...
2008 Jan 21
1
Mysql collations error
Hello, I am having this mysql error in my ruby on rails application. ActiveRecord::StatementInvalid occurred in > event#lg: > Mysql::Error: Illegal mix of collations > (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for > operation ''='': select * from locations where country = ''HU'' and > geo_state = ''08'' and city = ''Pázmánd'' and zip = ''(null)'' and lat = > ''47.283'' and lng = ''18.666'...
2007 Aug 15
1
getting lapply() to work for a new class
Hi, I would like to get lapply() to work in the natural way on a class I've defined. As far as I can tell, lapply() needs the class to be coercible to a list. Even after I define as.list() and as.vector(x, mode="list") methods, though, I still get an "Error in as.vector(x, "list") : cannot coerce to vector". What am I doing wrong? # dummy class setClass("test", representation(test="list")) #...
2012 May 09
1
Barplots inside loop - several data errors, workaround needed
...ouple of data sets which create errors and halt the loop. One of the tables looks like the following: dbh Black Walnut 1 8 38.19722 2 10 48.89244 3 12 38.19722 When the loop attempts the barplot() function, the following error is returned: Error in seq_len(p) : argument must be coercible to non-negative integer In other cases, there is simply no data in the specified set of data. Therefore, the table is full of NA's. Obviously, this does not need to be plotted, but I cannot simply remove it from the larger database. I need my loop to continue regardless of if it runs into the...
2010 Mar 17
2
y ~ X -1 , X a matrix
While browsing some code I discovered a call to lm that used a formula y ~ X - 1, where X was a matrix. Looking through the documentation of formula, lm, model.matrix and maybe some others I couldn't find this useage (R 2.10.1). Is it anything I can count on in future versions? Is there documentation I've overlooked? For the curious: model.frame on the above equation returns a
2008 Sep 04
3
MySQL connection collation
...ave set: encoding: utf8, but when in console run: >> ActiveRecord::Base.connection.collation => "latin1_swedish_ci" It is Rails 2.1, mysql gem 2.7, mysql 5.1.22. This leads to errors like: Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ''like'': SELECT * FROM `tags` WHERE (name LIKE ''. UTF-8 STRING.'') LIMIT 1 Table are set for UTF-8 and server is run with mysql_args=" --character-set-server=utf8 --collation-server=utf8_general_ci" Any ideas? -- Posted via http://www...
2018 Aug 08
4
vctrs: a type system for the tidyverse
...d the common type of two > factors, we take the union of the levels of each factor, > given a factor that has finer resolution than > both. Finally, you can think of a character vector as a > factor with every possible level, so factors and character > vectors are coercible. > (extracted from the in-progress vignette explaining how to > extend vctrs to work with your own vctrs, now that vctrs > has been rewritten to use double dispatch) I like this argumentation, and find it very nice indeed! It confirms my own gut feeling which had lead me to...
2018 Aug 06
3
vctrs: a type system for the tidyverse
> First off, you are using the word "type" throughout this email; You seem to > mean class (judging by your Date and factor examples, and the fact you > mention S3 dispatch) as opposed to type in the sense of what is returned by > R's typeof() function. I think it would be clearer if you called it class > throughout unless that isn't actually what you mean (in
2018 Aug 08
0
vctrs: a type system for the tidyverse
...> > factors, we take the union of the levels of each factor, > > given a factor that has finer resolution than > > both. Finally, you can think of a character vector as a > > factor with every possible level, so factors and character > > vectors are coercible. > > > (extracted from the in-progress vignette explaining how to > > extend vctrs to work with your own vctrs, now that vctrs > > has been rewritten to use double dispatch) > > I like this argumentation, and find it very nice indeed! > It confirms my own...
2018 Aug 08
0
vctrs: a type system for the tidyverse
...levels of `y` are contained in `x`. So to find the common type of two factors, we take the union of the levels of each factor, given a factor that has finer resolution than both. Finally, you can think of a character vector as a factor with every possible level, so factors and character vectors are coercible. (extracted from the in-progress vignette explaining how to extend vctrs to work with your own vctrs, now that vctrs has been rewritten to use double dispatch) Hadley -- http://hadley.nz
2012 Oct 27
2
why sd() can be applied to character vector?
Hi there, In the following example, sd() can be applied to a character vector. However, mean() can not be run in a similar way. Why? I have read sd() man page, however, I don't find information about that behavior. > x <- as.character(1:10) > sd(x) [1] 3.02765 > mean(x) [1] NA Warning message: In mean.default(x) : argument is not numeric or logical: returning NA Regards,
1999 Sep 02
1
trouble with the 'exclude' parameter of factor() (PR#265)
Full_Name: Laurent Gautier Version: 0.65.0 OS: Irix 6.5 Submission from: (NULL) (195.110.4.98) the following doesn't give what I expect > test _ factor(ORGMORE[[1]],exclude=c(NA,"NOM")) Warning message: NAs introduced by coercion > levels(test) [1] "CYT" "EXC" "MEM" "NOM" "NUC" "SEC" while this works... >
2005 Sep 27
1
Future plans for raw data type?
I've been working with raw vectors quite a bit and was wondering if the R team might comment on where they see raw vector support going in the long run. Is the intent that 'raw' will eventually become a first class data type on the same level as 'integer'? Or should 'raw' have more limited support, by design? For example, with very minor changes to subassign.c to
2018 Aug 08
0
vctrs: a type system for the tidyverse
...> > factors, we take the union of the levels of each factor, > > given a factor that has finer resolution than > > both. Finally, you can think of a character vector as a > > factor with every possible level, so factors and character > > vectors are coercible. > > > (extracted from the in-progress vignette explaining how to > > extend vctrs to work with your own vctrs, now that vctrs > > has been rewritten to use double dispatch) > > I like this argumentation, and find it very nice indeed! > It confirms my own...
2012 Oct 05
3
Multiple graphs > boxplot
Dear all I am trying to represent a dependent variable (treatment) against different independent variables (v1, v2, v3....v20). I am using the following command: boxplot(v1~treatment,data=y, main="xxxxxx",xlab="xxxxxx", ylab="xxxxxx") However, it provides me only one graph for v1~treatment. For the other comparisons, I have to repeat the same command but changing
2011 Nov 05
2
Doing dist on separate objects in a text file
So I have a text file that looks like this: "Label" "X" "Y" "Slice" 1 "Field_1_R3D_D3D_PRJ_w617.tif" 348 506 1 2 "Field_1_R3D_D3D_PRJ_w617.tif" 359 505 1 3 "Field_1_R3D_D3D_PRJ_w617.tif" 356 524 1 4 "Field_1_R3D_D3D_PRJ_w617.tif" 2 0 1 5 "Field_1_R3D_D3D_PRJ_w617.tif" 412 872 1 6
2011 May 07
2
Convenience-at-the-expense-of-clarity (was: quantmod's addTA plotting functions)
...lot when run from the command line is that Jeff went to the trouble to make it do that. addTA is not intended to add a plot to an existing chart. Yet the problem I ran into is that the addTA documentation doesn't say that. Instead it says, "addTA takes a series of values, either in a form coercible to xts or of the same length as the charted series has rows, and displays the results in either a new TA sub-window, or over/underlayed on the main price chart." I took that to mean that when I called addTA (from anywhere) a plot would be added to an existing plot. But that's not true....