-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating kernel models with get_kernel doesn't work #12
Comments
Any solution for this, I met the same issue here. Thanks for your helps, Tiger |
Hello,
The question has been closed. Can you send it the problem here?
Thanks.
…On Thu, Nov 2, 2023 at 8:19 PM huw143 ***@***.***> wrote:
Any solution for this, I met the same issue here.
Thanks for your helps,
Tiger
—
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWTB5ZSFMOBHCJWLXS7JYK3YCQZ77AVCNFSM5IOWQYZKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZZGE3TGMZRHA2A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thank you Paul for your quick response, The question is same: EMM = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data = maizeYield, model = "EMM") Error in dimnames(x) <- dn : But I figured it out already, This is because the gid in the dataframe of maizeYield are not the same format, some of them are character, while some of them are not. I used the following R script to fix it. maizeYield$gid <- as.character(maizeYield$gid) Thanks for your contribution to this R package, which is amazing! Best regards, Tiger |
I am glad you figured it out. Thanks.
…On Thu, Nov 2, 2023 at 9:56 PM huw143 ***@***.***> wrote:
Thank you Paul for your quick response,
The question is same:
EMM = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data =
maizeYield, model = "EMM")
EMDs = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data =
maizeYield, model = "EMDs")
RMMM = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data =
maizeYield, model = "RNMM")
RNMDs = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data =
maizeYield, model = "RNMDs")
Error in dimnames(x) <- dn :
length of 'dimnames' [1] not equal to array extent
But I figured it out already,
This is because the gid in the dataframe of maizeYield are not the same
format, some of them are character, while some of them are not. I used the
following R script to fix it.
maizeYield$gid <- as.character(maizeYield$gid)
Thanks for your contribution to this R package, which is amazing!
Best regards,
Tiger
—
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWTB5ZXK77T6TUKVKFYCX2DYCRFK7AVCNFSM5IOWQYZKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZZGE4DAMJXGU2Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks for creating the package.
I am facing difficulty creating kernel models EMM, EMDs, RMMM and RNMDs based on the toy data set in the package. I am receiving error message: length of 'dimnames' [1] not equal to array extent. I do not know how to fix this.
EMM = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data = maizeYield, model = "EMM")
EMDs = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data = maizeYield, model = "EMDs")
RMMM = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data = maizeYield, model = "RNMM")
RNMDs = get_kernel(K_G = KG, K_E = KE, y = y,gid = gid,env = env, data = maizeYield, model = "RNMDs")
Error in dimnames(x) <- dn :
length of 'dimnames' [1] not equal to array extent
Thanks.
The text was updated successfully, but these errors were encountered: