Displaying 8 results from an estimated 8 matches for "num_value".
Did you mean:
num_values
2010 Jul 19
2
error when copy and transform within a data frame
...sure why
a=c(1,2,3)
b=c(2,3,4)
c=c("Yes","No","Yes")
d=c("No","Yes","No")
df=data.frame(a,b,c,d)
# the following works fine!
df = transform(df, new=sapply(df[,c(1,2)], FUN = function(x) { x^2 } ))
# but the following doesn't work:
num_value = function(x) {
if (x == "Yes") { return(1) }
else if (x == "No") { return(0) }
else return(NA)
}
df = transform(df, new=sapply(df[,c(3,4)], FUN = num_value ))
# generates this error..
Error in data.frame(list(a = c(1, 2, 3), b = c(2, 3, 4), c = c(2L, 1L, :
argument...
2018 Mar 16
2
[PATCH] drm: Don't pass the index to drm_property_add_enum()
.../gpu/drm/drm_property.c b/drivers/gpu/drm/drm_property.c
index 8f4672daac7f..1f8031e30f53 100644
--- a/drivers/gpu/drm/drm_property.c
+++ b/drivers/gpu/drm/drm_property.c
@@ -169,9 +169,9 @@ struct drm_property *drm_property_create_enum(struct drm_device *dev,
return NULL;
for (i = 0; i < num_values; i++) {
- ret = drm_property_add_enum(property, i,
- props[i].type,
- props[i].name);
+ ret = drm_property_add_enum(property,
+ props[i].type,
+ props[i].name);
if (ret) {
drm_property_destroy(dev, property);
return NULL;
@@ -209,7 +209,7 @@ struct dr...
2018 Apr 26
1
[PATCH] drm: Don't pass the index to drm_property_add_enum()
...rty.c b/drivers/gpu/drm/drm_property.c
index 8f4672daac7f..1f8031e30f53 100644
--- a/drivers/gpu/drm/drm_property.c
+++ b/drivers/gpu/drm/drm_property.c
@@ -169,9 +169,9 @@ struct drm_property *drm_property_create_enum(struct drm_device *dev,
return NULL;
for (i = 0; i < num_values; i++) {
- ret = drm_property_add_enum(property, i,
- props[i].type,
- props[i].name);
+ ret = drm_property_add_enum(property,
+ props[i].type,
+...
2018 Apr 23
0
[PATCH] drm: Don't pass the index to drm_property_add_enum()
...rty.c b/drivers/gpu/drm/drm_property.c
index 8f4672daac7f..1f8031e30f53 100644
--- a/drivers/gpu/drm/drm_property.c
+++ b/drivers/gpu/drm/drm_property.c
@@ -169,9 +169,9 @@ struct drm_property *drm_property_create_enum(struct drm_device *dev,
return NULL;
for (i = 0; i < num_values; i++) {
- ret = drm_property_add_enum(property, i,
- props[i].type,
- props[i].name);
+ ret = drm_property_add_enum(property,
+ props[i].type,
+...
2016 Apr 14
0
create new child windows domain in existing samba forest
...attributes: struct
drsuapi_DsReplicaAttribute
attid :
DRSUAPI_ATTID_systemFlags (0x90177)
value_ctr: struct
drsuapi_DsAttributeValueCtr
num_values : 0x00000001 (1)
values : *
values: ARRAY(1)
values: struct
drsuapi_DsAttributeValue...
2006 Jun 05
2
[PATCH] Pet peave then->than
...indicated data length!\n"));
}
return WERR_OK;
Index: source/lib/registry/registry.h
===================================================================
--- source/lib/registry/registry.h (revision 16046)
+++ source/lib/registry/registry.h (working copy)
@@ -103,11 +103,11 @@
WERROR (*num_values) (const struct registry_key *, uint32_t *count);
WERROR (*get_subkey_by_index) (TALLOC_CTX *, const struct registry_key *, int idx, struct registry_key **);
- /* Can not contain more then one level */
+ /* Can not contain more than one level */
WERROR (*get_subkey_by_name) (TALLOC_CTX *, con...
2008 Mar 06
0
[ANNOUNCE] xorg-server 1.4.99.901
Aaron Plattner (11):
Bug #12015: Use the right offsets in the dst arguments of pixman_blt.
stride is in FbBits-sized chunks, but xoff is not.
Bump video driver ABI for pci-rework.
Set noCompositeExtension to TRUE when failing to initialize the extension (e.g. when Xinerama is enabled).
Don't segfault on shutdown if we never managed to connect to dbus.
2012 Nov 05
7
VFS ACL with SMB2
Hello,
I have a question because POSIX ACL with SMB2 max protocol does not work
properly.Did you test VFS xattr acls with SMB2 max protocol? Is it
working corectly?
Best regards/Adrian Berlin
--