规范方差分析中的dimnames(x)<-dn错误

时间:2019-03-24 12:41:16

标签: r

我正在开始CVA分析,但是我在代码的开头出现了错误,如果使用其他数据集则不会发生。

<%--
  Created by IntelliJ IDEA.
  User: ofeko
  Date: 26/12/2018
  Time: 14:21
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="javax.servlet.http.HttpSession" language="java" %>
<%@ page import="Model.DataBase" language="java" %>
<%@ page import="Model.DataBaseGood" %>
<%@ page import="Control.Controller" %>
<%  HttpSession session2 = request.getSession();
    String MySession = session2.toString();
    Controller dbcon = new Controller();
    String username = dbcon.UsernameBySession(MySession);
    if(username.equals(""))
        response.sendRedirect("/SudokuProject_war_exploded/");
    String[] details = dbcon.LoadUser(username);
%>


<html>
<head>
    <title>User</title>
    <style>

        header {


        }
        #intro{
            background: rgba(80, 80, 80, 0.4);
            display: block;
            text-align: center;
            line-height: 30px;
        }
        #Menu{
            display: block;
            text-align: center;
        }
        body{
            background-image: url("SudokuBG.jpg");
            background-repeat: no-repeat;
            background-size: cover;
            font-family: "Arial Black", Gadget, sans-serif;
        }
        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            overflow: hidden;
            background-color: darkred;
            position: sticky;
            top: 0;
        }
        user{
            display: block;
            text-align: center;
            background: rgba(139, 0 , 0, 0.5);
            font-family: "Arial Black", Gadget, sans-serif;
            position: sticky;
            top: 0;
        }
        user head{
            font-size: 28px;

        }

        li {
            float: left;
        }

        li a {
            display: block;
            color: white;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }

        li a:hover {
            background-color: #111;
        }

        li a:active {
            background-color: #4CAF50;
        }
        li {
            text-align: center;
            border-bottom: 1px solid #555;
        }

        li:last-child {
            border-bottom: none;
        }
        .button {
            display: inline-block;
            border-radius: 4px;
            background: darkred;
            border: none;
            color: #FFFFFF;
            text-align: center;
            font-size: 28px;
            padding: 20px;
            width: 350px;
            transition: all 0.5s;
            cursor: pointer;
            margin: 5px;

        }

        .button span {
            cursor: pointer;
            display: inline-block;
            position: relative;
            transition: 0.5s;
        }

        .button span:after {
            content: '\00bb';
            position: absolute;
            opacity: 0;
            top: 0;
            right: -20px;
            transition: 0.5s;
        }

        .button:hover span {
            padding-right: 25px;
        }

        .button:hover span:after {
            opacity: 1;
            right: 0;
        }

    </style>
</head>
<body>
<header>
    <br><br><br><br><br><br><br>

</header>
<nav>
    <ul>
        <li><a class="active" href="MainPage.jsp">Home</a></li>
        <li><a href="User.jsp">User</a></li>
        <li><a href="Contact.jsp">Contact</a></li>
        <% if (details[6].equals("Admin")) { %>
        <li><a href="Admin.jsp">Admin</a></li>
        <%}%>
        <li><a href="ExitServlet">Sign Out</a></li>
    </ul>
</nav>
<!-- User's information page -->
<user>
    <head> hello <%= username %> </head> <br> Here Is Your Details :
    <br>First Name - <%= details[0] %> <br>Last Name - <%= details[1] %> <br>
    Password - <%= details[2] %> <br>Email - <%= details[3] %> <br>Country - <%= details[4] %> <br>Score - <%=details[5]%>
</user>

<form action="MainPage.jsp">
    <button class="button" type="submit"> Back to Menu </button>
</form>

</body>
</html>

这是代码,我用虹膜数据代替了非常相似的数据集。但是,我收到此错误消息:

  

dimnames(x)中的错误<-dn:'dimnames'[1]的长度不等于数组范围

这是什么意思?

0 个答案:

没有答案